User Tools

Site Tools


building_debian_packages_of_perl_modules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
building_debian_packages_of_perl_modules [2024/09/04 08:49] – created abeverleybuilding_debian_packages_of_perl_modules [2024/09/12 15:18] (current) abeverley
Line 2: Line 2:
  
 Some example commands to build Debian packages of Perl modules, using Dh-make-perl. Some example commands to build Debian packages of Perl modules, using Dh-make-perl.
 +
 +==== Installing dh-make-perl ====
 +
 +  apt-get install dh-make-perl build-essential apt-file
 +  apt-file update # Needed to build packages with correct dependencies listed
 +  
 +==== Standard package build from CPAN ====
 +
 +  PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' cpan2deb HTML::Parse
 +
 +==== Building a package and all dependencies ====
 +
 +The following command is the "super" option to build and install everything needed for a particular package. It will install any dependencies needed if they already exist as packages, if not it will build them as well.
 +
 +  PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' cpan2deb --core-ok  --install  --install-deps --install-build-deps --recursive  CSS::Object
 +
 +==== Specifying a revision ====
 +
 +The revision of a package can be specified as follows. This is needed if rebuilding the same version of a module, to ensure uniqueness in package repositories.
 +
 +  PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' cpan2deb  Markdown::Parser --version=0.4.1 --revision=1
 +
 +Earlier versions of dh-make-perl appear to have a bug which means that the ''--revision'' flag does not work, in which case the following can be used:
 +
 +  PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' cpan2deb  Markdown::Parser --version=0.4.1-1
 +
 +==== Building a more up to date module that is in core ====
 +
 +  PERL_MM_OPT='NO_PACKLIST=1 NO_PERLLOCAL=1' cpan2deb  --core-ok Digest::MD5
  
 ==== Downloading and building a package manually ==== ==== Downloading and building a package manually ====
building_debian_packages_of_perl_modules.1725439790.txt.gz · Last modified: 2024/09/04 08:49 by abeverley