Opened 10 years ago
Closed 10 years ago
#44772 closed defect (fixed)
Cannot use wxWidgets_select (with wxGTK)
Reported by: | Themanwithoutaplan | Owned by: | mojca (Mojca Miklavec) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | jyrkiwahlstedt | |
Port: | wxWidgets_select wxGTK-2.8 |
Description
Hi,
not sure if this is just select or wxGTK but I can't use
port select wxWidgets wxgtk-2.8
.
I get
Selecting 'wxgtk-2.8' for 'wxWidgets' failed: could not create new link "/opt/local/share/bakefile/presets/wx.bkl": no such file or directory
Attachments (1)
Change History (16)
comment:1 Changed 10 years ago by mf2k (Frank Schima)
Port: | wxWidgets_select, wxGTK-2.8 → wxWidgets_select wxGTK-2.8 |
---|
comment:2 Changed 10 years ago by mojca (Mojca Miklavec)
Cc: | mojca@… removed |
---|
comment:3 Changed 10 years ago by mojca (Mojca Miklavec)
Owner: | changed from macports-tickets@… to mojca@… |
---|---|
Version: | 2.3.1 |
What is the output of
port contents wxgtk-2.8 | grep share
on your machine? I get
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/aclocal/wxwin.m4 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/bakefile/presets/wx.bkl /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/bakefile/presets/wx_unix.bkl /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/bakefile/presets/wx_win32.bkl /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/install-gtk.txt /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/install-mac.txt /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/readme-gtk.txt /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/readme-mac.txt
and the select mechanism works for me.
comment:4 Changed 10 years ago by Themanwithoutaplan
I get
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/aclocal/wxwin.m4 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/bakefile/presets/wx.bkl /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/bakefile/presets/wx_unix.bkl /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/bakefile/presets/wx_win32.bkl /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/install-gtk.txt /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/install-mac.txt /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/readme-gtk.txt /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/doc/wxWidgets/readme-mac.txt
Which is the same as you but I still can't use port select
comment:5 Changed 10 years ago by mojca (Mojca Miklavec)
Can you please try
sudo port -d select wxWidgets none sudo port -d select wxWidgets wxgtk-2.8
to check if there are more clues hidden there?
comment:6 Changed 10 years ago by Themanwithoutaplan
DEBUG: Copying /Users/charlieclark/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: action_select [wxWidgets none] []... DEBUG: Although no command was specified, more than one argument was specified. Defaulting to the 'set' command... DEBUG: mportselect [set] [wxWidgets] [none] DEBUG: rm -f /opt/local/bin/wx-config DEBUG: rm -f /opt/local/bin/wxrc DEBUG: rm -f /opt/local/share/aclocal/wxwin.m4 DEBUG: rm -f /opt/local/share/bakefile/presets/wx.bkl DEBUG: rm -f /opt/local/share/bakefile/presets/wx_presets.py DEBUG: rm -f /opt/local/share/bakefile/presets/wx_unix.bkl DEBUG: rm -f /opt/local/share/bakefile/presets/wx_win32.bkl DEBUG: rm -f /opt/local/share/bakefile/presets/wx_xrc.bkl Selecting 'none' for 'wxWidgets' succeeded. 'none' is now active.
and
DEBUG: Copying /Users/charlieclark/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: action_select [wxWidgets wxgtk-2.8] []... DEBUG: Although no command was specified, more than one argument was specified. Defaulting to the 'set' command... DEBUG: mportselect [set] [wxWidgets] [wxgtk-2.8] DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/bin/wx-config /opt/local/bin/wx-config DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/bin/wxrc-2.8 /opt/local/bin/wxrc DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/aclocal/wxwin.m4 /opt/local/share/aclocal/wxwin.m4 Selecting 'wxgtk-2.8' for 'wxWidgets' failed: could not create new link "/opt/local/share/bakefile/presets/wx.bkl": no such file or directory
comment:7 Changed 10 years ago by mojca (Mojca Miklavec)
Does the folder /opt/local/share/bakefile/presets
exist on your machine?
Maybe that folder is missing and doing
[sudo] mkdir -p /opt/local/share/bakefile/presets
would help, but that would mean a bug in "port select
".
comment:8 Changed 10 years ago by Themanwithoutaplan
cd: /opt/local/share/bakefile/presets: No such file or directory
But that doesn't mean to me that "port select" has a bug. Works fine with other ports.
comment:9 Changed 10 years ago by mojca (Mojca Miklavec)
Are you able to select wxWidgets-3.0
then? Does it help if you create /opt/local/share/bakefile/presets
first?
comment:10 Changed 10 years ago by Themanwithoutaplan
Yes, wxWidgets-3.0 works fine. Here's the debug output. Looks (to me) like the paths are different.
DEBUG: Copying /Users/charlieclark/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: action_select [wxWidgets wxWidgets-3.0] []... DEBUG: Although no command was specified, more than one argument was specified. Defaulting to the 'set' command... DEBUG: mportselect [set] [wxWidgets] [wxWidgets-3.0] DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config /opt/local/bin/wx-config DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wxrc-3.0 /opt/local/bin/wxrc DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/share/aclocal/wxwin.m4 /opt/local/share/aclocal/wxwin.m4 DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/share/bakefile/presets/wx.bkl /opt/local/share/bakefile/presets/wx.bkl DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/share/bakefile/presets/wx_presets.py /opt/local/share/bakefile/presets/wx_presets.py DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/share/bakefile/presets/wx_unix.bkl /opt/local/share/bakefile/presets/wx_unix.bkl DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/share/bakefile/presets/wx_win32.bkl /opt/local/share/bakefile/presets/wx_win32.bkl DEBUG: ln -sf /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/share/bakefile/presets/wx_xrc.bkl /opt/local/share/bakefile/presets/wx_xrc.bkl Selecting 'wxWidgets-3.0' for 'wxWidgets' succeeded. 'wxWidgets-3.0' is now active.
comment:11 Changed 10 years ago by mojca (Mojca Miklavec)
I know it's stupid, but now that you have wxWidget-3.0
active, can you please try with wxgtk-2.8
again? I really don't understand why it wouldn't work as long as the file /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/share/bakefile/presets/wx.bkl
exists on your computer.
comment:13 Changed 10 years ago by mojca (Mojca Miklavec)
I think I understand the problem now.
Version 3.0 contains:
post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/bakefile/presets } destroot.keepdirs ${destroot}${prefix}/share/bakefile/presets
while version 2.8 doesn't.
As a consequence the following files end up in /opt/local/share/bakefile/presets/
.turd_wxPython-3.0 .turd_wxWidgets-3.0 .turd_wxWidgets-3.0-libcxx .turd_wxgtk-3.0
but not for 2.8.
Changed 10 years ago by mojca (Mojca Miklavec)
Attachment: | wxWidgets-2.8-keepdirs.diff added |
---|
comment:14 Changed 10 years ago by mojca (Mojca Miklavec)
I attached a patch. I would be grateful for some additional testing before committing it.
comment:15 Changed 10 years ago by mojca (Mojca Miklavec)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed in r128626.
Cc Me!