OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Michael Schloh
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-doc                      Date:   03-Dec-2002 18:50:29
  Branch: HEAD                             Handle: 2002120317502900

  Modified files:
    openpkg-doc/handbook    00TODO

  Log:
    Remember user questions about bootstrapping with no C compiler.

  Summary:
    Revision    Changes     Path
    1.18        +47 -0      openpkg-doc/handbook/00TODO
  ____________________________________________________________________________

  Index: openpkg-doc/handbook/00TODO
  ============================================================
  $ cvs diff -u -r1.17 -r1.18 00TODO
  --- openpkg-doc/handbook/00TODO       28 Nov 2002 20:24:55 -0000      1.17
  +++ openpkg-doc/handbook/00TODO       3 Dec 2002 17:50:29 -0000       1.18
  @@ -94,3 +94,50 @@
   generates a Makefile which allows you to build the corresponding binary
   RPMs.
   
  +Solaris 8: Bootstrap from source with gcc and NO Sun cc?
  +> [...]                                                                             
                                    
  +>  %l_cc                    %{l_tool_locate cc}                                     
                                    
  +> to:                                                                               
                                    
  +>  %l_cc                    /usr/local/bin/gcc                                      
                                    
  +>                                                                                   
                                    
  +> I was then able to compile make, then gcc-3.2 from src.rpm files at               
                                    
  +> ftp.openpkg.org. After that, I reverted the above change in rpmmacros to          
                                    
  +> the original, and I was able to build rsync (libtool picked up                    
                                    
  +> /usr/local/opkg/bin/cc, which seems to be a hard link to the same                 
                                    
  +> binary as /usr/local/opkg/bin/gcc).                                               
                                    
  +>                                                                                   
                                    
  +> So,                                                                               
                                    
  +>       - is there a better way to do this?                                         
                                    
  +>       - Could I have simply symlink'd /usr/local/opkg/bin/cc to                   
                                    
  +>         /usr/local/bin/gcc ?                                                      
                                    
  +>       - is there a 'from source' tutorial or other docs that I should've          
                                    
  +>         read or should read?                                                      
                                    
  +
  +The official way is to use:
  +  
  +  $ rpm --rebuild --define "with_cc /usr/local/bin/gcc" rsync-*.src.rpm
  +
  +  This on-the-fly overrites the l_cc variable. I think we should add this
  +  to the FAQ and/or the handbook because it certainly is the main pitfall
  +  in bootstrapping on Solaris.
  +
  +What I did (although I temporarily defined l_cc in rpmmacros until I got
  +gcc built, it would be similar with the command line opts), was:
  +  
  +- built make-*.src.rpm (because gcc-*src.rpm depends on it) using
  +/usr/local/bin/gcc
  +  
  +- built gcc-3.2*.src.rpm using /usr/local/bin/gcc
  +  
  +- installed the resulting gcc-3.2*.rpm
  +  
  +- built rsync-*src.rpm using the newly installed openpkg gcc-3.2 (this was
  +just to test if the new gcc worked)
  +  
  +- Now, I've rebuilt gcc-3.2-*.src.rpm using the openpkg gcc-3.2, and I
  +plan on installing that (after uninstalling gcc-*.rpm).
  +
  +- after that, I plan on rebuilding rsync and various other src RPMs
  +(probably make as well, though I might have to force it because of the gcc
  +dependency)
  +
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to