Modules whose API should be stable have a version 1.00. The modules with version 0.01 are expected to have further API changes in the (near) future or are deemed to be useful mostly for dpkg-dev's internal usage.
@@ -31,6 +31,8 @@ dpkg (1.15.6) UNRELEASED; urgency=low
* Don't return duplicate bug numbers in Launchpad-Bugs-Fixed:.
Thanks to Brian Murray <brian@ubuntu.com> for the report
and the patch. Closes: #569618
+ * Add $VERSION numbers to all perl modules. Closes: #465256
+ 1.00 and higher means that the API should be stable
[ Guillem Jover ]
* Handle argument parsing in dpkg-checkbuilddeps and dpkg-scanpackages
@@ -16,6 +16,8 @@ package Dpkg;
use strict;
use warnings;
+our $VERSION = "1.00";
+
# This module is the only one provided by dpkg and not dpkg-dev
#
# Don't add things here if you don't need them in dpkg itself.
@@ -16,6 +16,8 @@ package Dpkg::Arch;
use base qw(Exporter);
our @EXPORT_OK = qw(get_raw_build_arch get_raw_host_arch
get_build_arch get_host_arch get_gcc_host_gnu_type
@@ -16,6 +16,8 @@ package Dpkg::BuildOptions;
+our $VERSION = "0.01";
use Dpkg::Gettext;
use Dpkg::ErrorHandling;
@@ -34,6 +34,8 @@ package Dpkg::Changelog;
use Dpkg;
use Dpkg::ErrorHandling qw(:DEFAULT report);
@@ -41,6 +41,8 @@ package Dpkg::Changelog::Debian;
use Dpkg::Changelog qw(:util);
use base qw(Dpkg::Changelog);
@@ -18,6 +18,8 @@ package Dpkg::Changelog::Entry;
use Dpkg::Control::Changelog;
@@ -18,6 +18,8 @@ package Dpkg::Changelog::Entry::Debian;
use Exporter;
use Dpkg::Changelog::Entry;
use base qw(Exporter Dpkg::Changelog::Entry);
@@ -32,6 +32,8 @@ package Dpkg::Changelog::Parse;
use Dpkg; # for $dpkglibdir
@@ -16,6 +16,8 @@ package Dpkg::Checksums;
@@ -17,6 +17,9 @@ package Dpkg::Compression;
@@ -18,6 +18,8 @@ package Dpkg::Compression::FileHandle;
use Dpkg::Compression;
use Dpkg::Compression::Process;
@@ -18,6 +18,8 @@ package Dpkg::Compression::Process;
@@ -18,6 +18,8 @@ package Dpkg::Conf;
@@ -18,6 +18,8 @@ package Dpkg::Control;
use Dpkg::Control::Types;
@@ -18,6 +18,8 @@ package Dpkg::Control::Changelog;
use Dpkg::Control;
use base 'Dpkg::Control';
@@ -18,6 +18,8 @@ package Dpkg::Control::Fields;
@@ -18,6 +18,8 @@ package Dpkg::Control::Hash;
@@ -18,6 +18,8 @@ package Dpkg::Control::Info;
@@ -46,6 +46,8 @@ All the deps_* functions are exported by default.
use Dpkg::Version;
use Dpkg::Arch qw(get_host_arch);
@@ -13,6 +13,11 @@
package Dpkg::ErrorHandling;
+use strict;
+use warnings;
@@ -18,6 +18,8 @@ package Dpkg::Exit;
our @handlers = ();
sub exit_handler {
&$_() foreach (reverse @handlers);
@@ -26,6 +26,8 @@ package Dpkg::Gettext;
BEGIN {
eval 'use Locale::gettext';
if ($@) {
@@ -19,6 +19,8 @@ package Dpkg::IPC;
@@ -18,6 +18,8 @@ package Dpkg::Index;
@@ -18,6 +18,8 @@ package Dpkg::Interface::Storable;
use Dpkg::Compression::FileHandle;
@@ -18,6 +18,8 @@ package Dpkg::Path;
use File::Spec;
use Cwd qw(realpath);
@@ -18,6 +18,8 @@ package Dpkg::Shlibs;
our @EXPORT_OK = qw(@librarypaths find_library);
@@ -17,6 +17,9 @@ package Dpkg::Shlibs::Cppfilt;
use base 'Exporter';
@@ -16,6 +16,8 @@
package Dpkg::Shlibs::Objdump;
@@ -18,6 +18,9 @@ package Dpkg::Shlibs::Symbol;
use Dpkg::Deps;
@@ -18,6 +18,9 @@ package Dpkg::Shlibs::SymbolFile;
@@ -18,6 +18,8 @@ package Dpkg::Source::Archive;
use Dpkg::Source::Functions qw(erasedir fixperms);
use Dpkg::IPC;
@@ -16,6 +16,8 @@ package Dpkg::Source::Functions;
our @EXPORT_OK = qw(erasedir fixperms is_binary);
@@ -18,6 +18,8 @@ package Dpkg::Source::Package;
@@ -18,6 +18,8 @@ package Dpkg::Source::Package::V1;
use base 'Dpkg::Source::Package';
@@ -18,6 +18,8 @@ package Dpkg::Source::Package::V2;
@@ -24,6 +24,8 @@ package Dpkg::Source::Package::V3::bzr;
use Cwd;
@@ -18,6 +18,8 @@ package Dpkg::Source::Package::V3::custom;
@@ -22,6 +22,8 @@ package Dpkg::Source::Package::V3::git;
@@ -18,6 +18,8 @@ package Dpkg::Source::Package::V3::native;
@@ -18,6 +18,8 @@ package Dpkg::Source::Package::V3::quilt;
# Based on wig&pen implementation
use base 'Dpkg::Source::Package::V2';
@@ -18,6 +18,8 @@ package Dpkg::Source::Patch;
@@ -18,6 +18,8 @@ package Dpkg::Substvars;
use Dpkg qw($version);
@@ -18,6 +18,8 @@ package Dpkg::Vars;
@@ -18,6 +18,8 @@ package Dpkg::Vendor;
use Dpkg::Control::Hash;
@@ -18,6 +18,8 @@ package Dpkg::Vendor::Debian;
use base qw(Dpkg::Vendor::Default);
use Dpkg::Vendor::Ubuntu;
@@ -18,6 +18,8 @@ package Dpkg::Vendor::Default;
# If you use this file as template to create a new vendor object, please
# uncomment the following lines
#use base qw(Dpkg::Vendor::Default);
@@ -21,6 +21,8 @@ package Dpkg::Vendor::Ubuntu;
@@ -21,6 +21,8 @@ package Dpkg::Version;