Kwpolska / pkgbuilder

An AUR helper (and library) in Python 3.
http://pkgbuilder.rtfd.org/
BSD 3-Clause "New" or "Revised" License
71 stars 12 forks source link

Does not take checkdepends into account when building #71

Open micwoj92 opened 1 year ago

micwoj92 commented 1 year ago

I see somewhat related issue was already posted in https://github.com/Kwpolska/pkgbuilder/issues/49 Example with perl-moose:

pkgbuilder --debug perl-moose
[INFO   ] :pkgbuilder: *** PKGBUILDer v4.3.2
[DEBUG  ] :pkgbuilder: *** debug output on.
[INFO   ] :pkgbuilder: Arguments parsed.  {'pkgnames': ['perl-moose'], 'pac': False, 'fetch': False, 'userfetch': None, 'info': False, 'search': False, 'upgrade': False, 'finst': False, 'runtx': False, 'clean': False, 'noclean': False, 'colors': False, 'nocolors': False, 'debug': True, 'nodebug': False, 'edit_pkgbuild': False, 'noedit_pkgbuild': False, 'depcheck': False, 'nodepcheck': False, 'vcsupgrade': False, 'novcsupgrade': False, 'validation': False, 'novalidation': False, 'pkginst': False, 'nopkginst': False, 'pgpcheck': False, 'nopgpcheck': False, 'confirm': False, 'noconfirm': False, 'shallowclone': False, 'deepclone': False, 'ignorelist': None, 'pacupd': False, 'nopac': False, 'nofetch': False}
[INFO   ] :pkgbuilder: Starting build...
[INFO   ] :pkgbuilder: Building perl-moose
[DEBUG  ] :urllib3.connectionpool: Starting new HTTPS connection (1): aur.archlinux.org:443
[DEBUG  ] :urllib3.connectionpool: https://aur.archlinux.org:443 "GET /rpc/?v=5&type=multiinfo&arg%5B%5D=perl-moose HTTP/1.1" 200 None
pb> Building perl-moose...
[INFO   ] :pkgbuilder: (fancy_msg           ) Building perl-moose...
  -> aur/perl-moose 2.2203-1 (81 votes)
  ->     A postmodern object system for Perl 5
pb> Cloning the git repository...
[INFO   ] :pkgbuilder: (fancy_msg           ) Cloning the git repository...
Cloning into 'perl-moose'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 4 (delta 0), pack-reused 0
Receiving objects: 100% (4/4), done.
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
pb> Checking dependencies...
[INFO   ] :pkgbuilder: (fancy_msg           ) Checking dependencies...
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
[DEBUG  ] :parse     : format '{:^}={:value}' -> ' *(.+?) +=(.*)'
pb-> perl-cpan-meta-check: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-cpan-meta-check: found in system
pb-> perl-class-load: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-class-load: found in system
pb-> perl-class-load-xs: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-class-load-xs: found in system
pb-> perl-data-optlist: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-data-optlist: found in system
pb-> perl-devel-globaldestruction: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-devel-globaldestruction: found in system
pb-> perl-devel-overloadinfo: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-devel-overloadinfo: found in system
pb-> perl-devel-stacktrace: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-devel-stacktrace: found in system
pb-> perl-dist-checkconflicts: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-dist-checkconflicts: found in system
pb-> perl-eval-closure: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-eval-closure: found in system
pb-> perl-mro-compat: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-mro-compat: found in system
pb-> perl-module-runtime: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-module-runtime: found in system
pb-> perl-module-runtime-conflicts: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-module-runtime-conflicts: found in system
pb-> perl-package-deprecationmanager: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-package-deprecationmanager: found in system
pb-> perl-package-stash: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-package-stash: found in system
pb-> perl-package-stash-xs: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-package-stash-xs: found in system
pb-> perl-params-util: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-params-util: found in system
pb-> perl-sub-exporter: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-sub-exporter: found in system
pb-> perl-try-tiny: found in system
[INFO   ] :pkgbuilder: (fancy_msg2          ) perl-try-tiny: found in system
[INFO   ] :pkgbuilder: Running makepkg: ['makepkg', '-sf']
==> Making package: perl-moose 2.2203-1 (Mon 06 Feb 2023 10:59:24 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
error: target not found: perl-test-cleannamespaces>=0.13
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> perl-test-cleannamespaces>=0.13
  -> perl-test-needs>=0
==> ERROR: Could not resolve all dependencies.
[INFO   ] :pkgbuilder: makepkg status: 8
[INFO   ] :pkgbuilder: Found package files: ([], [])
[ERROR  ] :pkgbuilder: (MakepkgError        ) 8
pb> ERROR: makepkg (or someone else) failed and returned 8.
[ERROR  ] :pkgbuilder: (fancy_error         ) makepkg (or someone else) failed and returned 8.
[INFO   ] :pkgbuilder: Quitting peacefully.
Kwpolska commented 1 year ago

It seems like the missing dependencies are checkdepends, and PKGBUILDer does not take these into account when building. This should be a simple fix — if you or anyone else wants to tackle it, go ahead; otherwise, I’ll try to take care of it sometime.

micwoj92 commented 1 year ago

Oh, that's true. I have changed the issue title