#12707: Improve packaging of the git spkg
------------------------------------------------------------+---------------
       Reporter:  leif                                      |         Owner:  
kini          
           Type:  enhancement                               |        Status:  
needs_review  
       Priority:  minor                                     |     Milestone:  
sage-5.0      
      Component:  optional packages                         |    Resolution:    
            
       Keywords:  SCM VCS RCS distributed revision control  |   Work issues:    
            
Report Upstream:  N/A                                       |     Reviewers:  
Leif Leonhardy
        Authors:  Keshav Kini                               |     Merged in:    
            
   Dependencies:  #12705                                    |      Stopgaps:    
            
------------------------------------------------------------+---------------

Comment (by jhpalmieri):

 On sage.math, the Python path is hardcoded, as you noted in sage-devel. So
 this uses the system Python, and so fails to build for me.

 On OS X Lion with sage-5.0.beta13, I see this:
 {{{
     AR libgit.a
 /usr/bin/ranlib: file: libgit.a(gettext.o) has no symbols
     LINK git-daemon
     LINK git-fast-import
 ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for
 unsupported file format ld: warning: whichignoring is not the architecture
 file /opt/local/lib/libz.dylib, file was built for unsupported file format
 which is not the architecture being linked (x86_64)
 ld: warning: ignoring file /sw/lib/libiconv.dylib, file was built for
 unsupported file format which is not the architecture  being linked
 (x86_64)
 ld: warning: ignoring file /sw/lib/libiconv.dylib, file was built for
 unsupported file format which is not the architecture being linked
 (x86_64)
 ld: warning: ignoring file /opt/local/lib/libcrypto.dylib, file was built
 for unsupported file format which is not the architecture being linked
 (x86_64)
 Undefined symbols for architecture x86_64:
   "_crc32", referenced from:
       _check_pack_crc in libgit.a(pack-check.o)
       _sha1write in libgit.a(csum-file.o)
       _crc32_begin in libgit.a(csum-file.o)
      (maybe you meant: _crc32_end, _crc32_begin )
   "_SHA1_Init", referenced from:
       _write_sha1_file_prepare in libgit.a(sha1_file.obeing linked
 (x86_64)
 ld: warning: ignoring file /opt/local/lib/libcrypto.dylib, file was built
 for unsupported file format which is not the architecture)
       _write_loose_object in libgit.a(sha1_file.o)
       _verify_pack_index in libgit.a(pack-check.o)
       _verify_pack in libgit.a(pack-check.o)
       _deflate_to_pack.constprop.1 in libgit.a(bulk-checkin.o)
       being linked ( _sha1fd_throughput in libgit.a(csum-file.o)
       _write_idx_file in libgit.a(pack-write.o)
      x86_64)
 Undefined symbols for architecture  ...
   "_SHA1_Update", referenced from:
       _write_sha1_file_prepare inx86_64:
   "_SHA1_Init", referenced from:
     libgit.a(sha1_file.o)
       _write_loose_object in libgit.a(sha1_file.o)
    _store_object in fast-import.o
       _stream_blob in       _verify_pack_index in libgit.a(pack-check.o)
     fast-import.o
       _sha1fd_throughput in libgit.a(csum-file.o)
       _write_sha1_file_prepare in libgit.a(sha1_file.o)
       _write_loose_object in libgit.a(sha1_file.o)
       _read_index_from in libgit.a(read-cache.o)
       _write_index in libgit.a(read-cache.o  _verify_pack in libgit.a
 (pack-check.o)
       _deflate_to_pack.constprop.1 in libgit.a(bulk-checkin.o)
       _sha1flush in libgit.a()
       ...
   "_SHA1_Update", referenced from:
       _store_object in fast-import.o
       _stream_blob in fast-import.o
       _sha1flush in libgit.a(csum-file.o)
       _sha1write in libgit.a(csum-file.o)
  csum-file.o)
          _write_sha1_file_prepare  _sha1write in libgit.a(csum-file.o)
       ...
   "_SHA1_Final", referenced from:in libgit.a(sha1_file.o)
       _write_loose_object in libgit.a(sha1_file.o)
       _ce_write in libgit.a(read-cache.o)
       ...
   "_SHA1_Final", referenced from:
       _store_object in fast-import.o
       _stream_blob in fast-import.o
       _sha1close in libgit.a(csum
       _write_sha1_file_prepare in libgit.a(sha1_file.o)
       _write_loose_object in libgit.a(sha1_file.o)
       _verify_pack_index in libgit.a(-file.o)
       _write_sha1_file_prepare in libgit.a(sha1_file.o)
       _write_loose_object in libgit.a(sha1_file.o)
       _read_index_from in libgit.apack-check.o)
       _verify_pack in libgit.a(pack-check.o)(read-cache.o)
       _write_index in libgit.a(read-cache.o)

          ...
   "_crc32", referenced from:
       _sha1write in libgit.a(csum-file.o)
       _crc32_begin in libgit.a(csum-file.o)
       _check_pack_crc in libgit.a( pack
 -check.o_deflate_to_pack.constprop.1 in libgit.a(bulk-checkin.o)
       _sha1close in libgit.a(csum-file.o)
       _write_idx_file in libgit.a(pack-)
      (maybe you meant: _crc32_end, _crc32_begin )
   "_libiconv_open", referenced from:
       _reencode_string in libgit.awrite.o(utf8.o)
   "_libiconv", referenced from:
       _reencode_string in libgit.a(utf8.o)
   "_libiconv_close", referenced from:
       _reencode_string in libgit.a(utf8.o)
   "_inflateInit_", referenced from:
      )
       . _git_inflate_init in libgit.a(zlib.o)
   "_inflateInit2_", referenced from:
       ..
   "_libiconv_open", referenced from:
       _reencode_string in libgit.a(utf8.o)
   "_libiconv", referenced from:
       _reencode_string in libgit.a(utf8.o)
   "_libiconv_close", referenced from:
       _reencode_string in libgit.a(utf8.o)
   "_inflateInit_", referenced from:
       _git_inflate_init in libgit.a(zlib.o_git_inflate_init_gzip_only in
 libgit.a(zlib.o)
   "_inflateEnd", referenced from:
       _git_inflate_end in libgit.a(zlib.o)
   "_inflate", referenced from:
       _git_inflate in libgit.a(zlib.o)
   "_inflateInit2_", referenced from:
       _git_inflate_init_gzip_only in libgit.a(zlib.o)
   "_inflateEnd", referenced from:
   )
      (maybe you meant: _git_inflate, _git_inflate_init_gzip_only ,
 _git_inflate_init , _git_inflate_end )
   "_deflateBound", referenced from:
       _git_deflate_bound in libgit.a(zlib.o)
   "_deflateInit_", referenced from:
       _git_deflate_init in libgit.a(zlib.o)
   "_deflateInit2_", referenced from:
       _git_inflate_end in    _git_deflate_init_gzip in libgit.a(zlib.o)
   "_deflateEnd", referenced from:
       _git_deflate_abort in libgit.a(zlib.o)
       _git_deflate_end_gently in libgit.a(zlib.o)
   "_deflate", referenced from:
       _git_deflate libgit.a(zlib.o)
   "_inflate", referenced from:
    in libgit.a(zlib.o)
      (maybe you meant: _git_deflate_end_gently    _git_inflate in
 libgit.a(zlib.o)
      (maybe , you_git_deflate , _git_deflate_bound , _git_deflate_end ,
 _git_deflate_abort , _git_deflate_init_gzip , _git_deflate_init )
 ld: symbol(s) not found for architecture x86_64
  meant: _git_inflate, _git_inflate_init_gzip_only , _git_inflate_init ,
 _git_inflate_end )
   "_deflateBound", referenced from:
       _git_deflate_bound in libgit.a(zlib.o)
   "collect2: ld returned 1 exit status
 _deflateInit_", referenced from:
       _git_deflate_init in libgit.a(zlib.o)
   "_deflateInit2_", referenced from:
       _git_deflate_init_gzip in libgit.a(zlib.o)
   "_deflateEnd", referenced from:
       _git_deflate_abort in libgit.a(zlib.o)
       _git_deflate_end_gently in libgit.a(zlib.o)
   "_deflate", referenced from:
       _git_deflate in libgit.a(zlib.o)
      (maybe you meant: _git_deflate_end_gently, _git_deflate ,
 _git_deflate_bound , _git_deflate_end , _git_deflate_abort ,
 _git_deflate_init_gzip , _git_deflate_init )
 ld: symbol(s) not found for architecture x86_64
 collect2: ld returned 1 exit status
 make: *** [git-fast-import] Error 1
 make: *** Waiting for unfinished jobs....
 make: *** [git-daemon] Error 1
 Error building git.
 }}}
 I don't know why it's picking up files in /opt and /sw; I don't reference
 those directories in any environment variables. Oh, according to the
 Makefile, it looks like we should set `NO_FINK` and `NO_DARWIN_PORTS`, at
 least on Darwin. Putting `export NO_FINK=yes` (and similar for
 `NO_DARWIN_PORTS`) in spkg-install fixes the installation on this machine.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12707#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to