leophys / AUR-builder

A simple docker image to build packages from the AUR
Other
0 stars 0 forks source link

Error if one AUR package depends on another AUR package #2

Open recolic opened 3 years ago

recolic commented 3 years ago

If the AUR package to be built depends on another AUR package, it would report an failure.

➜  AUR-builder git:(master) ✗ sudo aurbuilder pacaur
++ echo pacaur
++ awk -F: '{print $1}'
+ PKG=pacaur
++ echo pacaur
++ awk -F: '{print $2}'
+ INSTALL=
+ echo ====================================
====================================
+ echo 'Building: pacaur'
Building: pacaur
+ echo ====================================
====================================
+ test -v pacaur
+ cd store
+ test -d pacaur
+ git clone https://aur.archlinux.org/pacaur.git pacaur
Cloning into 'pacaur'...
remote: Enumerating objects: 190, done.
remote: Counting objects: 100% (190/190), done.
remote: Compressing objects: 100% (144/144), done.
remote: Total 190 (delta 62), reused 173 (delta 46), pack-reused 0
Receiving objects: 100% (190/190), 34.37 KiB | 138.00 KiB/s, done.
Resolving deltas: 100% (62/62), done.
+ cd pacaur
+ install_wrapper
+ err=/tmp/makepkg-10943
+ makepkg -s --noconfirm
+ tee -a /tmp/makepkg-10943
==> Making package: pacaur 4.8.6-1 (Wed 23 Jun 2021 08:45:14 AM UTC)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: auracle-git
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> auracle-git
  -> expac
  -> jq
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
++ cat /tmp/makepkg-10943
++ grep 'error: failed'
++ awk '-F'\''' '{print $2}'
+ failed_pkgs=
+ [[ '' != '' ]]
+ test

It seems that we need some code to build the dependencies recursively.

leophys commented 3 years ago

Hi! First of all, thanks for the PR :)

What you say is true. This is the main issue with the approach I took. This would need a major overhaul of this tool that, as you might have notices, lies abandoned since some time.

I was working on something that would allow me to build the full dependency tree, but I have not yet managed to find time to continue.

recolic commented 3 years ago

Hi,

I recently found another good tool to build AUR package. It could overcome this issue. If you're also looking for a just-working solution, it may help: pikaur -Sw --noconfirm PACKAGE_NAME...

Thanks for your work:)

leophys commented 3 years ago

That's exactly my favorite aur helper. I use it also to automate the build of some cumbersome aur package (if you have access to a drone server or have it yours somewhere): https://git.abbiamoundominio.org/blallo/pikaur_builder