From 75808db17caf8b960b351e3408e74142f4c85aac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:42:30 +0200 Subject: Adding upstream version 2.117.0. Signed-off-by: Daniel Baumann --- .../legacy-debconf/build-spec/debian/changelog.in | 6 + .../legacy-debconf/build-spec/debian/compat.in | 1 + .../legacy-debconf/build-spec/debian/control | 52 ++++++ .../legacy-debconf/build-spec/debian/copyright | 10 ++ .../debian/debconf-test-noscripts.templates | 3 + .../debian/debconf-test-postinst.postinst | 10 ++ .../build-spec/debian/debconf-test-postinst.postrm | 7 + .../debian/debconf-test-postinst.templates | 3 + .../build-spec/debian/debconf-test-preinst.postrm | 7 + .../build-spec/debian/debconf-test-preinst.preinst | 13 ++ .../debian/debconf-test-preinst.templates | 3 + .../build-spec/debian/debconf-test.config | 24 +++ .../build-spec/debian/debconf-test.postinst | 10 ++ .../build-spec/debian/debconf-test.templates | 101 +++++++++++ .../build-spec/debian/debconf-test.templates.de | 3 + .../build-spec/debian/debconf-test.templates.in | 0 .../build-spec/debian/debconf-udeb.postinst | 9 + .../build-spec/debian/debconf-udeb.templates | 3 + .../build-spec/debian/po/POTFILES.in | 2 + .../legacy-debconf/build-spec/debian/po/de.po | 66 ++++++++ .../legacy-debconf/build-spec/debian/po/fr.po | 60 +++++++ .../legacy-debconf/build-spec/debian/po/lang.po | 15 ++ .../legacy-debconf/build-spec/debian/po/nds.po | 15 ++ .../legacy-debconf/build-spec/debian/po/output | 1 + .../legacy-debconf/build-spec/debian/po/pt_BR.po | 15 ++ .../build-spec/debian/po/sample-file.po | 1 + .../build-spec/debian/po/templates.pot | 61 +++++++ .../legacy-debconf/build-spec/debian/pycompat | 1 + .../legacy-debconf/build-spec/debian/pyversions | 1 + .../legacy-debconf/build-spec/debian/rules | 64 +++++++ .../ldconfig/legacy-debconf/build-spec/fill-values | 6 + .../ldconfig/legacy-debconf/eval/desc | 2 + .../ldconfig/legacy-debconf/eval/hints | 1 + .../ldconfig/legacy-debconf/eval/post-test | 1 + .../build-spec/debian/changelog.in | 57 +++++++ .../build-spec/debian/control.in | 18 ++ .../build-spec/debian/postinst | 181 ++++++++++++++++++++ .../build-spec/debian/postrm | 47 ++++++ .../build-spec/debian/preinst | 18 ++ .../build-spec/debian/prerm | 188 +++++++++++++++++++++ .../build-spec/debian/rules | 35 ++++ .../build-spec/debian/triggers | 4 + .../build-spec/debian/watch | 11 ++ .../build-spec/fill-values | 6 + .../ldconfig/legacy-maintainer-scripts/eval/desc | 2 + .../ldconfig/legacy-maintainer-scripts/eval/hints | 1 + .../legacy-maintainer-scripts/eval/post-test | 1 + .../build-spec/debian/app.install | 2 + .../build-spec/debian/app.postinst | 6 + .../build-spec/debian/app.postrm | 6 + .../build-spec/debian/app.triggers | 1 + .../build-spec/debian/compat.in | 1 + .../build-spec/debian/control.in | 47 ++++++ .../build-spec/debian/libfish1.install | 1 + .../build-spec/debian/libfish1.preinst | 6 + .../build-spec/debian/libfish1.prerm | 6 + .../build-spec/debian/libfish1.symbols | 3 + .../build-spec/debian/libfoo1.install | 1 + .../build-spec/debian/libfoo1.postinst | 8 + .../build-spec/debian/libfoo1.postrm | 8 + .../build-spec/debian/libfoo1.symbols | 3 + .../build-spec/debian/libuns1.install | 1 + .../build-spec/debian/libuns1.postrm | 8 + .../build-spec/debian/libuns1.symbols | 3 + .../build-spec/debian/rules | 21 +++ .../build-spec/fill-values | 5 + .../build-spec/orig/Makefile | 22 +++ .../build-spec/orig/app | 2 + .../build-spec/orig/code.c | 15 ++ .../shared-libs-ldconfig-scripts/eval/desc | 2 + .../shared-libs-ldconfig-scripts/eval/hints | 5 + 71 files changed, 1329 insertions(+) create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/compat.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/control create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/copyright create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.templates create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.templates create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.config create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.postinst create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates.de create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-udeb.postinst create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-udeb.templates create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/POTFILES.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/de.po create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/fr.po create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/lang.po create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/nds.po create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/output create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/pt_BR.po create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/sample-file.po create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/templates.pot create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pycompat create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pyversions create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/rules create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/fill-values create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/desc create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/hints create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/post-test create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/control.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/postinst create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/postrm create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/preinst create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/prerm create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/rules create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/triggers create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/watch create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/fill-values create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/desc create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/hints create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/post-test create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.install create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/compat.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/control.in create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postinst create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postrm create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/rules create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/fill-values create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/Makefile create mode 100755 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/app create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/code.c create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/desc create mode 100644 t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/hints (limited to 't/recipes/checks/maintainer-scripts/ldconfig') diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/changelog.in new file mode 100644 index 0000000..f5e308e --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +debconf ([% $version %]) [% $distribution %]; 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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/control b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/control new file mode 100644 index 0000000..bf9f4e9 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper (>= 4), dpatch +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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/copyright new file mode 100644 index 0000000..84843ee --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates new file mode 100644 index 0000000..93f8071 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst new file mode 100644 index 0000000..56ab871 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst new file mode 100644 index 0000000..bf6f074 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.config new file mode 100644 index 0000000..9e32d06 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.postinst new file mode 100644 index 0000000..b387037 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates new file mode 100644 index 0000000..811bb6c --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates.de new file mode 100644 index 0000000..f9ea121 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-test.templates.in new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-udeb.postinst new file mode 100644 index 0000000..4ce41f0 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/debconf-udeb.templates new file mode 100644 index 0000000..5d7cf5a --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/POTFILES.in new file mode 100644 index 0000000..d0c82f0 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/de.po new file mode 100644 index 0000000..86c5796 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/fr.po new file mode 100644 index 0000000..c74deb2 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/lang.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/nds.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/output new file mode 100644 index 0000000..c3df1a5 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/pt_BR.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/sample-file.po new file mode 100644 index 0000000..8dcc0ff --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/po/templates.pot new file mode 100644 index 0000000..914c77f --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pyversions new file mode 100644 index 0000000..6f290b0 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/debian/rules new file mode 100755 index 0000000..933901a --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/fill-values b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/fill-values new file mode 100644 index 0000000..186615f --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-native +Testname: legacy-debconf +Source: debconf +Version: 1~rc1 +Description: Legacy test "debconf" +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/desc b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/desc new file mode 100644 index 0000000..511d56c --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-debconf +Check: maintainer-scripts/ldconfig diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/hints b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/hints new file mode 100644 index 0000000..4f765cb --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/hints @@ -0,0 +1 @@ +debconf-udeb (udeb): udeb-postinst-calls-ldconfig [postinst] diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/post-test b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-debconf/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/changelog.in b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..a12fc8c --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/changelog.in @@ -0,0 +1,57 @@ +maintainer-scripts ([% $version %]) [% $distribution %]; 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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/control.in b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..63dd2db --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group +Uploaders: Anyone but Jeroen +Build-Depends: [% $build_depends %] +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: [% $package_architecture %] +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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/postinst b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..e56ed3b --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..6058978 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/prerm b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/prerm new file mode 100644 index 0000000..076ecaf --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/rules b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/rules new file mode 100755 index 0000000..5fcef00 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/triggers b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/triggers new file mode 100644 index 0000000..f627094 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/watch b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/debian/watch new file mode 100644 index 0000000..430eea3 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/fill-values b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/fill-values new file mode 100644 index 0000000..c281e87 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-non-native +Testname: legacy-maintainer-scripts +Source: maintainer-scripts +Version: 7+dfsg-0.1 +Description: Legacy test "maintainer-scripts" +Extra-Build-Depends: dash (>= 0.5.10.2) diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/desc b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/desc new file mode 100644 index 0000000..4b4c6eb --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-maintainer-scripts +Check: maintainer-scripts/ldconfig diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/hints b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/hints new file mode 100644 index 0000000..e02cca8 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/hints @@ -0,0 +1 @@ +maintainer-scripts (binary): maintscript-calls-ldconfig [postrm] diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/post-test b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/legacy-maintainer-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.install b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.install new file mode 100644 index 0000000..fe6951d --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.install @@ -0,0 +1,2 @@ +app usr/lib/app + diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst new file mode 100755 index 0000000..3e67b7e --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +ldconfig + +#DEBHELPER# diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm new file mode 100755 index 0000000..eaeb28d --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +if [ "$1" = remove ] ; then ldconfig ; fi + +#DEBHELPER# diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers new file mode 100644 index 0000000..dd86603 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers @@ -0,0 +1 @@ +activate-noawait ldconfig diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/compat.in b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/control.in b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..9960ee9 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/control.in @@ -0,0 +1,47 @@ +Source: [% $source %] +Priority: optional +Section: libs +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: [% $description %] (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: [% $description %] (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: [% $description %] (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: [% $description %] (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/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install new file mode 100644 index 0000000..b1c4ec9 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install @@ -0,0 +1 @@ +usr/lib/libfish* diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst new file mode 100755 index 0000000..3e67b7e --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +ldconfig + +#DEBHELPER# diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm new file mode 100755 index 0000000..3e67b7e --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +ldconfig + +#DEBHELPER# diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols new file mode 100644 index 0000000..2c5a075 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols @@ -0,0 +1,3 @@ +libfish.so.1 libfish1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install new file mode 100644 index 0000000..f3a3a05 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install @@ -0,0 +1 @@ +usr/lib/libfoo* diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postinst b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postinst new file mode 100755 index 0000000..2615bf9 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postrm b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postrm new file mode 100755 index 0000000..9b2f636 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols new file mode 100644 index 0000000..a1f052b --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install new file mode 100644 index 0000000..b91d5ff --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install @@ -0,0 +1 @@ +usr/lib/libuns* diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm new file mode 100755 index 0000000..acc5d15 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +ldconfig + + +# -- we will remove all debhelper stuff later. +#DEBHELPER# diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols new file mode 100644 index 0000000..d91149f --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols @@ -0,0 +1,3 @@ +libuns.so.1 libuns1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/rules b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/debian/rules new file mode 100755 index 0000000..b1c71a9 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/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/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/fill-values b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/fill-values new file mode 100644 index 0000000..2159596 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-native +Testname: shared-libs-ldconfig-scripts +Default-Build-Depends: debhelper (>= 9.20151004~) +Dh-Compat-Level: 9 +Description: Test checks related to ldconfig in scripts diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/Makefile b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/Makefile new file mode 100644 index 0000000..4d3c286 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/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/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/app b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/app new file mode 100755 index 0000000..04f1961 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/app @@ -0,0 +1,2 @@ +#!/bin/sh +echo Hello World diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/code.c b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/code.c new file mode 100644 index 0000000..0ed08e0 --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/build-spec/orig/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/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/desc b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/desc new file mode 100644 index 0000000..d160b7b --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: shared-libs-ldconfig-scripts +Check: maintainer-scripts/ldconfig diff --git a/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/hints b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/hints new file mode 100644 index 0000000..bd709fa --- /dev/null +++ b/t/recipes/checks/maintainer-scripts/ldconfig/shared-libs-ldconfig-scripts/eval/hints @@ -0,0 +1,5 @@ +libuns1 (binary): maintscript-calls-ldconfig [postrm] +libfish1 (binary): maintscript-calls-ldconfig [prerm] +libfish1 (binary): maintscript-calls-ldconfig [preinst] +app (binary): maintscript-calls-ldconfig [postrm] +app (binary): maintscript-calls-ldconfig [postinst] -- cgit v1.2.3