Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910524 - sci-electronics/kicad-7.0.6: check-reqs syntax error: invalid arithmetic operator
Summary: sci-electronics/kicad-7.0.6: check-reqs syntax error: invalid arithmetic oper...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-07-19 01:18 UTC by Daniel M. Weeks
Modified: 2023-07-24 08:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2023-07-19 01:18:52 UTC
It appears check-reqs does not support floats as used in the latest kicad bump:

* Checking for at least 1.2 GiB disk space at "/tmp/portage/sci-electronics/kicad-7.0.6/temp" ...
/usr/portage/eclass/check-reqs.eclass: line 202: 1.2: syntax error: invalid arithmetic operator (error token is ".2")   [ ok ]

(Potentially this should be resolved in check-reqs as well to detect when this error occurs and handle it rather than continuing as if the check passed.)

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2023-07-24 08:02:19 UTC
The bug has been closed via the following commit(s):

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

commit eaacc2608f7b10d68404f2c6e32ae87b32a4c327
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2023-07-24 06:26:19 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-07-24 08:02:13 +0000

    sci-electronics/kicad: disk space check fix
    
    Use integer instead of float to prevent check_reqs from failing with an
    arithmetic error
    
    Closes: https://bugs.gentoo.org/910524
    Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info>
    Closes: https://github.com/gentoo/gentoo/pull/32019
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 sci-electronics/kicad/kicad-7.0.6.ebuild | 2 +-
 sci-electronics/kicad/kicad-9999.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)