Re: [Fink-devel] Fwd: [Fink-beginners] Ruby18 build problem
On Apr 18, 2008, at 9:08 PM, Alexander Hansen wrote: > > On Apr 17, 2008, at 11:14 PM, Alexander Hansen wrote: > >> It looks like putting -L%b in LDFLAGS solves the problem, since that >> occurs in the linker lines before -lruby and -lruby-static, and so %b >> gets checked out first. >> >> I've uploaded updated .info and .patch files to my experimental >> directory: >> >> http://www.finkdeveloper.net/svn/users/akh/experimental/ruby-update/ >> >> The -10.5 version uses the PostInstallScript that Martin sent out >> earlier--I decided to leave the 10.4 script as it was. >> > > I've updated the .info and .patch files in experimental. The 10.4 > version is essentially the same as what's in Fink now, except that > it's tagged as Distribution: 10.4 , while the 10.5 version has been > modified to use a patch from the maintainer. The PostInstScript is > currently > > PostInstScript: << > /Developer/Tools/Rez -t APPL Carbon.r -o %p/bin/ruby-aqua1.8 > sips -i %p/share/doc/%n/logo/ruby.png > mv %p/bin/ruby-aqua1.8 %p/bin/ruby-aqua1.8_exe > /bin/cp %p/share/doc/%n/logo/ruby.png %p/bin/ruby-aqua1.8 > /bin/cp -X %p/bin/ruby-aqua1.8_exe %p/bin/ruby-aqua1.8 > rm %p/bin/ruby-aqua1.8_exe > << > > > Judging by the message on -beginners, we may need the same .patch for both distributions. I guess that's easier, anyway. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] Fwd: [Fink-beginners] Ruby18 build problem
On Apr 17, 2008, at 11:14 PM, Alexander Hansen wrote: > It looks like putting -L%b in LDFLAGS solves the problem, since that > occurs in the linker lines before -lruby and -lruby-static, and so %b > gets checked out first. > > I've uploaded updated .info and .patch files to my experimental > directory: > > http://www.finkdeveloper.net/svn/users/akh/experimental/ruby-update/ > > The -10.5 version uses the PostInstallScript that Martin sent out > earlier--I decided to leave the 10.4 script as it was. > I've updated the .info and .patch files in experimental. The 10.4 version is essentially the same as what's in Fink now, except that it's tagged as Distribution: 10.4 , while the 10.5 version has been modified to use a patch from the maintainer. The PostInstScript is currently PostInstScript: << /Developer/Tools/Rez -t APPL Carbon.r -o %p/bin/ruby-aqua1.8 sips -i %p/share/doc/%n/logo/ruby.png mv %p/bin/ruby-aqua1.8 %p/bin/ruby-aqua1.8_exe /bin/cp %p/share/doc/%n/logo/ruby.png %p/bin/ruby-aqua1.8 /bin/cp -X %p/bin/ruby-aqua1.8_exe %p/bin/ruby-aqua1.8 rm %p/bin/ruby-aqua1.8_exe << - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] Fwd: [Fink-beginners] Ruby18 build problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michal Suchanek wrote: | Could you try this patch, please? | | | Thanks | | Michal | | - It worked for me. So I guess we only need to apply it for 10.5, since the issue doesn't seem to show up on 10.4? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgJE3kACgkQB8UpO3rKjQ/JrgCfapuBCl1IP+RE8SkeOxW+zfJP 2rYAn1E9wG2T8X9HUfCxyYzcH9/s0+sp =ZrqW -END PGP SIGNATURE- - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] Fwd: [Fink-beginners] Ruby18 build problem
Could you try this patch, please? Thanks Michal configure.diff Description: Binary data - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] Fwd: [Fink-beginners] Ruby18 build problem
It looks like putting -L%b in LDFLAGS solves the problem, since that occurs in the linker lines before -lruby and -lruby-static, and so %b gets checked out first. I've uploaded updated .info and .patch files to my experimental directory: http://www.finkdeveloper.net/svn/users/akh/experimental/ruby-update/ The -10.5 version uses the PostInstallScript that Martin sent out earlier--I decided to leave the 10.4 script as it was. On Apr 17, 2008, at 2:02 PM, Alexander K. Hansen wrote: > My assumption was technically right, but... > > On checking through my build directories, I found that in the > "dirty" case > (i.e. where ruby built) there were a bunch of "-lruby-static", and, of > course, libruby-static.a is generated by ruby itself. The linker, > as is its > wont, browses around the system rather than looking in the package's > build > directory, where there's a perfectly good libruby-static.a sitting > around > atI'm not sure, however, whether we want to change this globally via > a patch > to configure.in the top level. It looks like the LIBRUBYARG_STATIC > variable > carries this information. > > $ grep -r LIBRUBYARG_STATIC * > #Makefile.in#:LIBRUBYARG_STATIC = @LIBRUBYARG_STATIC@ > Makefile.in:LIBRUBYARG_STATIC = @LIBRUBYARG_STATIC@ > bcc32/Makefile.sub:s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t > configure:LIBRUBYARG_STATIC > configure:LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static'I guess I'd > say to try > configure:LIBRUBYARG='$(LIBRUBYARG_STATIC)' > configure:LIBRUBYARG_STATIC!$LIBRUBYARG_STATIC$ac_delim > configure.in:LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static' > configure.in:LIBRUBYARG='$(LIBRUBYARG_STATIC)' > configure.in:AC_SUBST(LIBRUBYARG_STATIC) > doc/ChangeLog-1.8.0: config["LIBRUBY_A"]. don't link > $LIBRUBYARG_STATIC > if > doc/ChangeLog-1.8.0:* configure.in (LIBRUBYARG_STATIC, > LIBRUBYARG_SHARED): > linker > doc/ChangeLog-1.8.0:* Makefile.in (LIBRUBYARG_STATIC, > LIBRUBYARG_SHARED): > added. > lib/mkmf.rb: 'LIBS' => "# > $LIBRUBYARG_STATIC > #{opt} #$LIBS") > lib/mkmf.rb:LIBRUBYARG_STATIC = #$LIBRUBYARG_STATIC > lib/mkmf.rb: $LIBRUBYARG_STATIC = config['LIBRUBYARG_STATIC'] > win32/Makefile.sub:s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t > wince/Makefile.sub:s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t > > > On Tuesday 15 April 2008 10:58:50 pm Alexander Hansen wrote: >> Forwarding on to fink-devel and the maintainer: >> >> In summary: ruby18 doesn't build on clean systems on 10.5.2--we're >> not sure about 10.4 , in the absence of reports from that OS version. >> >> In addition to the build logs, I've posted build directories at that >> location, too, for successful (dirty) and unsuccessful (clean) >> builds. Because it built on a system with a bunch of stuff >> installed, >> I'm assuming that there's a missing BuildDepend. >> >> Begin forwarded message: >>> From: Alexander Hansen <[EMAIL PROTECTED]> >>> Date: April 13, 2008 8:55:34 PM EDT >>> To: Michael Hund <[EMAIL PROTECTED]> >>> Cc: [EMAIL PROTECTED] >>> Subject: Re: [Fink-beginners] Ruby18 build problem Re: Problems >>> installing kexi >>> >>> (ccing John since he had the same problem) >>> >>> I've reproduced the failure by building in a clean environment. It >>> appears that there is a missing build dependency, but I'm not sure >>> what it is. I've posted build logs here: >>> >>> http://akhmac.blogdns.net/~hansen/finklogs/ruby_test/ >>> >>> - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
Re: [Fink-devel] Fwd: [Fink-beginners] Ruby18 build problem
My assumption was technically right, but... On checking through my build directories, I found that in the "dirty" case (i.e. where ruby built) there were a bunch of "-lruby-static", and, of course, libruby-static.a is generated by ruby itself. The linker, as is its wont, browses around the system rather than looking in the package's build directory, where there's a perfectly good libruby-static.a sitting around atI'm not sure, however, whether we want to change this globally via a patch to configure.in the top level. It looks like the LIBRUBYARG_STATIC variable carries this information. $ grep -r LIBRUBYARG_STATIC * #Makefile.in#:LIBRUBYARG_STATIC = @LIBRUBYARG_STATIC@ Makefile.in:LIBRUBYARG_STATIC = @LIBRUBYARG_STATIC@ bcc32/Makefile.sub:s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t configure:LIBRUBYARG_STATIC configure:LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static'I guess I'd say to try configure:LIBRUBYARG='$(LIBRUBYARG_STATIC)' configure:LIBRUBYARG_STATIC!$LIBRUBYARG_STATIC$ac_delim configure.in:LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static' configure.in:LIBRUBYARG='$(LIBRUBYARG_STATIC)' configure.in:AC_SUBST(LIBRUBYARG_STATIC) doc/ChangeLog-1.8.0: config["LIBRUBY_A"]. don't link $LIBRUBYARG_STATIC if doc/ChangeLog-1.8.0:* configure.in (LIBRUBYARG_STATIC, LIBRUBYARG_SHARED): linker doc/ChangeLog-1.8.0:* Makefile.in (LIBRUBYARG_STATIC, LIBRUBYARG_SHARED): added. lib/mkmf.rb: 'LIBS' => "#$LIBRUBYARG_STATIC #{opt} #$LIBS") lib/mkmf.rb:LIBRUBYARG_STATIC = #$LIBRUBYARG_STATIC lib/mkmf.rb: $LIBRUBYARG_STATIC = config['LIBRUBYARG_STATIC'] win32/Makefile.sub:s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t wince/Makefile.sub:s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t On Tuesday 15 April 2008 10:58:50 pm Alexander Hansen wrote: > Forwarding on to fink-devel and the maintainer: > > In summary: ruby18 doesn't build on clean systems on 10.5.2--we're > not sure about 10.4 , in the absence of reports from that OS version. > > In addition to the build logs, I've posted build directories at that > location, too, for successful (dirty) and unsuccessful (clean) > builds. Because it built on a system with a bunch of stuff installed, > I'm assuming that there's a missing BuildDepend. > > Begin forwarded message: > > From: Alexander Hansen <[EMAIL PROTECTED]> > > Date: April 13, 2008 8:55:34 PM EDT > > To: Michael Hund <[EMAIL PROTECTED]> > > Cc: [EMAIL PROTECTED] > > Subject: Re: [Fink-beginners] Ruby18 build problem Re: Problems > > installing kexi > > > > (ccing John since he had the same problem) > > > > I've reproduced the failure by building in a clean environment. It > > appears that there is a missing build dependency, but I'm not sure > > what it is. I've posted build logs here: > > > > http://akhmac.blogdns.net/~hansen/finklogs/ruby_test/ > > > > On Apr 13, 2008, at 8:32 PM, Michael Hund wrote: > >> Alexander, > >> > >> No compiler except the Apple XCode 3.0, afaik. > >> > >> Regards, > >> > >> Michael Hund > >> > >> Alexander Hansen wrote: > >>> On Apr 13, 2008, at 7:01 AM, Michael Hund wrote: > I am trying to install kexi. I'm doing this on a MacBook Pro, > Intel > Core Fuo 2.2, OS X 10.5.4, with XCode 3.0. Fink seems to be > working > well, I'm a new user. I asked fink to install kexi, and several > hundred dependencies, and some hours later, I got the following: > > Generating RI... > /sw/src/fink.build/ruby18-1.8.6-p111-1/ruby-1.8.6-p111/.ext/i686- > darwin/stringio.bundle: [BUG] Bus Error > ruby 1.8.6 (2007-09-24) [i686-darwin] -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel
[Fink-devel] Fwd: [Fink-beginners] Ruby18 build problem
Forwarding on to fink-devel and the maintainer: In summary: ruby18 doesn't build on clean systems on 10.5.2--we're not sure about 10.4 , in the absence of reports from that OS version. In addition to the build logs, I've posted build directories at that location, too, for successful (dirty) and unsuccessful (clean) builds. Because it built on a system with a bunch of stuff installed, I'm assuming that there's a missing BuildDepend. Begin forwarded message: From: Alexander Hansen <[EMAIL PROTECTED]> Date: April 13, 2008 8:55:34 PM EDT To: Michael Hund <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: [Fink-beginners] Ruby18 build problem Re: Problems installing kexi (ccing John since he had the same problem) I've reproduced the failure by building in a clean environment. It appears that there is a missing build dependency, but I'm not sure what it is. I've posted build logs here: http://akhmac.blogdns.net/~hansen/finklogs/ruby_test/ On Apr 13, 2008, at 8:32 PM, Michael Hund wrote: Alexander, No compiler except the Apple XCode 3.0, afaik. Regards, Michael Hund Alexander Hansen wrote: On Apr 13, 2008, at 7:01 AM, Michael Hund wrote: I am trying to install kexi. I'm doing this on a MacBook Pro, Intel Core Fuo 2.2, OS X 10.5.4, with XCode 3.0. Fink seems to be working well, I'm a new user. I asked fink to install kexi, and several hundred dependencies, and some hours later, I got the following: Generating RI... /sw/src/fink.build/ruby18-1.8.6-p111-1/ruby-1.8.6-p111/.ext/i686- darwin/stringio.bundle: [BUG] Bus Error ruby 1.8.6 (2007-09-24) [i686-darwin] - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel