[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian: r464 - in trunk: checks debian testset testset/dh-test testset/dh-test/debian



Author: djpig
Date: 2005-08-04 23:36:06 +0200 (Thu, 04 Aug 2005)
New Revision: 464

Added:
   trunk/testset/dh-test/
   trunk/testset/dh-test/debian/
   trunk/testset/dh-test/debian/README.Debian
   trunk/testset/dh-test/debian/changelog
   trunk/testset/dh-test/debian/control
   trunk/testset/dh-test/debian/copyright
   trunk/testset/dh-test/debian/rules
   trunk/testset/tags.dh-test
Modified:
   trunk/checks/debhelper
   trunk/checks/debhelper.desc
   trunk/debian/changelog
   trunk/testset/tags.libbaz
Log:
+ Warn about using debhelper compat version lower than 3
  like debhelper itself
+ Drop package-lacks-versioned-build-depends-on-debhelper
  tag for compat versions < 5. With debhelper 4 even in oldstable
  issuing an error here is silly
+ Add new testcase, essentially an empty single binary dh_make result
  to test some debhelper tags


Modified: trunk/checks/debhelper
===================================================================
--- trunk/checks/debhelper	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/checks/debhelper	2005-08-04 21:36:06 UTC (rev 464)
@@ -173,12 +173,17 @@
 }
 closedir(DEBIAN);
 
-if ($needversiondepends and ($needversiondepends > 1) and ! Dep::versions_lte($needversiondepends, $seenversiondepends)) {
-    tag "package-lacks-versioned-build-depends-on-debhelper", "$needversiondepends";
+$needversiondepends ||= 1;
+if ($needversiondepends < 3) {
+    tag "package-uses-deprecated-debhelper-compat-version", $needversiondepends;
 }
 
+if ($needversiondepends > 4 and ! Dep::versions_lte($needversiondepends, $seenversiondepends)) {
+    tag "package-lacks-versioned-build-depends-on-debhelper", $needversiondepends;
 }
 
+}
+
 1;
 
 # vim: syntax=perl

Modified: trunk/checks/debhelper.desc
===================================================================
--- trunk/checks/debhelper.desc	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/checks/debhelper.desc	2005-08-04 21:36:06 UTC (rev 464)
@@ -72,3 +72,10 @@
  get out of synchronisation, the package may not build as expected.
  .
  Please refer to the debhelper(7) manual page for more information.
+
+Tag: package-uses-deprecated-debhelper-compat-version
+Type: warning
+Info: The debhelper compatibility version used by this package
+ (either declared in debian/compat or in debian/rules) is marked
+ as deprecated by the debhelper developer. You should really consider
+ using a newer compatibility version.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/debian/changelog	2005-08-04 21:36:06 UTC (rev 464)
@@ -3,6 +3,12 @@
   * checks/binaries:
     + [FL] Convert the SONAME to lower case before comparing with
       package name. Suggested by Josh Triplett (Closes: #321206)
+  * checks/debhelper{,.desc}:
+    + [FL] Warn about using debhelper compat version lower than 3
+      like debhelper itself
+    + [FL] Drop package-lacks-versioned-build-depends-on-debhelper
+      tag for compat versions < 5. With debhelper 4 even in oldstable
+      issuing an error here is silly
 
  -- Frank Lichtenheld <djpig@debian.org>  Thu,  4 Aug 2005 12:45:33 +0200
 

Added: trunk/testset/dh-test/debian/README.Debian
===================================================================
--- trunk/testset/dh-test/debian/README.Debian	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/testset/dh-test/debian/README.Debian	2005-08-04 21:36:06 UTC (rev 464)
@@ -0,0 +1,6 @@
+dh-test for Debian
+------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Frank Lichtenheld <djpig@debian.org>, Thu,  4 Aug 2005 23:09:00 +0200

Added: trunk/testset/dh-test/debian/changelog
===================================================================
--- trunk/testset/dh-test/debian/changelog	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/testset/dh-test/debian/changelog	2005-08-04 21:36:06 UTC (rev 464)
@@ -0,0 +1,6 @@
+dh-test (1-1) unstable; urgency=low
+
+  * Initial release Closes: #nnnn  (nnnn is the bug number of your ITP)
+
+ -- Frank Lichtenheld <djpig@debian.org>  Thu,  4 Aug 2005 23:09:00 +0200
+

Added: trunk/testset/dh-test/debian/control
===================================================================
--- trunk/testset/dh-test/debian/control	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/testset/dh-test/debian/control	2005-08-04 21:36:06 UTC (rev 464)
@@ -0,0 +1,12 @@
+Source: dh-test
+Section: unknown
+Priority: optional
+Maintainer: Frank Lichtenheld <djpig@debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.2
+
+Package: dh-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>

Added: trunk/testset/dh-test/debian/copyright
===================================================================
--- trunk/testset/dh-test/debian/copyright	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/testset/dh-test/debian/copyright	2005-08-04 21:36:06 UTC (rev 464)
@@ -0,0 +1,10 @@
+This package was debianized by Frank Lichtenheld <djpig@debian.org> on
+Thu,  4 Aug 2005 23:09:00 +0200.
+
+It was downloaded from <fill in ftp site>
+
+Copyright Holder: <put author(s) name and email here>
+
+License:
+
+<Put the license of the package here>

Added: trunk/testset/dh-test/debian/rules
===================================================================
--- trunk/testset/dh-test/debian/rules	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/testset/dh-test/debian/rules	2005-08-04 21:36:06 UTC (rev 464)
@@ -0,0 +1,100 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DH_COMPAT=2
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+#	$(MAKE)
+	#docbook-to-man debian/dh-test.sgml > dh-test.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/dh-test.
+#	$(MAKE) install DESTDIR=$(CURDIR)/debian/dh-test
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testversion
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+#	dh_dhelp
+	dh_suidregister
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


Property changes on: trunk/testset/dh-test/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/testset/tags.dh-test
===================================================================
--- trunk/testset/tags.dh-test	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/testset/tags.dh-test	2005-08-04 21:36:06 UTC (rev 464)
@@ -0,0 +1,8 @@
+E: dh-test: description-is-dh_make-template
+E: dh-test: helper-templates-in-copyright
+W: dh-test source: dh_suidregister-is-obsolete
+W: dh-test source: dh_testversion-is-deprecated
+W: dh-test source: native-package-with-dash-version
+W: dh-test source: package-uses-deprecated-debhelper-compat-version 2
+W: dh-test: unknown-section unknown
+W: dh-test: wrong-bug-number-in-closes #nnnn

Modified: trunk/testset/tags.libbaz
===================================================================
--- trunk/testset/tags.libbaz	2005-08-04 10:48:13 UTC (rev 463)
+++ trunk/testset/tags.libbaz	2005-08-04 21:36:06 UTC (rev 464)
@@ -10,6 +10,7 @@
 E: libbaz1: unstripped-binary-or-object ./usr/lib/libfoo2.so.1.0.3b
 W: libbaz source: ancient-standards-version 3.2.1
 W: libbaz source: changelog-should-mention-nmu
+W: libbaz source: package-uses-deprecated-debhelper-compat-version 1
 W: libbaz source: source-nmu-has-incorrect-version-number 1
 W: libbaz1: missing-depends-line
 W: libbaz1: package-name-doesnt-match-sonames libbaz2-1.0



Reply to: