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

zopen-query fails when there are too many tools installed #405

Closed
IgorTodorovskiIBM opened this issue Sep 14, 2023 · 4 comments
Closed

zopen-query fails when there are too many tools installed #405

IgorTodorovskiIBM opened this issue Sep 14, 2023 · 4 comments
Assignees

Comments

@IgorTodorovskiIBM
Copy link
Collaborator

zopen upgrade which calls zopen query fails when there are too many tools installed:

echo: printInstalledEntries 15: /home/itodoro/zopen-official/usr/bin/lib/zopen-query 365: FSUM9209 cannot execute: reason code = c413005b: EDC5145I The paramete\ list is too long, or the message to receive was too large for the buffer.

The issue is that echo has a limit to the # of args:

[\u@\h \w]$ installedPackages=$(find . -type l)
[\u@\h \w]$ echo $installedPackages
echo: FSUM9209 cannot execute: reason code = c413005b: EDC5145I The parameter list is too long, or the message to receive was too large for the buffer.
[\u@\h \w]$
@MikeFultonDev
Copy link
Collaborator

try our echo instead of /bin/echo? or better yet printf 😁

@DevonianTeuchter DevonianTeuchter self-assigned this Sep 15, 2023
@DevonianTeuchter
Copy link
Collaborator

The code grabs all symlinks within the packageinstall directory structure - which works fine unless a package ships with symlinks already [such as the ncurses man pages which ships many!!]. Fix is to ensure that the search doesn't return symlinks below the package/package tree [since there is no -depth param on standard zosfind].

@IgorTodorovskiIBM
Copy link
Collaborator Author

try our echo instead of /bin/echo? or better yet printf 😁

printf works!

The code grabs all symlinks within the packageinstall directory structure - which works fine unless a package ships with symlinks already [such as the ncurses man pages which ships many!!]. Fix is to ensure that the search doesn't return symlinks below the package/package tree [since there is no -depth param on standard zosfind].

I would suggest bundling findutils but there's an issue where it doesn't close file descriptors: zopencommunity/findutilsport#16 which I'd prefer if we fix first.

@MikeFultonDev
Copy link
Collaborator

@IgorTodorovskiIBM sounds like this is now fixed correct?

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

When branches are created from issues, their pull requests are automatically linked.

3 participants