./scripts/locale_install.sh[190]: -s: unknown option Invalid option: ? usage: ./scripts/locale_install.sh [-l] NLSPATH main_exec [DESTDIR] make: *** [Makefile:594: install_locales] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: sci-calculators/bc-gh-6.2.2::gentoo failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=sci-calculators/bc-gh-6.2.2::gentoo'`, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_hardened-j4-20230216-050018 ------------------------------------------------------------------- GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe" gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): /usr/lib/llvm/15 15.0.7 Python 3.10.10 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.67.1 * The following VMs are available for generation-2: *) Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17] Available Java Virtual Machines: [1] openjdk-jre-bin-17 system-vm php cli (if any): HEAD of ::gentoo commit 58c2500cc11674f48a10ace3934471fabe0ab172 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Feb 16 23:16:51 2023 +0000 2023-02-16 23:16:51 UTC emerge -qpvO sci-calculators/bc-gh [ebuild N ] sci-calculators/bc-gh-6.2.2 USE="readline -libedit"
Created attachment 852026 [details] emerge-info.txt
Created attachment 852028 [details] emerge-history.txt
Created attachment 852030 [details] environment
Created attachment 852032 [details] etc.portage.tar.bz2
Created attachment 852034 [details] sci-calculators:bc-gh-6.2.2:20230217-013522.log
Created attachment 852036 [details] temp.tar.bz2
After investigating, I have no idea what is happening here. The log shows that `-s` is not passed to the `locale-install.sh` script, but it's still erroring. I'll keep digging, but more information would be appreciated. If it would be possible to have access to an environment where it fails, I would like that too because I cannot replicate this on my amd64 machine.
For few weeks this link is valid to see more files: http://tinderbox.zwiebeltoralf.de:31560/17.1_hardened-j4-20230216-050018/ but a real access to the server I'd like to avoid.
Thank you very much. Unfortunately, I'm still just as confused after looking. Can you try one thing for me? Can you run the following manually? ``` $ ebuild bc-gh-6.2.2.ebuild compile $ MAKEOPTS="" ebuild bc-gh-6.2.2.ebuild install ``` This is to check if there's a problem running `make install` with any extra arguments, especially in parallel, which is something I personally don't do. It didn't reproduce the issue on my machine, but just in case...
compile runs fine, install gives: 17-1-hardened-j4-20230216-050018 /var/db/repos/gentoo/sci-calculators/bc-gh # MAKEOPTS="" ebuild bc-gh-6.2.2.ebuild install >>> Existing ${T}/environment for 'bc-gh-6.2.2' will be sourced. Run >>> 'clean' to start with a fresh environment. >>> Checking bc-6.2.2.tar.xz's mtime... >>> WORKDIR is up-to-date, keeping... >>> It appears that 'pretend' has already executed for 'bc-gh-6.2.2'; skipping. >>> Remove '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/.pretended' to force pretend. >>> It appears that 'setup' has already executed for 'bc-gh-6.2.2'; skipping. >>> Remove '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/.setuped' to force setup. >>> It appears that 'unpack' has already executed for 'bc-gh-6.2.2'; skipping. >>> Remove '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/.unpacked' to force unpack. >>> It appears that 'prepare' has already executed for 'bc-gh-6.2.2'; skipping. >>> Remove '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/.prepared' to force prepare. >>> It appears that 'configure' has already executed for 'bc-gh-6.2.2'; skipping. >>> Remove '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/.configured' to force configure. >>> It appears that 'compile' has already executed for 'bc-gh-6.2.2'; skipping. >>> Remove '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/.compiled' to force compile. >>> Test phase [not enabled]: sci-calculators/bc-gh-6.2.2 >>> Install sci-calculators/bc-gh-6.2.2 into /var/tmp/portage/sci-calculators/bc-gh-6.2.2/image make -j4 DESTDIR=/var/tmp/portage/sci-calculators/bc-gh-6.2.2/image install ./scripts/locale_install.sh -l /usr/share/locale/%L/%N bc-gh /var/tmp/portage/sci-calculators/bc-gh-6.2.2/image ./scripts/safe-install.sh -Dm644 manuals/bc.1 /var/tmp/portage/sci-calculators/bc-gh-6.2.2/image/usr/share/man/man1/bc-gh.1 ./scripts/safe-install.sh -Dm644 manuals/dc.1 /var/tmp/portage/sci-calculators/bc-gh-6.2.2/image/usr/share/man/man1/dc-gh.1 ./scripts/exec-install.sh /var/tmp/portage/sci-calculators/bc-gh-6.2.2/image/usr/bin "-gh" "/var/tmp/portage/sci-calculators/bc-gh-6.2.2/work/bc-6.2.2/bin" ./scripts/locale_install.sh[190]: -s: unknown option Invalid option: ? usage: ./scripts/locale_install.sh [-l] NLSPATH main_exec [DESTDIR] make: *** [Makefile:594: install_locales] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: sci-calculators/bc-gh-6.2.2::gentoo failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=sci-calculators/bc-gh-6.2.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-calculators/bc-gh-6.2.2::gentoo'`. * The complete build log is located at '/var/log/portage/sci-calculators:bc-gh-6.2.2:20230218-084549.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/temp/environment'. * Working directory: '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/work/bc-6.2.2' * S: '/var/tmp/portage/sci-calculators/bc-gh-6.2.2/work/bc-6.2.2'
Note from emerge --info: >sh mksh 59c i.e. app-alternatives/sh[mksh] is selected. I bet that's related.
(In reply to Sam James from comment #11) > Note from emerge --info: > >sh mksh 59c > > i.e. app-alternatives/sh[mksh] is selected. I bet that's related. sorry, [lksh].
Ah yes, I missed that. I bet that's the problem too. My bet is that lksh doesn't implement getopts correctly or some sort. I'll test it when I get a chance.
That *is* the reason. I've fixed the script, created a new version, updated the ebuild, and created a PR for it. [1] Once accepted, the new package version should fix this bug. [1]: https://github.com/gentoo/gentoo/pull/29654
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=621963fc5bb7b2285d3501ea212a9f222bf0c32b commit 621963fc5bb7b2285d3501ea212a9f222bf0c32b Author: Gavin D. Howard <gavin@gavinhoward.com> AuthorDate: 2023-02-18 22:55:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-19 19:55:48 +0000 sci-calculators/bc-gh: bump to 6.2.6 This should fix #895086. This is also why I'm removing 6.2.2: it doesn't install on mksh. Closes: https://bugs.gentoo.org/895086 Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com> Closes: https://github.com/gentoo/gentoo/pull/29654 Signed-off-by: Sam James <sam@gentoo.org> sci-calculators/bc-gh/Manifest | 2 +- sci-calculators/bc-gh/{bc-gh-6.2.2.ebuild => bc-gh-6.2.6.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-)