diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/build-systems | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/build-systems')
145 files changed, 1714 insertions, 0 deletions
diff --git a/t/recipes/checks/build-systems/automake/automake-general/build-spec/fill-values b/t/recipes/checks/build-systems/automake/automake-general/build-spec/fill-values new file mode 100644 index 0000000..5752e5e --- /dev/null +++ b/t/recipes/checks/build-systems/automake/automake-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-native +Testname: automake-general +Description: Test if the package uses the deprecated configure.in for automake diff --git a/t/recipes/checks/build-systems/automake/automake-general/build-spec/orig/Makefile.am b/t/recipes/checks/build-systems/automake/automake-general/build-spec/orig/Makefile.am new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/build-systems/automake/automake-general/build-spec/orig/Makefile.am diff --git a/t/recipes/checks/build-systems/automake/automake-general/build-spec/orig/configure.in b/t/recipes/checks/build-systems/automake/automake-general/build-spec/orig/configure.in new file mode 100644 index 0000000..575a30d --- /dev/null +++ b/t/recipes/checks/build-systems/automake/automake-general/build-spec/orig/configure.in @@ -0,0 +1 @@ +AC_INIT diff --git a/t/recipes/checks/build-systems/automake/automake-general/eval/desc b/t/recipes/checks/build-systems/automake/automake-general/eval/desc new file mode 100644 index 0000000..1ff6707 --- /dev/null +++ b/t/recipes/checks/build-systems/automake/automake-general/eval/desc @@ -0,0 +1,2 @@ +Testname: automake-general +Check: build-systems/automake diff --git a/t/recipes/checks/build-systems/automake/automake-general/eval/hints b/t/recipes/checks/build-systems/automake/automake-general/eval/hints new file mode 100644 index 0000000..4d3dfa6 --- /dev/null +++ b/t/recipes/checks/build-systems/automake/automake-general/eval/hints @@ -0,0 +1 @@ +automake-general (source): deprecated-configure-filename [configure.in] diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/fill-values new file mode 100644 index 0000000..b153334 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: cruft-general-test-suite +Skeleton: upload-non-native +Description: Check that cruft in test suites is okay diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/orig/hello.c b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/orig/hello.c new file mode 100644 index 0000000..1b47b80 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/orig/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int +main(void) +{ + printf("Hello world!\n"); + return 0; +} diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/pre-upstream b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/pre-upstream new file mode 100755 index 0000000..8665c92 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/pre-upstream @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist upstream. We do much of it +# here rather than in the template so that Lintian itself can be imported into +# revision control systems. + +set -e +dir="$1" + +mkdir -p "${dir}/t/CVS" +echo 'source-contains-cvs-control-dir' > "${dir}/t/CVS/Entries" +mkdir -p "${dir}/foo/t/.svn" +echo 'source-contains-svn-control-dir' > "${dir}/foo/t/.svn/format" +mkdir -p "${dir}/test/.bzr" +echo 'source-contains-bzr-control-dir' > "${dir}/test/.bzr/foo" +mkdir -p "${dir}/bar/test/{arch}" +echo 'source-contains-arch-control-dir' > "${dir}/bar/test/{arch}/foo" +mkdir -p "${dir}/tests/.git" +echo 'source-contains-git-control-dir' > "${dir}/tests/.git/foo" +mkdir -p "${dir}/baz/foo/tests/.hg" +echo 'source-contains-hg-control-dir' > "${dir}/baz/foo/tests/.hg/foo" +mkdir -p "${dir}/testset/.be" +echo 'source-contains-bts-control-dir' > "${dir}/testset/.be/foo" + +echo 'source-contains-svn-commit-file' > "${dir}/t/svn-commit.tmp" +echo 'source-contains-svk-commit-file' > "${dir}/t/svk-commit444.tmp" +echo 'source-contains-arch-inventory-file' > "${dir}/t/.arch-inventory" +echo 'source-contains-hg-tags-file' > "${dir}/t/.hgtags" +echo 'source-contains-cvs-conflict-copy' > "${dir}/t/.#foo.1.1" +echo 'source-contains-svn-conflict-file' > "${dir}/t/foo.r1352" + +echo 'configure-generated-file-in-source' > "${dir}/tests/config.cache" + +cd "$1" +gcc -o t/hello hello.c diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/desc b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/desc new file mode 100644 index 0000000..2da240a --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-general-test-suite +Test-Against: + configure-generated-file-in-source +Check: build-systems/autotools diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/hints b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/hints new file mode 100644 index 0000000..5f7a858 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/build-spec/fill-values new file mode 100644 index 0000000..b6419d2 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: cruft-ancient-libtool-2 +Description: Test that an old (1.5.2) ltmain.sh is detected correctly diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/build-spec/orig/ltmain.sh b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/build-spec/orig/ltmain.sh new file mode 100644 index 0000000..662c6f0 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/build-spec/orig/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 <gord@gnu.ai.mit.edu>, 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 <<EOF +$* +EOF + exit 0 +fi + +# define SED for historic ltconfig's generated by Libtool 1.3 +test -z "$SED" && SED=sed + +# The name of this program. +progname=`$echo "$0" | ${SED} 's%^.*/%%'` +modename="$progname" + +# Constants. +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=1.5.2 +TIMESTAMP=" (1.1220.2.60 2004/01/25 12:25:08)" diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/desc b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/desc new file mode 100644 index 0000000..3d83282 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/desc @@ -0,0 +1,3 @@ +Testname: cruft-ancient-libtool-2 +See-Also: Debian Bug#293296 +Check: build-systems/autotools/libtool diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/hints b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/hints new file mode 100644 index 0000000..1cc1820 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/fill-values new file mode 100644 index 0000000..73ae4f6 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: cruft-ancient-libtool +Description: Test that a very old ltmain.sh/ltconfig is detected correctly diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/orig/ltconfig b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/orig/ltconfig new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/orig/ltconfig diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/orig/ltmain.sh b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/orig/ltmain.sh new file mode 100644 index 0000000..c7b800b --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/build-spec/orig/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 <gord@gnu.ai.mit.edu>, 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 <<EOF +$* +EOF + exit 0 +fi + +# The name of this program. +progname=`$echo "$0" | sed 's%^.*/%%'` +modename="$progname" + +# Constants. +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=1.3.5 +TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)" + diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/desc b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/desc new file mode 100644 index 0000000..b7444e3 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/desc @@ -0,0 +1,3 @@ +Testname: cruft-ancient-libtool +See-Also: Debian Bug#293296 +Check: build-systems/autotools/libtool diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/hints b/t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/hints new file mode 100644 index 0000000..c81096c --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/build-spec/fill-values new file mode 100644 index 0000000..25f81aa --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: cruft-current-libtool +Description: Test that a current ltmain.sh is detected correctly diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/build-spec/orig/ltmain.sh b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/build-spec/orig/ltmain.sh new file mode 100644 index 0000000..c5f7e11 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/build-spec/orig/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 <gord@gnu.ai.mit.edu>, 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/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/desc b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/desc new file mode 100644 index 0000000..1d949a7 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-current-libtool +Test-Against: ancient-libtool +See-Also: Debian Bug#293296 +Check: build-systems/autotools/libtool diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/hints b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/hints diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/fill-values new file mode 100644 index 0000000..7040ad7 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: cruft-updated-libtool +Extra-Build-Depends: libtool +Description: Old ltmain.sh/ltconfig is fine with build-depend diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/orig/ltconfig b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/orig/ltconfig new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/orig/ltconfig diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/orig/ltmain.sh b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/orig/ltmain.sh new file mode 100644 index 0000000..c7b800b --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/build-spec/orig/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 <gord@gnu.ai.mit.edu>, 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 <<EOF +$* +EOF + exit 0 +fi + +# The name of this program. +progname=`$echo "$0" | sed 's%^.*/%%'` +modename="$progname" + +# Constants. +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=1.3.5 +TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)" + diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/desc b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/desc new file mode 100644 index 0000000..8361e6e --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-updated-libtool +Test-Against: ancient-libtool +See-Also: Debian Bug#534134 +Check: build-systems/autotools/libtool diff --git a/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/hints b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/hints diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/fill-values new file mode 100644 index 0000000..17ea1fd --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-native +Testname: macro-not-cross-compilation-safe-old-filename +Description: Check for packages that look for pkg-config incorrectly diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/orig/configure.in b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/orig/configure.in new file mode 100644 index 0000000..22ab789 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/orig/configure.in @@ -0,0 +1,5 @@ +AC_INIT + +AC_PATH_PROG(PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin) + + dnl AC_PATH_PROG(PKG_CONFIG, pkg-config, no) diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/orig/src/configure.in b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/orig/src/configure.in new file mode 100644 index 0000000..eeb7274 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/build-spec/orig/src/configure.in @@ -0,0 +1 @@ +AC_PATH_PROG(PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin) diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/desc b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/desc new file mode 100644 index 0000000..da64458 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/desc @@ -0,0 +1,2 @@ +Testname: macro-not-cross-compilation-safe-old-filename +Check: build-systems/autotools diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/hints b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/hints new file mode 100644 index 0000000..8e6791b --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/fill-values new file mode 100644 index 0000000..c13e4d5 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-native +Testname: macro-not-cross-compilation-safe +Description: Check for packages that look for pkg-config incorrectly diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/orig/configure.ac b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/orig/configure.ac new file mode 100644 index 0000000..4e448c8 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/orig/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/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/orig/src/configure.ac b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/orig/src/configure.ac new file mode 100644 index 0000000..0250f9b --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/build-spec/orig/src/configure.ac @@ -0,0 +1 @@ +AC_PATH_PROG(PKG_CONFIG, pkg-config, no) diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/desc b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/desc new file mode 100644 index 0000000..c4022ba --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/desc @@ -0,0 +1,2 @@ +Testname: macro-not-cross-compilation-safe +Check: build-systems/autotools diff --git a/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/hints b/t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/hints new file mode 100644 index 0000000..caf4c75 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/rules b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/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/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/somepackage.substvars b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/somepackage.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/substvars b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/fill-values b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/fill-values new file mode 100644 index 0000000..c6798f7 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-diff +Skeleton: upload-non-native +Source-Format: 1.0 +Description: Check for cruft added in the diff diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/pre-build b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/pre-build new file mode 100755 index 0000000..537b323 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-diff/build-spec/pre-build @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" +mkdir "${dir}/.pc" +echo 'diff-contains-quilt-control-dir' > "${dir}/.pc/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-diff/eval/desc b/t/recipes/checks/build-systems/cmake/cruft-general-diff/eval/desc new file mode 100644 index 0000000..da239ce --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-diff/eval/desc @@ -0,0 +1,3 @@ +Testname: cruft-general-diff +See-Also: Debian Bug#598251 +Check: build-systems/cmake diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-diff/eval/hints b/t/recipes/checks/build-systems/cmake/cruft-general-diff/eval/hints new file mode 100644 index 0000000..483fd14 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/debian/rules b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/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/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/debian/substvars b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/fill-values b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/fill-values new file mode 100644 index 0000000..8460259 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: cruft-general-native +Description: Check for cruft in a native package diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/pre-build b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/pre-build new file mode 100755 index 0000000..c594074 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-native/build-spec/pre-build @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-native/eval/desc b/t/recipes/checks/build-systems/cmake/cruft-general-native/eval/desc new file mode 100644 index 0000000..b61ccf2 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-native/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-general-native +Check: build-systems/cmake diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-native/eval/hints b/t/recipes/checks/build-systems/cmake/cruft-general-native/eval/hints new file mode 100644 index 0000000..352bbe8 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/README.source b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/README.source new file mode 100644 index 0000000..0bbaa60 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/README.source @@ -0,0 +1 @@ +Some information about the patch system diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/rules b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/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/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/somepackage.substvars b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/somepackage.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/substvars b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/fill-values b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/fill-values new file mode 100644 index 0000000..01bda9c --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-quilt +Skeleton: upload-non-native +Source-Format: 3.0 (quilt) +Description: Check for cruft added in a 3.0 (quilt) package diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/pre-build b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/pre-build new file mode 100755 index 0000000..53e0ddd --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/build-spec/pre-build @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1/debian" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" +mkdir "${dir}/.pc" +echo 'diff-contains-quilt-control-dir' > "${dir}/.pc/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-quilt/eval/desc b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/eval/desc new file mode 100644 index 0000000..609f223 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/eval/desc @@ -0,0 +1,3 @@ +Testname: cruft-general-quilt +See-Also: Debian Bug#598251 +Check: build-systems/cmake diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-quilt/eval/hints b/t/recipes/checks/build-systems/cmake/cruft-general-quilt/eval/hints new file mode 100644 index 0000000..f47e7ff --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/patches/wig-pen b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/patches/wig-pen new file mode 100644 index 0000000..a452b53 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/patches/wig-pen @@ -0,0 +1,5 @@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for wig&pen diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/rules b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/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/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/substvars b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/fill-values b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/fill-values new file mode 100644 index 0000000..edb39d9 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-wig-pen +Skeleton: upload-non-native +Source-Format: 2.0 +Description: Check for cruft added in a 2.0 package diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/orig/README b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/orig/README new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/orig/README @@ -0,0 +1 @@ +README diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/pre-build b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/pre-build new file mode 100755 index 0000000..78f359c --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/build-spec/pre-build @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1/debian" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/eval/desc b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/eval/desc new file mode 100644 index 0000000..e0df7ff --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-general-wig-pen +Check: build-systems/cmake diff --git a/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/eval/hints b/t/recipes/checks/build-systems/cmake/cruft-general-wig-pen/eval/hints new file mode 100644 index 0000000..00b6c07 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/cmake/files-package-contains-foo/build-spec/debian/rules b/t/recipes/checks/build-systems/cmake/files-package-contains-foo/build-spec/debian/rules new file mode 100644 index 0000000..8e0b207 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/files-package-contains-foo/build-spec/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/t/recipes/checks/build-systems/cmake/files-package-contains-foo/build-spec/fill-values b/t/recipes/checks/build-systems/cmake/files-package-contains-foo/build-spec/fill-values new file mode 100644 index 0000000..b55ed53 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/files-package-contains-foo/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-package-contains-foo +Description: Test tags about cruft in binary packages diff --git a/t/recipes/checks/build-systems/cmake/files-package-contains-foo/eval/desc b/t/recipes/checks/build-systems/cmake/files-package-contains-foo/eval/desc new file mode 100644 index 0000000..e0da977 --- /dev/null +++ b/t/recipes/checks/build-systems/cmake/files-package-contains-foo/eval/desc @@ -0,0 +1,2 @@ +Testname: files-package-contains-foo +Check: build-systems/cmake diff --git a/t/recipes/checks/build-systems/cmake/files-package-contains-foo/eval/hints b/t/recipes/checks/build-systems/cmake/files-package-contains-foo/eval/hints new file mode 100644 index 0000000..92de498 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/changelog.in new file mode 100644 index 0000000..935c633 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/changelog.in @@ -0,0 +1,41 @@ +scripts ([% $version %]) [% $distribution %]; 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 <he@debian.org> 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 <jeroen@wolffelaar.nl> 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 <he@debian.org> 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 <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/control.in new file mode 100644 index 0000000..ef39375 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers <lintian-maint@debian.org> +Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org> +Build-Depends-Indep: python3 (>= 3.1), python3 (<< 3.2), dpatch +Standards-Version: 3.2.1 + +Package: scripts +Architecture: [% $package_architecture %] +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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/copyright new file mode 100644 index 0000000..ad8a119 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00list new file mode 100644 index 0000000..3b9d37e --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00list @@ -0,0 +1,11 @@ +01_not_here_right_now.dpatch + +# some comment +/* some more + elaborate comment + which needs DPATCH_OPTION_CPP=1 + */02_i_dont_have_a_description.patch 03_specified_without_dpatch + +// and again a comment + +04_i_dont_have_a_description_either.patch diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00list.sparc new file mode 100644 index 0000000..8b47ab3 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00list.sparc @@ -0,0 +1 @@ +01_some_other_patch_thats_not_in_the_package.dpatch diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00options new file mode 100644 index 0000000..57ffeb6 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/00options @@ -0,0 +1 @@ +DPATCH_OPTION_CPP=1 diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch new file mode 100644 index 0000000..9279c1b --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch new file mode 100644 index 0000000..8303ac6 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch @@ -0,0 +1,5 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## All lines beginning with `## DP:' are a description of the patch. +## DP: Listed in 00list without .dpatch suffix. + +@DPATCH@ diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch new file mode 100644 index 0000000..b603f16 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch @@ -0,0 +1,7 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: + +@DPATCH@ diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/postinst new file mode 100644 index 0000000..7c5baf1 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/postrm new file mode 100644 index 0000000..8fa75a2 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/preinst new file mode 100644 index 0000000..0799557 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/rules new file mode 100755 index 0000000..dc6b7d5 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/rules @@ -0,0 +1,111 @@ +#!/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)/usr/src/scripts + 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 755 gccbug.dpatch $(tmp)/usr/share/scripts/ + install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/ + + 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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/scripts.conffiles new file mode 100644 index 0000000..01a371a --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/debian/watch new file mode 100644 index 0000000..dba5815 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/fill-values b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/fill-values new file mode 100644 index 0000000..8a68457 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/fill-values @@ -0,0 +1,6 @@ +Testname: legacy-scripts +Source: scripts +Version: 6ds-1ubuntu0.5.10.1 +Package-Architecture: all +Skeleton: upload-non-native +Description: Legacy test "scripts" diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/csh-foo new file mode 100644 index 0000000..eaf47a1 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/envfoo new file mode 100755 index 0000000..e005037 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/fish-foo new file mode 100644 index 0000000..7f59139 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/gccbug.dpatch new file mode 100755 index 0000000..65cbf37 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/gccbug.dpatch @@ -0,0 +1,39 @@ +#! /bin/sh -e + +# DP: Use sensible-editor instead of vi as fallback editor + +# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being +# a valid dpatch, so don't warn about it if it's in /usr/src. + +dir= +if [ $# -eq 3 -a "$2" = '-d' ]; then + pdir="-d $3" + dir="$3/" +elif [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) + patch $pdir -f --no-backup-if-mismatch -p0 < $0 + ;; + -unpatch) + patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 + ;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +esac +exit 0 + +--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100 ++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100 +@@ -134,7 +134,7 @@ + # If they don't have a preferred editor set, then use + if [ -z "$VISUAL" ]; then + if [ -z "$EDITOR" ]; then +- EDIT=vi ++ EDIT=/usr/bin/sensible-editor + else + EDIT="$EDITOR" + fi diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/guile-bizarre new file mode 100644 index 0000000..70e2c74 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-lsb-broken new file mode 100644 index 0000000..e4dfa92 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-lsb-other new file mode 100644 index 0000000..adb4795 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-no-lsb new file mode 100644 index 0000000..6b994dd --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/init-skeleton new file mode 100644 index 0000000..c868508 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/jruby-broken new file mode 100644 index 0000000..56f574d --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/lefty-foo new file mode 100644 index 0000000..52c003e --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/make-foo new file mode 100644 index 0000000..6b787b5 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perl-bizarre-1 new file mode 100644 index 0000000..fc632c8 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perl-bizarre-2 new file mode 100644 index 0000000..afd9cfe --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perl-bizarre-3 new file mode 100644 index 0000000..44baf75 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perlfoo new file mode 100644 index 0000000..5b27ed0 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/phpenvfoo new file mode 100644 index 0000000..cbbfb2e --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php +<html> +<head> +<title>Dumb PHP script</title> +</head> +<body><? print(Date("l F d, Y")); ?></body> +</html> diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/phpfoo new file mode 100644 index 0000000..e0595e6 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php +<html> +<head> +<title>Dumb PHP script</title> +</head> +<body><? print(Date("l F d, Y")); ?></body> +</html> diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/py3.Xfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/py3.Xfoo new file mode 100755 index 0000000..7f105e6 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/py3.Xfoo @@ -0,0 +1,4 @@ +#! /usr/bin/env python3.7 + +if __name__ == '__main__': + print 'Hi there' diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/py3foo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/py3foo new file mode 100755 index 0000000..02b0444 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/py3foo @@ -0,0 +1,4 @@ +#! /usr/bin/env python3 + +if __name__ == '__main__': + print 'Hi there' diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/rubyfoo new file mode 100644 index 0000000..8024605 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/sh-broken new file mode 100644 index 0000000..7b79074 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/suidperlfoo new file mode 100644 index 0000000..bcbc471 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/tkfoo new file mode 100755 index 0000000..533595a --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/wishfoo new file mode 100644 index 0000000..035c9ad --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/xsession-test new file mode 100644 index 0000000..ca49d72 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/orig/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/pre-build b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/pre-build new file mode 100755 index 0000000..b5649a8 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/build-spec/pre-build @@ -0,0 +1,5 @@ +#!/bin/sh + +DIR="$1" + +rm -f "$DIR/debian/compat" diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/desc b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/desc new file mode 100644 index 0000000..1072404 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-scripts +Check: build-systems/debhelper/maintainer-script/token diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/hints b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/hints new file mode 100644 index 0000000..9fe82fb --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/post-test b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/maintscript b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/maintscript new file mode 100644 index 0000000..c3dcfac --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/maintscript @@ -0,0 +1 @@ +mv_conffile /etc/foo/old.conf /etc/foo/new.conf 0~ diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/postinst b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/postinst new file mode 100755 index 0000000..492f84a --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/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 <<EOF +fc-cache +EOF + +# Obsolete suidregister program. +suidregister /usr/bin/foo + +# install-info is now handled through triggers. +install-info --quiet --section Development Development \ + /usr/share/info/foobar.info + +# Packages don't get to modify /etc/ld.so.conf +echo '/usr/local/lib' >> /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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/postrm b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/postrm new file mode 100644 index 0000000..21ce89e --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/prerm b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/prerm new file mode 100644 index 0000000..fcbd64e --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/rules b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/debian/rules new file mode 100644 index 0000000..6f66b82 --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/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/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/fill-values b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/fill-values new file mode 100644 index 0000000..111edec --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: scripts-maintainer-general +Distribution: precise +Description: Check general problems in maintainer scripts diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/desc b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/desc new file mode 100644 index 0000000..09af74a --- /dev/null +++ b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/desc @@ -0,0 +1,5 @@ +Testname: scripts-maintainer-general +Profile: ubuntu/main +Check: build-systems/debhelper/maintainer-script/token +See-Also: + Bug#532984 diff --git a/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/hints b/t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/hints new file mode 100644 index 0000000..bdf2623 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/debian/install b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/debian/install new file mode 100644 index 0000000..fdf1d81 --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/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/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/debian/links b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/debian/links new file mode 100644 index 0000000..c34baaf --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/debian/links @@ -0,0 +1 @@ +var/lib/kde3/kio_locate.la var/lib/kde3/foo.la diff --git a/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/fill-values b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/fill-values new file mode 100644 index 0000000..44b70c6 --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: shared-libs-la-files +Description: Test checks related to libtool .la files diff --git a/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/Makefile b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/Makefile new file mode 100644 index 0000000..b490041 --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/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/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/_python_module.txt b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/_python_module.txt new file mode 100644 index 0000000..6b425c0 --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/_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/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/dependency_libs.txt b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/dependency_libs.txt new file mode 100644 index 0000000..34b0863 --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/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/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/kio_locate.txt b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/kio_locate.txt new file mode 100644 index 0000000..4391635 --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/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/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/trailing-slash.txt b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/trailing-slash.txt new file mode 100644 index 0000000..736610e --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/build-spec/orig/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/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/desc b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/desc new file mode 100644 index 0000000..280c5ed --- /dev/null +++ b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/desc @@ -0,0 +1,2 @@ +Testname: shared-libs-la-files +Check: build-systems/libtool/la-file diff --git a/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/hints b/t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/hints new file mode 100644 index 0000000..cf80cd0 --- /dev/null +++ b/t/recipes/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/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/build-spec/fill-values b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/build-spec/fill-values new file mode 100644 index 0000000..b25f0cb --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: cruft-contains-waf-stripped +Skeleton: upload-non-native +Description: Check for sources with waf diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/build-spec/orig/waf b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/build-spec/orig/waf new file mode 100644 index 0000000..1f95f10 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/build-spec/orig/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/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/eval/desc b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/eval/desc new file mode 100644 index 0000000..7cd19ad --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/eval/desc @@ -0,0 +1,3 @@ +Testname: cruft-contains-waf-stripped +Test-Against: source-contains-waf-binary +Check: build-systems/waf diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/eval/hints b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/fill-values b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/fill-values new file mode 100644 index 0000000..772b2f0 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: cruft-contains-waf +Skeleton: upload-non-native +Description: Check for sources with waf diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/some-source.c b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/some-source.c new file mode 100644 index 0000000..6691108 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/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/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/waf.in b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/waf.in new file mode 100644 index 0000000..4fc0412 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/orig/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/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/pre-upstream b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/pre-upstream new file mode 100755 index 0000000..12db812 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/build-spec/pre-upstream @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Time to create a waf binary... + +set -e + +dir="$1" + +cd "$dir" + +tar cjf waf-bin.tar.bz2 some-source.c +cp waf.in waf +echo "#==>" >> waf +echo -n "#" >> waf +perl -pe 's,\n,\#\*,go; s,\r,\#\%,go;' waf-bin.tar.bz2 >> waf +echo >> waf +echo "#<==" >> waf +rm waf-bin.tar.bz2 diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf/eval/desc b/t/recipes/checks/build-systems/waf/cruft-contains-waf/eval/desc new file mode 100644 index 0000000..2a6e758 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-contains-waf +Check: build-systems/waf diff --git a/t/recipes/checks/build-systems/waf/cruft-contains-waf/eval/hints b/t/recipes/checks/build-systems/waf/cruft-contains-waf/eval/hints new file mode 100644 index 0000000..4ae22a2 --- /dev/null +++ b/t/recipes/checks/build-systems/waf/cruft-contains-waf/eval/hints @@ -0,0 +1 @@ +cruft-contains-waf (source): source-contains-waf-binary [waf] |