[ wxwindows-Bugs-1786730 ] little prob when installing wx using DESTDIR

SourceForge.net noreply at sourceforge.net
Sun Sep 2 11:50:30 PDT 2007


Bugs item #1786730, was opened at 2007-09-02 20:41
Message generated for change (Comment added) made by vaclavslavik
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1786730&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: buergi (buergi)
Assigned to: Nobody/Anonymous (nobody)
Summary: little prob when installing wx using DESTDIR

Initial Comment:
when installing wxwidgets into another directory by setting the DESTDIR variable an error occures, to fix it one have to change the following line in the makefile

12061: (cd $(DESTDIR)$(bindir) && rm -f wx-config && $(LN_S) $(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config)

into

12061: (cd $(DESTDIR)$(bindir) && rm -f wx-config && $(LN_S) $(DESTDIR)$(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config)

at least for me it worked (winxp + mingw)
of course the Makefile.in will be overwritten but i think you guys know where to change it permanently :D

----------------------------------------------------------------------

>Comment By: Vaclav Slavik (vaclavslavik)
Date: 2007-09-02 20:50

Message:
Logged In: YES 
user_id=80834
Originator: NO

It worked for you only because you're on a filesystem that doesn't support
symbolic links. Your change completely breaks the symlink on Unix: the
symlink must point to $(libdir), *not* $(DESTDIR)$(libdir) (which is
commonly a temp directory) because the way DESTDIR is typically used is to
create an image in temp directory and then move it to e.g. /usr as part of
a package.

The only way to fix this correctly is to use relative target symlink (e.g.
ln -s ../lib/xwx/config/foo wx-config), but I don't see how to do in a
generic way (easily), because $libdir may point to anything... So in
absence of proper fix, it's better to have broken DESTDIR support on Mingw
than to have broken virtually every Linux wx package out there.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1786730&group_id=9863




More information about the wx-dev mailing list