Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pacsift: no output if --sysroot=/ is specified explicitely #26

Closed
AladW opened this issue Mar 7, 2019 · 3 comments
Closed

pacsift: no output if --sysroot=/ is specified explicitely #26

AladW opened this issue Mar 7, 2019 · 3 comments

Comments

@AladW
Copy link

AladW commented Mar 7, 2019

Example:

$ xargs -a <(printf -- '--satisfies=%s\n' aurutils-git) pacsift --sysroot=/ <&-
# empty output
$ xargs -a <(printf -- '--satisfies=%s\n' aurutils-git) pacsift <&-
local/aurutils-git
alad-base/aurutils-git

Note that I'm using xargs -a here, because I want to be able to pass many --satisfies=foo to pacsift without exceeding ARG_MAX. I know of no other way to use --satisfies with values taken from stdin.

@AladW AladW changed the title no output if --sysroot=/ is specified explicitely pacsift: no output if --sysroot=/ is specified explicitely Mar 7, 2019
@andrewgregory
Copy link
Owner

It's specifically when using --sysroot and <&-. <&- closes the file descriptor, freeing up fd 0, parsing the config then opens the sysroot directory and gets fd 0, then when pacsift goes to check stdin for packages it sees the directory fd which is not a tty so it tries to read a list of packages, but of course there are none.

AladW added a commit to aurutils/aurutils that referenced this issue Mar 14, 2019
Recent versions of pacinfo have an easy to parse, line-by-line format,
removing the need for expac. Newline seperation should suffice, so
remove --null.

This could be used to implement --sysroot, which is however blocked by a
pacsift bug:

andrewgregory/pacutils#26
AladW added a commit to aurutils/aurutils that referenced this issue Mar 14, 2019
Recent versions of pacinfo have an easy to parse, line-by-line format,
removing the need for expac. Newline seperation should suffice, so
remove --null.

This could be used to implement --sysroot, which is however blocked by a
pacsift bug:

andrewgregory/pacutils#26
AladW added a commit to aurutils/aurutils that referenced this issue Mar 17, 2019
Recent versions of pacinfo have an easy to parse, line-by-line format,
removing the need for expac. Newline seperation should suffice, so
remove --null.

This could be used to implement --sysroot, which is however blocked by a
pacsift bug:

andrewgregory/pacutils#26
AladW added a commit to aurutils/aurutils that referenced this issue Mar 17, 2019
Recent versions of pacinfo have an easy to parse, line-by-line format,
removing the need for expac. Newline seperation should suffice, so
remove --null.

This could be used to implement --sysroot, which is however blocked by a
pacsift bug:

andrewgregory/pacutils#26
@andrewgregory
Copy link
Owner

This should be fixed on the yolo branch. Can you double check that it works for you?

@AladW
Copy link
Author

AladW commented Sep 26, 2019

I can confirm it works with latest master. Thanks!

@AladW AladW closed this as completed Sep 26, 2019
AladW added a commit to aurutils/aurutils that referenced this issue Sep 26, 2019
andrewgregory/pacutils#26 was fixed so this
option can now be safely exposed.
AladW added a commit to aurutils/aurutils that referenced this issue Sep 29, 2019
andrewgregory/pacutils#26 was fixed so this
option can now be safely exposed.
AladW added a commit to aurutils/aurutils that referenced this issue Sep 29, 2019
andrewgregory/pacutils#26 was fixed so this
option can now be safely exposed.
rafasc pushed a commit to rafasc/aurutils that referenced this issue Oct 9, 2019
andrewgregory/pacutils#26 was fixed so this
option can now be safely exposed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants