Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 300229

Summary: gentoolkit-0.3.0_rc8: revdep-rebuild: syntax error
Product: Portage Development Reporter: Paul Varner (RETIRED) <fuzzyray>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 237964, 305793    
Attachments: revdep-rebuild portageq patch
Use eval portageq envvar -v ....

Description Paul Varner (RETIRED) gentoo-dev 2010-01-08 22:27:48 UTC
[16:04] <zmedico> FuzzyRay: gentoolkit 0.3.0_rc8 here and revdep-rebuild gives an error message for my EMERGE_DEFAULT_OPTS: /usr/bin/revdep-rebuild: line 1020: let: --load-average=2.5: syntax error: invalid arithmetic operator (error token is ".5")
[16:04] <zmedico> not sure if it's been reported already
[16:05] <FuzzyRay> zmedico: It hasn't
[16:07] <FuzzyRay> We're not parsing something right from portageq, that is supposed to be your PORTAGE_NICENESS value
[16:10] <zmedico> funky
[16:12] <zmedico> FuzzyRay: you might to like emerge-webrsync: eval $(portageq envvar -v FEATURES FETCHCOMMAND GENTOO_MIRRORS)
[16:13] <zmedico> except the SEARCH_DIRS and *_MASK vars look tricky
[16:13] <zmedico> maybe do a backup of those first
Comment 1 Paul Varner (RETIRED) gentoo-dev 2010-01-08 22:46:38 UTC
Created attachment 215725 [details, diff]
revdep-rebuild portageq patch

Zac: This is a minimal change which doesn't break my system.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2010-01-08 23:00:08 UTC
Created attachment 215727 [details, diff]
Use eval portageq envvar -v ....

This one uses eval $(portageq envvar -v ...) to evaluate all variables
Comment 3 Zac Medico gentoo-dev 2010-01-09 07:37:09 UTC
Thanks, I tested both patches and they both mad the error go away.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2010-01-11 16:37:28 UTC
$ svn commit -m "Set environment using 'portageq -v' (Bug 300229)"
Sending        gentoolkit/ChangeLog
Sending        gentoolkit/bin/revdep-rebuild
Transmitting file data ..
Committed revision 734.

Second patch committed.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2010-02-19 15:29:12 UTC
Released in gentoolkit-0.3.0_rc9 and gentoolkit-0.2.4.6