diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..36566c8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +lintian (2.117.0-ok1) nile; urgency=medium + + * Build for openKylin. + + -- openKylinBot Tue, 07 May 2024 09:33:37 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7b3429f --- /dev/null +++ b/debian/control @@ -0,0 +1,162 @@ +Source: lintian +Section: devel +Priority: optional +Maintainer: openKylin Developers +XSBC-Original-Maintainer: Debian Lintian Maintainers +Uploaders: Axel Beckert , Bastien Roucariès +Build-Depends: aspell , + aspell-en , + cdbs , + debhelper (>= 13.11.8~) , + debhelper-compat (= 13), + default-jdk-headless | default-jdk , + dh-elpa | bash (<< 4.4) , + dh-python , + dh-r , + dh-runit , + dpkg (>= 1.17.14), + fakeroot , + gcc-mingw-w64-i686 , + gcc-mingw-w64-x86-64 , + gpg-agent , + javahelper , + libarray-utils-perl , + libconst-fast-perl, + libfile-basedir-perl, + libio-prompt-tiny-perl , + libipc-run3-perl, + liblist-someutils-perl , + libmce-perl , + libpath-tiny-perl, + libperl-critic-freenode-perl , + libperl-critic-pulp-perl , + libpod-coverage-trustpod-perl , + libtest-minimumversion-perl , + libtest-perl-critic-perl , + libtest-pod-coverage-perl , + libtest-pod-perl , + libtest-spelling-perl , + libtest-strict-perl , + libtest-synopsis-perl , + libtext-csv-perl , + libtext-csv-xs-perl , + libtext-diff-perl , + libtext-template-perl , + libunicode-utf8-perl, + lintian , + mingw-w64-tools , + pkg-php-tools , + python-dev-is-python3 , + python3 , + python3-all-dev , + python3-dev , + python3-docutils, + python3-numpy , + python3-setuptools , + quilt , + tidy , + uglifyjs , + wamerican , + wbritish , + zip +Standards-Version: 4.6.2 +Rules-Requires-Root: no +Vcs-Git: https://salsa.debian.org/lintian/lintian.git +Vcs-Browser: https://salsa.debian.org/lintian/lintian +Homepage: https://lintian.debian.org/ + +Package: lintian +Architecture: all +Depends: binutils, + bzip2, + diffstat, + dpkg (>= 1.17.14), + dpkg-dev, + file, + gettext, + gpg, + intltool-debian, + iso-codes, + libapt-pkg-perl, + libarchive-zip-perl, + libberkeleydb-perl, + libcapture-tiny-perl, + libclass-xsaccessor-perl, + libclone-perl, + libconfig-tiny-perl, + libconst-fast-perl, + libcpanel-json-xs-perl, + libdata-dpath-perl, + libdata-validate-domain-perl, + libdata-validate-uri-perl, + libdevel-size-perl, + libdigest-sha-perl, + libdpkg-perl, + libemail-address-xs-perl, + libencode-perl, + libfile-basedir-perl, + libfile-find-rule-perl, + libfont-ttf-perl, + libhtml-html5-entities-perl, + libhtml-tokeparser-simple-perl, + libio-interactive-perl, + libipc-run3-perl, + libjson-maybexs-perl, + liblist-compare-perl, + liblist-someutils-perl, + liblist-utilsby-perl, + libmldbm-perl, + libmoo-perl, + libmoox-aliases-perl, + libnamespace-clean-perl, + libpath-tiny-perl, + libperlio-gzip-perl, + libperlio-utf8-strict-perl, + libproc-processtable-perl, + libregexp-wildcards-perl, + libsereal-decoder-perl, + libsereal-encoder-perl, + libsort-versions-perl, + libsyntax-keyword-try-perl, + libterm-readkey-perl, + libtext-levenshteinxs-perl, + libtext-markdown-discount-perl, + libtext-xslate-perl, + libtime-duration-perl, + libtime-moment-perl, + libtimedate-perl, + libunicode-utf8-perl, + liburi-perl, + libwww-mechanize-perl, + libwww-perl, + libxml-libxml-perl, + libyaml-libyaml-perl, + lzip | lzip-decompressor, + lzop, + man-db, + patchutils, + perl, + t1utils, + unzip, + xz-utils, + ${misc:Depends}, + ${perl:Depends} +Suggests: binutils-multiarch, libtext-template-perl +Breaks: funny-manpages (<< 1.3-5.1), + libconfig-model-dpkg-perl (<< 2.151), + lintian-brush (<< 0.88), + lzd (<< 1.2-3~), + pkg-js-tools (<< 0.9.4), + pkg-perl-tools (<< 0.53) +Replaces: funny-manpages (<< 1.3-5.1) +Multi-Arch: foreign +Description: Debian package checker + Lintian dissects Debian packages and reports bugs and policy violations. It + contains automated checks for many aspects of Debian policy as well as some + checks for common errors. + . + This package is useful for all people who want to check Debian packages for + compliance with Debian policy. Every Debian maintainer should check packages + with this tool before uploading them to the archive. + . + This version of Lintian is calibrated for Debian Policy version 4.6.2. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7eee053 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,86 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: +Source: https://lintian.debian.org/ +Comment: + This is the Debian package of Lintian, the Debian package checker. + The latest version of Lintian can always be found at: + https://lintian.debian.org/ + . + Lintian was designed and written by Christian Schwarz and Richard Braakman. + The package was previously maintained by Darren Benham, + Sean 'Shaleh' Perry and Josip Rodin. + . + It is now maintained by a group of people, with changes noted by initials + in the changelog. Key to frequent committers: + . + JvW == Jeroen van Wolffelaar + FL == Frank Lichtenheld + HE == Marc 'HE' Brockschmidt + CW == Colin Watson + RA == Russ Allbery + TK == Thijs Kinkhorst + ADB == Adam D. Barratt + JP == Jordà Polo + JA == Jari Aalto + RG == Raphael Geissert + NT == Niels Thykier + JW == Jakub Wilk + BR == Bastien ROUCARIÈS + AB == Axel Beckert + PW == Paul Wise + CL == Chris Lamb + EB == Edward Betts + GN == Gergely Nagy + SL == Sylvestre Ledru + SRL == Steve Langasek + . + Lintian is maintained in git. The current development version may + be checked out from: + https://salsa.debian.org/lintian/lintian.git + +Files: * +Copyright: 1998, Christian Schwarz + 1998, Richard Braakman + 1998-1999, Joey Hess + 1999, Darren Benham + 2000, Sean 'Shaleh' Perry + 2001-2017, Colin Watson + 2001-2003, Josip Rodin + 2002-2004, Denis Barbier + 2004-2008, Marc Brockschmidt + 2004-2008, Frank Lichtenheld + 2004-2006, Jeroen van Wolffelaar + 2005, René van Bevern + 2006, Adeodato Simó + 2007-2013, Russ Allbery + 2008, Patrick Schoenfeld + 2008, Niko Tyni + 2008-2017, Raphael Geissert + 2008-2019, Adam D. Barratt + 2009, Stéphane Glondu + 2010, Raphaël Hertzog + 2010-2019, Niels Thykier + 2011, Gerfried Fuchs + 2011-2016, Jakub Wilk + 2013-2018, Bastien ROUCARIÈS + 2014-2023, Axel Beckert + 2016-2021, Chris Lamb + 2018-2022, Felix Lechner + 2017, Edward Betts +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at https://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/debian/dirs b/debian/dirs new file mode 100644 index 0000000..be90752 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,3 @@ +etc +usr/bin +usr/share/lintian diff --git a/debian/doc-base b/debian/doc-base new file mode 100644 index 0000000..d571578 --- /dev/null +++ b/debian/doc-base @@ -0,0 +1,12 @@ +Document: lintian +Title: Lintian User's Manual +Author: Christian Schwarz, Richard Braakman, Sean 'Shaleh' Perry +Abstract: This manual describes Lintian, the Debian package checker. +Section: Debian + +Format: HTML +Index: /usr/share/doc/lintian/lintian.html +Files: /usr/share/doc/lintian/*.html + +Format: text +Files: /usr/share/doc/lintian/lintian.rst.gz diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..58aff05 --- /dev/null +++ b/debian/docs @@ -0,0 +1,5 @@ +README.md +doc/CREDITS +doc/api.html +doc/lintian.html +doc/lintian.rst diff --git a/debian/duck-overrides b/debian/duck-overrides new file mode 100644 index 0000000..64e41cc --- /dev/null +++ b/debian/duck-overrides @@ -0,0 +1,5 @@ +# Reported as parked, false positive +https://www.freedesktop.org/wiki/Software/dbus/ + +# True positive, but part of a lintian test to find such stuff. :-) +https://example.com/%i/ diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..4b202dd --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +# As long as this is a native package, we don't need any prefixes +debian-tag = %(version)s + +[dch] +multimaint-merge = True diff --git a/debian/lintian.examples b/debian/lintian.examples new file mode 100644 index 0000000..09a90d6 --- /dev/null +++ b/debian/lintian.examples @@ -0,0 +1 @@ +doc/examples/* diff --git a/debian/lintian.install b/debian/lintian.install new file mode 100644 index 0000000..1ed5cd0 --- /dev/null +++ b/debian/lintian.install @@ -0,0 +1,10 @@ +# the next line will be removed when libconfig-model-dpkg-perl stops using Lintian data (Bug#968000) +.perlcriticrc usr/share/lintian +bin usr/share/lintian +data usr/share/lintian +lib usr/share/lintian +private/latest-policy-version usr/share/lintian/private +profiles usr/share/lintian +tags usr/share/lintian +templates usr/share/lintian +vendors usr/share/lintian diff --git a/debian/lintian.links b/debian/lintian.links new file mode 100644 index 0000000..c592e8f --- /dev/null +++ b/debian/lintian.links @@ -0,0 +1,7 @@ +usr/share/doc/lintian/lintian.rst usr/share/doc/lintian/lintian.txt +usr/share/lintian/bin/lintian usr/bin/lintian +usr/share/lintian/bin/lintian-annotate-hints usr/bin/lintian-annotate-hints +usr/share/lintian/bin/lintian-annotate-hints usr/bin/lintian-info +usr/share/lintian/bin/lintian-explain-tags usr/bin/lintian-explain-tags +usr/share/lintian/bin/spellintian usr/bin/spellintian +usr/share/man/man1/lintian-annotate-hints.1.gz usr/share/man/man1/lintian-info.1.gz diff --git a/debian/lintian.maintscript b/debian/lintian.maintscript new file mode 100644 index 0000000..a16bc80 --- /dev/null +++ b/debian/lintian.maintscript @@ -0,0 +1 @@ +rm_conffile /etc/lintianrc 2.90.0~ lintian diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..a34ee8b --- /dev/null +++ b/debian/manpages @@ -0,0 +1,2 @@ +man/man1/*.1 +man/man3/*.3 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..956ea16 --- /dev/null +++ b/debian/rules @@ -0,0 +1,71 @@ +#!/usr/bin/make -f + +PERL ?= /usr/bin/perl + +VER := $(shell head -1 debian/changelog | sed -e 's/^.*(//' -e 's/).*$$//') +tmp := $(CURDIR)/debian/lintian +pod2man := pod2man --center "Debian Package Checker" --release "Lintian v$(VER)" +pod2mansources := $(wildcard man/*.pod) +docsources := doc/lintian.rst README.md $(pod2mansources) +perlprovides := data/fields/perl-provides + +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + jobs = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + PAR_ARGS=-j $(jobs) +endif + +# export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_build: generate-docs-stamp +# check that the static data about perl core modules is up to date + $(PERL) -ne '/PERL_VERSION=(.+)/ and $$] > $$1 and warn q{*}x60 . qq{\n$(perlprovides) needs an update, please run\n debian/rules refresh-perl-provides\n} . q{*}x60 . qq{\n}' $(perlprovides) + + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + private/runtests +endif + +override_dh_clean: + rm -rf $(CURDIR)/debian/test-out + rm -rf doc/api.html doc/lintian.html + rm -rf man/man1/ man/man3/ l10n/ + dh_clean + +override_dh_install: + dh_install + echo "Setting LINTIAN_VERSION to $(VER)" + $(PERL) -p -i -e 's/my \$$LINTIAN_VERSION;/my \$$LINTIAN_VERSION = q{$(VER)};/;' \ + $(tmp)/usr/share/lintian/bin/* + + +api-doc: + private/generate-html-docs doc/api.html + +.PHONY: generate-docs +generate-docs: generate-docs-stamp + +generate-docs-stamp: $(docsources) + dh_testdir +# A UTF-8 locale seemed appropriate; manual uses § character + cd doc && LC_ALL=en_US.UTF-8 rst2html lintian.rst > lintian.html + mkdir -p man/man1/ man/man3/ + $(pod2man) --name lintian --section=1 man/lintian.pod > man/man1/lintian.1 + set -e ; for POD in $(pod2mansources) ; do \ + BASENAME=$$(basename "$$POD" .pod) ; \ + $(pod2man) --section=1 "$$POD" > "man/man1/$$BASENAME".1 ; \ + done + set -e ; for POD in $$(find doc/tutorial lib/Lintian lib/Test -type f '!' -path '*/Output/*' '!' -path '*/Check/*' '!' -path '*/Screen/*' ) ; do \ + BASENAME=$$(echo "$$POD" | perl -pe 's@^(doc/tutorial|lib)/@@; s@/@::@g; s/\.(pod|pm)$$//') ; \ + $(pod2man) --name="$$BASENAME" --section=3 "$$POD" > "man/man3/$$BASENAME".3 ; \ + done + private/generate-html-docs doc/api.html > /dev/null + touch $@ + +# only used manually +.PHONY: refresh-perl-provides +refresh-perl-provides: + perl private/refresh-perl-provides > $(perlprovides) diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..fc2e898 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,30 @@ +--- +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 + +build-testing: + variables: + RELEASE: 'testing' + DEB_BUILD_OPTIONS: 'nocheck' + extends: .build-package + +build-bookworm-backports: + variables: + RELEASE: 'bookworm-backports' + DEB_BUILD_OPTIONS: 'nocheck' + extends: .build-package + allow_failure: true + +variables: + SALSA_CI_DISABLE_BLHC: 1 + SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1 + SALSA_CI_LINTIAN_FAIL_WARNING: 1 + DEB_BUILD_OPTIONS: 'nocheck' + +# Try to override the lintian version being used to the just built +# version. +.test-lintian: &test-lintian + before_script: + - apt-get update + - apt-get install -y ${WORKING_DIR}/lintian_*.deb diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..4226ad1 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,3 @@ +license-problem-json-evil *tags/l/license-problem-json-evil.tag* +license-problem-nvidia-intellectual *lib/Lintian/Check/Cruft.pm* +test-leaves-python-version-untested *debian/tests/build-and-evaluate-test-packages* diff --git a/debian/tests/build-and-evaluate-test-packages b/debian/tests/build-and-evaluate-test-packages new file mode 100755 index 0000000..58b3e83 --- /dev/null +++ b/debian/tests/build-and-evaluate-test-packages @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +export LINTIAN_TEST_INSTALLED=yes +WORKDIR="$AUTOPKGTEST_TMP/$(basename $0)" + +private/runtests --debug --unattended --keep-going --work-dir="$WORKDIR" + +rm -rf "${WORKDIR}" diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..506148c --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,49 @@ +Tests: build-and-evaluate-test-packages +Restrictions: allow-stderr +Depends: aspell, + aspell-en, + build-essential, + cdbs, + default-jdk-headless | default-jdk, + dh-elpa | bash (<< 4.4), + dh-python, + dh-r, + dh-runit, + fakeroot, + gcc-mingw-w64-i686, + gcc-mingw-w64-x86-64, + gpg-agent, + javahelper, + libarray-utils-perl, + libio-prompt-tiny-perl, + liblist-someutils-perl, + libmce-perl, + libperl-critic-freenode-perl, + libperl-critic-pulp-perl, + libpod-coverage-trustpod-perl, + libtest-minimumversion-perl, + libtest-perl-critic-perl, + libtest-pod-coverage-perl, + libtest-pod-perl, + libtest-spelling-perl, + libtest-strict-perl, + libtest-synopsis-perl, + libtext-csv-perl, + libtext-csv-xs-perl, + libtext-diff-perl, + libtext-template-perl, + lintian, + mingw-w64-tools, + pkg-php-tools, + python-dev-is-python3, + python3, + python3-all-dev, + python3-dev, + python3-numpy, + python3-setuptools, + quilt, + tidy, + uglifyjs, + wamerican, + wbritish, + zip