Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895086 - sci-calculators/bc-gh-6.2.2 - emake failed
Summary: sci-calculators/bc-gh-6.2.2 - emake failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gavin D. Howard
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2023-02-17 09:57 UTC by Toralf Förster
Modified: 2023-02-19 22:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.76 KB, text/plain)
2023-02-17 09:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,123.92 KB, text/plain)
2023-02-17 09:57 UTC, Toralf Förster
Details
environment (environment,23.68 KB, text/plain)
2023-02-17 09:57 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,42.49 KB, application/x-bzip)
2023-02-17 09:57 UTC, Toralf Förster
Details
sci-calculators:bc-gh-6.2.2:20230217-013522.log (sci-calculators:bc-gh-6.2.2:20230217-013522.log,23.12 KB, text/plain)
2023-02-17 09:57 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,9.85 KB, application/x-bzip)
2023-02-17 09:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-02-17 09:57:42 UTC
./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"
Comment 1 Toralf Förster gentoo-dev 2023-02-17 09:57:43 UTC
Created attachment 852026 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-17 09:57:44 UTC
Created attachment 852028 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-02-17 09:57:45 UTC
Created attachment 852030 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-02-17 09:57:46 UTC
Created attachment 852032 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-02-17 09:57:47 UTC
Created attachment 852034 [details]
sci-calculators:bc-gh-6.2.2:20230217-013522.log
Comment 6 Toralf Förster gentoo-dev 2023-02-17 09:57:48 UTC
Created attachment 852036 [details]
temp.tar.bz2
Comment 7 Gavin D. Howard 2023-02-17 16:12:27 UTC
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.
Comment 8 Toralf Förster gentoo-dev 2023-02-17 16:15:44 UTC
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.
Comment 9 Gavin D. Howard 2023-02-17 23:07:18 UTC
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...
Comment 10 Toralf Förster gentoo-dev 2023-02-18 08:46:44 UTC
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'
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-18 08:47:35 UTC
Note from emerge --info:
>sh mksh 59c

i.e. app-alternatives/sh[mksh] is selected. I bet that's related.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-18 08:52:47 UTC
(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].
Comment 13 Gavin D. Howard 2023-02-18 15:50:06 UTC
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.
Comment 14 Gavin D. Howard 2023-02-18 23:02:07 UTC
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
Comment 15 Larry the Git Cow gentoo-dev 2023-02-19 19:55:59 UTC
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(-)