Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package dependencies #5

Open
altmas5 opened this issue Aug 19, 2020 · 0 comments
Open

Add package dependencies #5

altmas5 opened this issue Aug 19, 2020 · 0 comments

Comments

@altmas5
Copy link

altmas5 commented Aug 19, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant