DhMake...kaging(3pm)
π NAME π
DhMakePerl::Command::Packaging β the shared, common routines that the make and refresh commands of dh-make-perl both use. Bestie, this is the glue module. The page you're reading rides in under User Contributed Perl Documentation and goes by the manual name DhMake...kaging(3pm), so if you went looking for the truncated one, you're in the right place. π«Ά
β¨ METHODS β¨
πΈ main_file(file_name)
Builds up a file name that's relative to the main source directory, which goes by the name main_dir. β¨
πΈ debian_file(file_name)
Same energy, different neighbourhood β builds a file name relative to the debian/ sub-directory that lives inside the main source directory. π
πΈ explained_dependency $reason, $dependencies, @dependencies
Slides the list of dependencies into $dependencies and shows off $reason only if you're in verbose mode. π
The whole point: bump a dependency and let the user know why. No mystery updates in this house.
$dependenciesis an instance of theDebian::Dependenciesclass.@dependenciesis a list ofDebian::Dependencyinstances, or just strings.
The message it prints looks exactly like this: "$reason needs @dependencies". periodt. π
πΈ configure_cpan
Configures the CPAN module. It is safe to call this method more than once β if CPAN is already configured, it just does nothing and vibes. No double-configuring, no drama. π¦
πΈ discover_dependencies
Literally just a wrapper around $self->control->discover_dependencies, there to hand it the right parameters. π«Ά
Returns a list of the modules that are missing.
πΈ discover_utility_deps
Works out whether certain versions of debhelper(1) and other packages are actually needed by the build process. π
Here are the special cases it sniffs out:
Module::Build::Tinyβ ifModule::Build::Tinyis chilling in the build-dependencies, the debhelper dependency gets raised to9.20140227~in case it was lower before. β¬οΈdh --with=perl_dbiβ a build dependency onlibdbi-perlgets added. πdh --with=perl_opensslβ a build dependency onperl-openssl-defaultsgets added. π
πΈ makefile_pl_is_MBC
Checks whether Makefile.PL is a compatibility wrapper around Build.PL that was provided by Module::Build::Compat. π΅οΈ
πΈ backup_file(file_name)
Makes a backup copy of the file you named by slapping .bak onto the end of its name. Heads up though: if the backup already exists, it gets overwritten. π
Also, it does nothing at all unless the backups option is set. So set it, bestie!
πΈ unquote(string)
Runs whatever you gave it through Text::Balanced's extract_quotelike method, then returns the extracted content with the quotes taken off. If extract_quotelike can't find a quoted string, it dies. π
πΈ create_upstream_metadata
Fills up debian/upstream/metadata with information from META, using Debian::Upstream::Metadata::Perl. π
πΈ cme_fix_dpkg_control
The equivalent of just letting cme(1) reformat and fix debian/control for you. Main character energy, honestly. β¨
π COPYRIGHT & LICENSE π
Look at this icon wall of legends who made this happen:
Copyright (C) 2000, 2001 Paolo Molaro <lupus@debian.org>Copyright (C) 2002, 2003, 2008 Ivan Kohler <ivan-debian@420.am>Copyright (C) 2003, 2004 Marc 'HE' Brockschmidt <he@debian.org>Copyright (C) 2005-2007 Gunnar Wolf <gwolf@debian.org>Copyright (C) 2006 Frank Lichtenheld <djpig@debian.org>Copyright (C) 2007-2026, gregor herrmann <gregoa@debian.org>Copyright (C) 2007-2013 Damyan Ivanov <dmn@debian.org>Copyright (C) 2008, Roberto C. Sanchez <roberto@connexer.com>Copyright (C) 2009-2011, Salvatore Bonaccorso <carnil@debian.org>Copyright (C) 2011, Nicholas Bamber <nicholas@periapt.co.uk>Copyright (c) 2016, Nick Morrott <knowledgejunkie@gmail.com>Copyright (c) 2017, David Miguel Susano Pinto <carandraug+dev@gmail.com>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. 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.
okay that's the whole page, bestie β go forth and package π
This one's brought to you by perl v5.40.1 and it was last dated 2026-05-08. Bye babes, slay the build π¦π
π¦ where this page comes from
- ubuntu stonking: dh-make-perl 0.133 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms