Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 673064

Summary: media-libs/libtheora-1.1.1-r2 with zsh - src_install(): zsh:10: parse error near `done'
Product: Gentoo Linux Reporter: Lorenzo Iannuzzi <lorenzoiannuzzi>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED INVALID    
Severity: normal CC: kfm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: build.log of the failed install
emerge --info of the failed install

Description Lorenzo Iannuzzi 2018-12-13 09:33:41 UTC
When zsh is set as the main shell, libtheora cannot install and will fail.

Build Log: https://paste.pound-python.org/show/X2kcDhHuXK97a8cI1A7w/
emerge --info: https://paste.pound-python.org/show/5amHLPvIX4ETCbW0psdd/
emerge -pqv: USE="-doc -encode -examples -static-libs" ABI_X86="(64) -32 (-x32)"
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-12-13 09:36:34 UTC
Please attach the log files to this bug.
Comment 2 Lorenzo Iannuzzi 2018-12-13 09:38:49 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #1)
> Please attach the log files to this bug.
Which files are you referring too? I have the build.log posted?
Comment 3 Andreas Sturmlechner gentoo-dev 2018-12-13 09:46:08 UTC
Attach them, do not use pastebin.
Comment 4 Lorenzo Iannuzzi 2018-12-13 09:48:51 UTC
Created attachment 557704 [details]
build.log of the failed install
Comment 5 Lorenzo Iannuzzi 2018-12-13 09:49:24 UTC
Created attachment 557706 [details]
emerge --info of the failed install
Comment 6 kfm 2018-12-13 11:10:52 UTC
(In reply to Lorenzo Iannuzzi from comment #0)
> When zsh is set as the main shell, libtheora cannot install and will fail.

If you mean that you have symlinked /bin/sh to zsh then this isn't a bug. At least, not one that ought to be resolved by Gentoo. The reason is that zsh doesn't properly emulate POSIX sh and cannot be supported in this capacity. For more information, see bug 524572. Of course, you may safely set it as your login shell but /bin/sh must be something that credibly supports all of the rules of the Shell Command Language [1] such as bash - which has good sh emulation - dash, posh and various others.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/idx/shell.html
Comment 7 kfm 2021-01-07 16:28:44 UTC
Closing as INVALID because zsh is not a supported sh(1) provider, as explained in the previous comment. Please use an implementation that is expected to be POSIX compatible. If in doubt, I would suggest selecting one of the three that is currently presented by the eselect sh module (bash, dash or mksh). If you experience a build failure with any of these then feel free to open another bug.