Re: [Fink-devel] An option to build universal binaries ?
On 12/02/2008, Benjamin Reed [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DJamé Seddah wrote: | Thanks for you long answer but I wonder how come it seems more | feasible in the macport project ? | http://trac.macosforge.org/projects/macports/wiki/ | FAQ#IsMacPortsUniversal | I know that it's not possible for every package (especially for those | who need to be bootstraped, in that case UB means basically cross | compilation+emulation (doable on mactel not on ppc except by the mean | of qemu so very unlikely to work flawlessly) but I would have loved | to have a magic option :) Well, it's likely they can do the same percentage I said in my e-mail. :) I'm not saying it's impossible, only difficult to do right. And as they do not use dpkg their system might be easier to hack to support universal binaries than fink :) But still compiling something like ghc as universal binary might get quite interesting. Plus fixing up all the endianess checks in the stuff that works on both platforms but requires binary communication with the outside world.. Thanks Michal - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] An option to build universal binaries ?
Benjamin Reed wrote: [] I'm sure everyone would be happy to have simple universal binary support in Fink Not me. I don't have any machine that needs universal binaries, I have only ppcs and intels. As a user, I don't want to spend twice the compilation time for every package and use twice the disk space for the executables and libraries. In my opinion, universal binaries are an invention for distributors of precompiled binaries, not for users. As for the distribution of precompiled binaries, Fink has, in principle, the tools for providing the same (or more, because of smaller downloads) comfort as what is achieved by universal binaries, namely separate binaries for ppc and intel, with automagic choice of the right architecture at download time. The only problem is that there is no central Fink bindist any more... -- Martin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] An option to build universal binaries ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DJamé Seddah wrote: | Thanks for you long answer but I wonder how come it seems more | feasible in the macport project ? | http://trac.macosforge.org/projects/macports/wiki/ | FAQ#IsMacPortsUniversal | I know that it's not possible for every package (especially for those | who need to be bootstraped, in that case UB means basically cross | compilation+emulation (doable on mactel not on ppc except by the mean | of qemu so very unlikely to work flawlessly) but I would have loved | to have a magic option :) Well, it's likely they can do the same percentage I said in my e-mail. :) I'm not saying it's impossible, only difficult to do right. - -- Benjamin Reed a.k.a. Ranger Rick Fink, KDE, and Mac OS X development http://www.racoonfink.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHsPmjUu+jZtP2Zf4RAqmQAKCZpjAo5lleL5NH8amwL0qFbUFe/QCeMzGG ujxO0QmWfpYp75YR1ZC3GxM= =5q7k -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] An option to build universal binaries ?
(..) Not to burst your bubble, but I've thought about this a lot (and built probably 40 individual KDE dependencies as universal packages manually) and it's just not feasible. Thanks for you long answer but I wonder how come it seems more feasible in the macport project ? http://trac.macosforge.org/projects/macports/wiki/ FAQ#IsMacPortsUniversal I know that it's not possible for every package (especially for those who need to be bootstraped, in that case UB means basically cross compilation+emulation (doable on mactel not on ppc except by the mean of qemu so very unlikely to work flawlessly) but I would have loved to have a magic option :) Thanks for your time anyway, Djamé - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] An option to build universal binaries ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander K. Hansen wrote: | fink selfupdate CFLAGS=-arc i386 -arch ppc | | and then hopping that all the makefile will get the new propagated | CFLAGS and maybe modify the apt.conf to take that into account. That will work for basically nothing in Fink. If it were that easy, we would already have done it. :) Autotools-based packages (probably 80% of the stuff in fink) will need at least --disable-dependency-tracking passed on the configure line as well as the -arch stuff in your flags. That will work for maybe 60-80% of autotools (that's 60-80% of 80%). And, only if you're on Intel, because on PowerPC you'll also need - -isysroot /Developer/SDKs/MacOSX10.4u.sdk which also adds flags which piss off some custom-written autotools stuff. Probably another 20-30% of *those* (including most network tools) do endianness checks at configure time, which means that it will build on all platforms, but create broken binaries on whichever platform you're not building on. So that's 70-80% working in the 60-80% of 80%. ;) Non-autotools-based packages are completely a crapshoot; most of the manual build system stuff that isn't autotools does not care what's in CFLAGS, or treats it differently. Yes, it is theoretically possible to get everything in Fink to build universal. In practice, it would require tons and tons of hand-hacking by maintainers, as well as infrastructural support in Fink, and neither side has the manpower for us to reasonably expect it to happen. Not to burst your bubble, but I've thought about this a lot (and built probably 40 individual KDE dependencies as universal packages manually) and it's just not feasible. - -- Benjamin Reed a.k.a. Ranger Rick Fink, KDE, and Mac OS X development http://www.racoonfink.com/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHr7nXUu+jZtP2Zf4RAmM8AJ0fwbiFV2ywb0uXwGo0OQDcKkdHjgCdGXQA lBIqEiMiPhR4Ct+wo2TATMg= =VAtN -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
[Fink-devel] An option to build universal binaries ?
Hi, I would like to know if it would be possible to use fink to build a whole universal binary hierarchy under /sw ? the idea is to have a shared directory using nfs for ppc and x86 so if it exists an option to add to fink.conf, that would be nice to let me know Regards, Djamé - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] An option to build universal binaries ?
On Saturday 09 February 2008 01:15:11 pm DJamé Seddah wrote: Hi, I would like to know if it would be possible to use fink to build a whole universal binary hierarchy under /sw ? the idea is to have a shared directory using nfs for ppc and x86 so if it exists an option to add to fink.conf, that would be nice to let me know Regards, Djamé It's not supported, and It's not likely ever to happen. To do a cross-compile for PowerPC on an Intel box would require removing _every_ Intel binary library from the Fink tree, and then rebuilding every package for PowerPC. Not to mention that the low level binary package handler, dpkg, is only capable of coping with a single architecture. Maybe one could use a PowerPC and an Intel box, install identical package sets, and then manually generate universal binaries from the two fink trees. -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter signature.asc Description: This is a digitally signed message part. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel