Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261079 - app-portage/euses uses echo -n that does not works on Solaris
Summary: app-portage/euses uses echo -n that does not works on Solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: Sparc64 Solaris
: High normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 16:28 UTC by Timothy Redaelli (RETIRED)
Modified: 2009-03-18 18:51 UTC (History)
1 user (show)

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


Attachments
files/euses-2.5.5-printf.patch (euses-2.5.5-printf.patch,507 bytes, patch)
2009-03-03 16:30 UTC, Timothy Redaelli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Redaelli (RETIRED) gentoo-dev 2009-03-03 16:28:25 UTC
echo -n is not supported on Solaris, you have to use printf

I attach a patch to fix it
Comment 1 Timothy Redaelli (RETIRED) gentoo-dev 2009-03-03 16:30:05 UTC
Created attachment 183776 [details, diff]
files/euses-2.5.5-printf.patch
Comment 2 Timothy Redaelli (RETIRED) gentoo-dev 2009-03-03 16:33:22 UTC
I know I should report it only upstream, but you can have it also with a bizarre shell under linux
Comment 3 Fabian Groffen gentoo-dev 2009-03-03 18:38:17 UTC
If you use shell internal echo you might get this problem (esp. with /bin/sh on Solaris), if you use echo from path, in Prefix you should be safe (as it is provided by coreutils)
Comment 4 Timothy Redaelli (RETIRED) gentoo-dev 2009-03-03 19:58:34 UTC
I know, but popen uses always /bin/sh. So we cannot change it
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-03-04 16:04:31 UTC
(In reply to comment #2)
> I know I should report it only upstream, but you can have it also with a
> bizarre shell under linux

It's OK to report it here. Switching to printf should be trivial. I will do a version release soon.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-03-18 18:51:48 UTC
Thanks for reporting. Fixed in 2.5.6.