Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937357 - sci-physics/rivet-3.1.10 fails to compile: configure: line 20942: let: hepmc_third=: syntax error: operand expected (error token is =)
Summary: sci-physics/rivet-3.1.10 fails to compile: configure: line 20942: let: hepmc_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: APN-Pucky
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2024-08-05 09:23 UTC by Agostino Sarubbo
Modified: 2024-11-29 11:55 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,67.03 KB, text/plain)
2024-08-05 09:23 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,58.72 KB, text/plain)
2024-08-05 09:23 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-08-05 09:23:16 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-physics/rivet-3.1.10 fails to compile.
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#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-05 09:23:17 UTC
Created attachment 899062 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-08-05 09:23:18 UTC
Created attachment 899063 [details]
1-config.log

1-config.log
Comment 3 Agostino Sarubbo gentoo-dev 2024-08-05 09:23:19 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


rm: cannot remove 'conftest.*': No such file or directory
./configure: line 20942: let: hepmc_third=: syntax error: operand expected (error token is "=")
Comment 4 APN-Pucky 2024-11-28 12:49:04 UTC
This is not a nonbash problem, since we explicitly require and use bash.

The problem is the autoconfig is wrong it has

hepmc_major=$(echo "$hepmc_version" | cut -d. -f1 | sed -e 's/^0*//')
hepmc_minor=$(echo "$hepmc_version" | cut -d. -f2 | sed -e 's/^0*//')
hepmc_third=$(echo "$hepmc_version" | cut -d. -f3 | sed -e 's/^0*//')

and with hepmc-3.3.0 the third evaluates to nothing. I'll patch this now
Comment 5 Larry the Git Cow gentoo-dev 2024-11-29 11:55:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2637844f531772855ce801bf93fef5e589db0270

commit 2637844f531772855ce801bf93fef5e589db0270
Author:     Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
AuthorDate: 2024-11-28 13:27:00 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2024-11-29 11:53:38 +0000

    sci-physics/rivet: add patch to fix autoconfigure sed
    
    Closes: https://bugs.gentoo.org/937357
    Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
    Closes: https://github.com/gentoo/gentoo/pull/39502
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 .../rivet/files/rivet-3.1.10-versions.patch        | 65 ++++++++++++++++++++++
 ...{rivet-3.1.10.ebuild => rivet-3.1.10-r1.ebuild} |  3 +-
 2 files changed, 67 insertions(+), 1 deletion(-)