Summary: | app-admin/sudo-1.9.5_p2-r1 /bin/dash: 0: Illegal option -g | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alessandro Barbieri <lssndrbarbieri> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | ionen, orbea, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 526268, 765709 | ||
Attachments: | sudo-1.9.5_p2-r1:20210313-131025.log |
Description
Alessandro Barbieri
2021-03-13 21:47:43 UTC
Created attachment 691239 [details]
sudo-1.9.5_p2-r1:20210313-131025.log
buildlog
I'm using SHELL=/bin/dash and CONFIG_SHELL=/bin/dash This seems to be due to a combination of slibtool and CONFIG_SHELL=/bin/dash, individually both work. Furthermore, /bin/sh == dash + slibtool works fine too, seems to be because you're setting CONFIG_SHELL. > Furthermore, /bin/sh == dash + slibtool works fine too, seems to be because you're setting CONFIG_SHELL.
Does it actually use /bin/sh without CONFIG_SHELL?
This looks suspicious:
slibtool --tag=disable-static
Fails with CONFIG_SHELL=/bin/mksh too, it does not fail with CONFIG_SHELL=/bin/sh when mksh == /bin/sh. I think this is a slibtool bug. https://dev.midipix.org/cross/slibtool/blob/f23d994965845536db0e6b21fc9c65091184b3f5/f/src/logic/slbt_exec_install.c#_593 In slibtool both /bin/sh and /bin/bash are hardcoded so that the options, '-c -o 0 -g 0' are passed to install-sh while when using /bin/dash or /bin/mksh they are passed to passed to the shell instead. I think slibtool should probably not assume /bin/sh or /bin/bash. Its also arguably that sudo should not be using install-sh to install .la files and that users should probably set their /bin/sh symlink appropriately instead of setting CONFIG_SHELL=/bin/dash, if necessary set CONFIG_SHELL=/bin/sh. Upstream slibtool issue: https://dev.midipix.org/cross/slibtool/issue/29 Fixed in slibtool-9999. https://dev.midipix.org/cross/slibtool/c/430840c Fixed in slibtool-0.5.32. |