https://labs.parabola.nu/https://labs.parabola.nu/favicon.ico?15367742552013-08-30T12:20:47ZParabola Issue Trackerlibretools - Bug #389: [chcleanup] fails if a dependency of the PKGBUILD has unsatisfied dependencieshttps://labs.parabola.nu/issues/389?journal_id=49772013-08-30T12:20:47Zlukeshulukeshu@parabola.nu
<ul></ul><p>Here is a pruned/cleaned up copy of the trace, showing the interesting bits, and with comments.</p>
<pre>
+ printf '==> Cleaning chroot...\n'
==> Cleaning chroot...
+ pacman -Sy
:: Synchronizing package databases...
repo is up to date
libre is up to date
core is up to date
extra is up to date
community is up to date
+ pacman -b /tmp/clean.BhpuJ -Sp --print-format %n base-devel "${CHROOTEXTRAPKG[@]}"
error: failed to prepare transaction (unexpected error)
#### The first run terminated here, because it was run with `bash -eE`.
#### The trace should have used `bash -xeE`
+ packages=($(comm -23 <(pacman -Qq | sort -u)
#### At this point "${packages[@]}" contains 'pacman'
+ pacman --noconfirm -Rn "${packages[@]}" || RET=$?
checking dependencies...
warning: pacman is designated as a HoldPkg.
warning: glibc is designated as a HoldPkg.
:: HoldPkg was found in target list. Do you want to continue? [y/N]
+ exit $RET
</pre>
<p>I think the problem is more that there is no error handling around the call to 'pacman -Sp' (getting the recursive list of dependencies). I'll add a message about not being able to come up with a complete list.</p>
<p>I'll add some messages so you know what's going on, and better error handling.</p> libretools - Bug #389: [chcleanup] fails if a dependency of the PKGBUILD has unsatisfied dependencieshttps://labs.parabola.nu/issues/389?journal_id=50202013-09-14T17:59:30Zlukeshulukeshu@parabola.nu
<ul></ul><p>This was fixed in <a class="external" href="https://projects.parabolagnulinux.org/packages/libretools.git/commit/?id=2a971c6ad1e55f95f5486b265307160e57b47e5f">https://projects.parabolagnulinux.org/packages/libretools.git/commit/?id=2a971c6ad1e55f95f5486b265307160e57b47e5f</a></p>