Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501784 - =sci-mathematics/octave-3.8.0 has a broken pkg_pretend
Summary: =sci-mathematics/octave-3.8.0 has a broken pkg_pretend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mark Wright
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-02-19 14:22 UTC by Olivier Huber
Modified: 2014-02-19 23:48 UTC (History)
0 users

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


Attachments
proposed patch (octave-borken-pkg_pretend.patch,1.13 KB, patch)
2014-02-19 14:22 UTC, Olivier Huber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Huber 2014-02-19 14:22:32 UTC
Created attachment 370778 [details, diff]
proposed patch

The test in pkg_pretend uses the "!=" operator in a check. But this "test operator" is quite misleading since the result it gives is not really the one people expect ...
As a result, it is not possible to update octave, even if the dependency have been build with the current blas lib

The proposed patch replace the use of "!=" and "==" with the proper operator "-ne" and "-eq". One typo is also fixed.
Comment 1 Mark Wright gentoo-dev 2014-02-19 23:48:03 UTC
Applied, thanks:
Thanks to Olivier Huber for fixing and reporting bug 501784: replace the use of "!=" and "==" in pkg_pretend with the proper operator "-ne" and "-eq". One typo is also fixed.