From b0d0578a1a0d1287646e77739eead20841cf9a54 Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Wed, 28 Nov 2007 15:44:32 +0100 Subject: [PATCH] dpkg-gensymbols: override the check level with an environment variable * scripts/dpkg-gensymbols.pl: The environment variable DPKG_GENSYMBOLS_CHECK_LEVEL can override the level of checks made by dpkg-gensymbols. This offers the possibility to unofficial ports to ignore errors due to symbols files that do not correspond. --- ChangeLog | 7 +++++++ debian/changelog | 2 ++ man/dpkg-gensymbols.1 | 3 +++ scripts/dpkg-gensymbols.pl | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 68c6d4a4..a6f5935d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-11-28 Raphael Hertzog + + * scripts/dpkg-gensymbols.pl: The environment variable + DPKG_GENSYMBOLS_CHECK_LEVEL can override the level of checks made + by dpkg-gensymbols. This offers the possibility to unofficial + ports to ignore errors due to symbols files that do not correspond. + 2007-11-28 Raphael Hertzog * scripts/dpkg-shlibdeps.pl: Harmonize a failure message. diff --git a/debian/changelog b/debian/changelog index 124bd750..b7036b79 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ dpkg (1.14.12) UNRELEASED; urgency=low a warning instead. * Expand the dpkg-shlibdeps manual page with explanations concerning failures. + * The environment variable DPKG_GENSYMBOLS_CHECK_LEVEL can be used to force + dpkg-gensymbols to use a precise level of checks. Closes: #452022 -- Guillem Jover Sat, 24 Nov 2007 07:38:13 +0200 diff --git a/man/dpkg-gensymbols.1 b/man/dpkg-gensymbols.1 index ddae5899..cc33389a 100644 --- a/man/dpkg-gensymbols.1 +++ b/man/dpkg-gensymbols.1 @@ -139,6 +139,9 @@ Level 0 disables all checks. Level 1 fails if some symbols have disappeared. Level 2 fails if some new symbols have been introduced. Level 3 fails if some libraries have disappeared. Level 4 fails if some libraries have been introduced. + +This value can be overriden by the environment variable +DPKG_GENSYMBOLS_CHECK_LEVEL. .TP .BI \-d Enable debug mode. Numerous messages are displayed to explain what diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl index 787eabe3..77d11d29 100755 --- a/scripts/dpkg-gensymbols.pl +++ b/scripts/dpkg-gensymbols.pl @@ -109,6 +109,10 @@ while (@ARGV) { } } +if (exists $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL}) { + $compare = $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL}; +} + if (not defined($sourceversion)) { parsechangelog($changelogfile); $sourceversion = $fi{"L Version"}; -- 2.39.5