Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760633 - sys-apps/keyutils-1.6.3 calls commands that do not exist during tests (/bin/sh: line 1: rpmspec: command not found)
Summary: sys-apps/keyutils-1.6.3 calls commands that do not exist during tests (/bin/s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-12-18 11:44 UTC by Agostino Sarubbo
Modified: 2022-04-29 04:19 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,13.37 KB, text/plain)
2020-12-18 11:44 UTC, Agostino Sarubbo
Details
rpmspec fix (0001-Makefile-only-run-rpmspec-if-it-exists.patch,1.48 KB, patch)
2022-01-04 02:16 UTC, Adrian Ratiu
Details | Diff

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

Issue: sys-apps/keyutils-1.6.3 calls commands that do not exist.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2020-12-18 11:44:28 UTC
Created attachment 678730 [details]
build.log

build log and emerge --info
Comment 2 Adrian Ratiu 2022-01-03 18:38:09 UTC
Hi, I also reproduced this.

The failure is due to upgrading bash from 4.4 to >= 5.0.

The newer bash version issues a "/bin/sh: line 1: rpmspec: command not found" during each Makefile parsing phase in the ebuild build/install functions.

portage _check_build_log function scans the build log and picks up that new command not found error and fails the build with a QA message.

It is worth noting rpmspec never existed. The difference is that bash prior to 5.0 was silent and now is verbose.

Any ideas how to fix?
Comment 3 Adrian Ratiu 2022-01-04 02:16:03 UTC
Created attachment 761237 [details, diff]
rpmspec fix
Comment 4 Adrian Ratiu 2022-01-04 02:16:44 UTC
I have attached a patch which I proposed on the upstream mailing list to fix the issue.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-29 04:17:11 UTC
(In reply to adi from comment #4)
> I have attached a patch which I proposed on the upstream mailing list to fix
> the issue.

Sorry, I'd missed this.
Comment 6 Larry the Git Cow gentoo-dev 2022-04-29 04:19:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a5861e534bf5ae62c70b66989629365a3e39bb

commit 58a5861e534bf5ae62c70b66989629365a3e39bb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-29 04:19:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-29 04:19:09 +0000

    sys-apps/keyutils: fix "command not found" error for rpmspec
    
    Closes: https://bugs.gentoo.org/760633
    Thanks-to: Adrian Ratiu <adrian.ratiu@collabora.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/keyutils-1.6.3-fix-rpmspec-check.patch   | 38 ++++++++++++++++++++++
 sys-apps/keyutils/keyutils-1.6.3.ebuild            |  1 +
 2 files changed, 39 insertions(+)