vn971 / rua

Build tool for Arch Linux providing control, review and jailed build options
GNU General Public License v3.0
424 stars 42 forks source link

Cannot install package from builddir #165

Open samyak-jain opened 3 years ago

samyak-jain commented 3 years ago

When installing a package using rua builddir '/mnt/data/cache/rua/build/android-studio-canary' -f, the build is successfull, but the install fails. I get

loading packages...
error: 'android-studio-canary-2021.1.1.1-1-x86_64.pkg.tar.xz': could not find or read package

But as suggested during the build, if I install using pacman -U -- '/mnt/data/cache/rua/build/android-studio-canary/android-studio-canary-2021.1.1.1-1-x86_64.pkg.tar.xz', everything works.

I've made sure XDG_CACHE_HOME=/mnt/data/cache

Any idea why? Are there any debug logs I can print to better understand the problem?

raphCode commented 3 years ago

/var/log/pacman.log shows the issue:

[2021-07-25T18:14:38+0200] [PACMAN] Running 'pacman -U /home/raph/.local/share/rua/checked_tars/lib32-libass/lib32-libass-0.14.0-3-x86_64.pkg.tar.zst'                                                                        │ 
[2021-07-25T18:18:34+0200] [PACMAN] Running 'pacman -U -- lib32-libass-0.14.0-3-x86_64.pkg.tar.zst'

The first entry is from rua install <pkg>, the second from rua builddir <dir>. It seems that rua does not provide the full/absolute path to pacman (alternatively, the working directory could be set to the directory where the package file residues). Interestingly, it reports the absolute path when suggesting to run pacman manually.

samyak-jain commented 3 years ago

Thanks for working on the issue. Might want to ping a maintainer. Would be nice to have this merged.

vn971 commented 3 years ago

Hey sorry, I was a bit drowned with work and personal stuff lately, and currently on a vacation. I'll try to respond to this and other PRs within 1-3 weeks (1 if it's during the vacation, e.g. bad weather, 3 otherwise).

On August 22, 2021 3:39:27 PM UTC, Samyak Jain @.***> wrote:

Thanks for working on the issue. Might want to ping a maintainer. Would be nice to have this merged.

-- Sent from my mobile device. Please excuse my brevity.

raphCode commented 2 years ago

Hi @vn971, did you have any time looking into the PR already?

Please also tell if we should remind you more or less often. Some prefer / need more reminders, others feel stressed if they are too frequent.