Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274675 - wxWidgets package detection in cmake fails if /bin/sh is not bash
Summary: wxWidgets package detection in cmake fails if /bin/sh is not bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 09:05 UTC by Tiziano Müller (RETIRED)
Modified: 2009-08-07 12:50 UTC (History)
1 user (show)

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


Attachments
patch onto wx-config to be sh posix compatible (wx-config.patch,1.08 KB, text/plain)
2009-06-19 10:14 UTC, Tomáš Chvátal (RETIRED)
Details
wx-config.diff (wx-config.diff,1.48 KB, patch)
2009-06-30 04:50 UTC, Ryan Hill (RETIRED)
Details | Diff
wx-config.diff (wx-config.diff,1.48 KB, patch)
2009-06-30 05:46 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2009-06-19 09:05:09 UTC
cmake calls wx-config using "COMMAND sh ..." leading to breakages in every package using wxGTK+cmake.
So, please either make wx-config posix-compatible (appreciated) or patch cmake to use "COMMAND bash" instead (works as well).
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-19 10:14:21 UTC
Created attachment 195155 [details]
patch onto wx-config to be sh posix compatible

I think way better than executing bash in findwxwidgets would be better to actualy make wx-config posix compatible.
Agreed?
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2009-06-30 04:50:52 UTC
Created attachment 196134 [details, diff]
wx-config.diff

yep, that's the way to go.  there's still a bashism in there [ ... && ... ] though.  can you give this a try?
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2009-06-30 05:46:54 UTC
Created attachment 196136 [details, diff]
wx-config.diff

and this one even works :P
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2009-07-01 07:18:57 UTC
Fixed in eselect-wxwidgets-1.0.
Comment 5 TDi 2009-08-07 12:50:25 UTC
Just letting you know that I tried eselect-wxwidgets-1.0 and cmake successfully found the wxWidgets package now.  Thanks