Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.2.1
Due in Version 6.0.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Eli Schwartz (eschwartz) - Sunday, 15 November 2020, 12:58 GMT
  • Field changed: Attached to Project (Arch Linux → Pacman)
Moving to the pacman project bugtracker...
Comment by Jose L. Pereira (GaKu999) - Saturday, 28 November 2020, 03:21 GMT
Is this actually fixable, or it's expected behavior?

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. :)

Loading...