You are not logged in.

#1 2020-10-25 00:50:25

MountainX
Member
Registered: 2016-02-08
Posts: 371

perl WARNING: files are missing in your kit. Please inform author

I tried building this package in a chroot:
hsxkpasswd 3.6-2

The package builds without errors, but I got these warnings:

==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v3.6.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting v3.6.tar.gz with bsdtar
==> Starting build()...
WARNING: the following files are missing in your kit:
        Makefile.PL
        META.json
        META.yml
        README
Please inform the author.

Checking prerequisites...
  recommends:
    *  Data::Entropy::Algorithms is not installed
    *  Email::Valid is not installed
    *  LWP::UserAgent is not installed
    *  Math::Random::Secure is not installed
    *  Mozilla::CA is not installed
    *  URI is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Run 'Build installdeps' to install missing prerequisites.

Created MYMETA.yml and MYMETA.json
...

I'm not familiar with perl. In particular, I don't understand "WARNING: the following files are missing in your kit. Please inform the author."

Is any of that important? Does the PKGBUILD need modifications? If fixing this is only a matter of adding depends and/or makedpends to the PKGBUILD, I will volunteer to work on that and do the chroot testing if someone gives me a few pointers on how to proceed.

Also, for a password tool, it seems like adding at least perl-math-random-secure to the PKGBUILD depends() would be a good idea. Or is the above warning sufficient?

If none of those warnings are important to general AUR users, I will leave the PKGBUILD alone and simply install the recommended perl modules on my machine.

Here is the PKGBUILD:

# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>

pkgname=hsxkpasswd
pkgver=3.6
pkgrel=2
pkgdesc="Generate secure, memorable passwords inspired by XKCD and Password Haystacks"
arch=('any')
url="https://www.bartbusschots.ie/s/publications/software/xkpasswd/"
license=('BSD')
depends=('perl' 'perl-clone' 'perl-datetime' 'perl-file-homedir'
         'perl-file-share' 'perl-json' 'perl-list-moreutils' 'perl-math-round'
         'perl-readonly' 'perl-text-unidecode' 'perl-type-tiny')
makedepends=('perl-module-build')
source=("https://github.com/bbusschots/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('3dd7b6332bbd1bbb6435c669d83592c94d7c5537a3fb9b6efaf9a3c09f3cd86d')

build() {
  cd "$pkgname-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
  perl ./Build.PL
  ./Build
}

check() {
  cd "$pkgname-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1
  ./Build test
}

package() {
  cd "$pkgname-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
  ./Build install --installdirs=vendor --destdir="$pkgdir"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

Offline

Board footer

Powered by FluxBB