FS#68630 - pacman: --sysroot fails when using redirection
Attached to Project:
Pacman
Opened by Jose L. Pereira (GaKu999) - Sunday, 15 November 2020, 12:00 GMT
Last edited by Allan McRae (Allan) - Thursday, 20 May 2021, 12:45 GMT
Opened by Jose L. Pereira (GaKu999) - Sunday, 15 November 2020, 12:00 GMT
Last edited by Allan McRae (Allan) - Thursday, 20 May 2021, 12:45 GMT
|
Details
Description:
When pacman is used with --sysroot option, any form of redirection causes it to finish execution with error code 1. It only replicates with a different mountpoint, so the chroot may be related to the cause. Example: 'pacman -r /mnt -Qqn | pacman --sysroot /mnt -S -' When/where it was discovered: https://bbs.archlinux.org/viewtopic.php?pid=1937767#p1937767 Assumption: the same garbage is being passed to the [Y/n] prompt Additional info: * package version(s) Pacman v5.2.2 - libalpm v12.0.2 * config and/or log files etc. N/A * link to upstream bug report, if any N/A Steps to reproduce: Mount another Arch in /mnt echo filesystem | pacman --sysroot /mnt -S - |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 20 May 2021, 12:45 GMT
Reason for closing: Fixed
Additional comments about closing: git commit e9cc95f3721967b3cb9f766d400606a8ef4491d0
Thursday, 20 May 2021, 12:45 GMT
Reason for closing: Fixed
Additional comments about closing: git commit e9cc95f3721967b3cb9f766d400606a8ef4491d0
Definitely chroot is the cause. (And honestly idk how/why stdin behaves like that in this case)
I have been poking around at the source for a bit and reading on the subject, if I'm lucky and spot the bug I'll squash it and post a patch. :)