Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945740 - sci-calculators/bc-gh-7.0.3 calls commands that do not exist: gencat
Summary: sci-calculators/bc-gh-7.0.3 calls commands that do not exist: gencat
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:
Depends on:
Blocks:
 
Reported: 2024-12-02 12:37 UTC by Agostino Sarubbo
Modified: 2024-12-03 07:58 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,66.09 KB, text/plain)
2024-12-02 12:37 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-12-02 12:37:46 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-calculators/bc-gh-7.0.3 calls commands that do not exist.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#QA0018
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-02 12:37:47 UTC
Created attachment 913063 [details]
build.log

build log and emerge --info
Comment 2 Gavin D. Howard 2024-12-02 14:59:43 UTC
This is not a bug but intended behavior.

That line of output is logging for the configure script. I was requested to keep such lines in [1] by a Gentoo developer.

[1]: https://bugs.gentoo.org/937152#c7
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-02 15:03:58 UTC
Yeah, it's a FP report here. Not all configure scripts are autoconf-like.
Comment 4 Agostino Sarubbo gentoo-dev 2024-12-02 15:29:53 UTC
(In reply to Gavin D. Howard from comment #2)
> This is not a bug but intended behavior.
> 
> That line of output is logging for the configure script. I was requested to
> keep such lines in [1] by a Gentoo developer.
> 
> [1]: https://bugs.gentoo.org/937152#c7

I understand your concern, and looking at the configure script this is the intended behavior.

Since the configure script relies on "${?}" and portage collects the "command not found" I think we can use:
> /dev/null 2>&1

instead of

> /dev/null

https://github.com/gavinhoward/bc/blob/c8dabac65d39fd527a9264a5e505a99b1d8df3d8/configure.sh#L1570
Comment 5 Gavin D. Howard 2024-12-02 20:41:28 UTC
That does not work.

This commit works: https://git.gavinhoward.com/gavin/bc/commit/984f35b99bf28747c9c05b1a6ddeafb8eb5b637b . It moves the stderr output to stdout.
Comment 6 Agostino Sarubbo gentoo-dev 2024-12-03 07:58:45 UTC
(In reply to Gavin D. Howard from comment #5)
> That does not work.
> 
> This commit works:
> https://git.gavinhoward.com/gavin/bc/commit/
> 984f35b99bf28747c9c05b1a6ddeafb8eb5b637b . It moves the stderr output to
> stdout.

Hello Gavin,

I didn't realize at the time of writing that you are the main author of bc-gh.

Anyway whatever solution you prefer is fine, thanks for the fix.