Skip to content

Add package dependencies #5

@altmas5

Description

@altmas5

Hi,

Maybe this goes more on the packaging side than on the source code side, or maybe some improvements can be done to check them on the module.
webmin-jailkit depends on:

  • Config::IniFiles perl module, packaged as libconfig-inifiles-perl under Ubuntu and as perl-Config-IniFiles under OpenSUSE.
  • jailkit itself.

If Config::IniFiles is missing you'll get:

500 - Error - Perl execution failed
Can't locate Config/IniFiles.pm in @INC (you may need to install the Config::IniFiles module) (@INC contains: /usr/share/webmin /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base . ..) at ./jailkit-lib.pl line 30. BEGIN failed--compilation aborted at ./jailkit-lib.pl line 30. Compilation failed in require at /usr/share/webmin/jailkit/index.cgi line 8.

On Ubuntu, if a dependency check is run against webmin-jailkit it shows perl, webmin and base, but the fact that not all of the dependencies are specified causes this issues with the module.

apt-rdepends webmin-jailkit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
webmin-jailkit
  Depends: base
  Depends: perl
  Depends: webmin
  PreDepends: bash
  PreDepends: perl
base...
dpkg --info webmin-webmin-jailkit_0.7_all.deb
 new debian package, version 2.0.
 size 17960 bytes: control archive=1456 bytes.
     291 bytes,    12 lines      control              
     141 bytes,     6 lines      copyright            
    1896 bytes,    47 lines   *  postinst             #!/bin/sh
     742 bytes,    22 lines   *  preinst              #!/bin/sh
     926 bytes,    20 lines   *  prerm                #!/bin/sh
 Package: webmin-webmin-jailkit
 Version: 0.7
 Section: admin
 Priority: optional
 Architecture: all
 Essential: no
 Depends: base, perl, webmin
 Pre-Depends: bash, perl
 Installed-Size: 1
 Maintainer: [email protected]
 Provides: webmin-webmin-jailkit
 Description: Webmin module Jailkit Jail Manager

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions