> On Nov 24, 2015, at 11:12, Hanspeter Niederstrasser <f...@snaggledworks.com> 
> wrote:
> 
> 
> On Tue, November 24, 2015 10:19 am, Max Horn wrote:
>> Hi folks,
>> 
>> I really would like to see qt5 fixed, one way or another.  Let me try to
>> restart the discussion, by summarizing:
>> 
>> There are two possible solutions I am aware of:
>> (1) adding a symlink
>> (2) fixing the .pc files
>> 
>> I proposed (1) simply because this seems easier to achieve to me (just
>> have to insert appropriate "ln -s" commands in the InstallScripts.
>> 
>> But Hanspeter perceived a problem, which I do not quite understand:
> 
>>>> (otherwise packages will get stuck on
>>>> expecting the symlink).
> 
> Qt5-using packages should use either qmake or the .pc files to find the
> correct Qt5 library and header paths. The .pc files currently have the
> wrong Cflags on them. If we 'fix' that by creating a symlink, then we'll
> have to maintain that symlink for a long time, because packages will be
> expecting it to be present at buildtime, especially if they decide to not
> use a .pc file.
> 
> If we fix the .pc files, then we still have to propagate the change (at
> least until upstream fixes it), but a file content change feels cleaner to
> me than a file location change.
> 
>> Does a "sed" base change sound OK? Or does somebody know how to do it
>> properly and volunteers?
> 
> A perl or sed one liner inside a QtFOO loop at the end of InstallScript
> should take care of fixing the .pc files (I also don't know how the .pc
> files get populated). /me prefers a perl pie.
> 
>> In either case, one needs to change the "Cflags" in the .pc file, which
>> currently are
>> Cflags: -I${includedir}/QtCore -I${includedir}
>> 
>> and should be changed to this corrected form:
>> 
>> Cflags: -F${libdir} -I${libdir}/QtCore.framework/Headers
>> 
>> or perhaps (???) even to this
>> 
>> Cflags: -F${libdir} -I${libdir}/QtCore.framework/Headers -I${includedir}
> 
> I'm still working on getting my new machine, so I can't see the current
> package contents.  What are the current values of 'includedir' and
> 'libdir' in the .pc file?
> 
> Hanspeter
> 
> -- 
> 
> 
> 

The contents of Qt5Core.pc:

prefix=/sw/lib/qt5-mac
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

host_bins=${prefix}/bin
qt_config=minimal-config small-config medium-config large-config full-config 
fontconfig c++11 accessibility opengl shared qpa reduce_exports getaddrinfo 
ipv6ifname getifaddrs system-jpeg system-png png system-freetype no-harfbuzz 
system-zlib nis cups iconv glib dbus dbus-linked openssl-linked corewlan icu 
concurrent audio-backend release qt_framework

Name: Qt5 Core
Description: Qt Core module
Version: 5.5.0
Libs: -F${libdir} '-Wl,-framework,QtCore ' 
Cflags: -I${includedir}/QtCore -I${included}



------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to