[MacPorts] #18409: zip-3.00: fails to build with ccache (Portfile patch included)

MacPorts noreply at macports.org
Fri Feb 6 23:17:11 PST 2009


#18409: zip-3.00: fails to build with ccache (Portfile patch included)
------------------------------------+---------------------------------------
 Reporter:  aetherknight@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:  Port Bugs                            
Component:  ports                   |     Version:  1.7.0                                
 Keywords:  zip                     |        Port:  zip                                  
------------------------------------+---------------------------------------
 when running {{{sudo port upgrade zip}}} to upgrade to zip 3.00, I get the
 following output:

 {{{
 --->  Fetching zip
 --->  Verifying checksum(s) for zip
 --->  Extracting zip
 --->  Configuring zip
 --->  Building zip
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zip/work/zip30"
 && nice -n 10 make generic -f unix/Makefile " returned error 2
 Command output: eval make -f unix/Makefile zips `cat flags`
 ccache -c -I. -DUNIX -O -DNO_PROTO -DNO_CONST -DNO_TIME_T -DNO_SIZE_T
 -DNO_OFF_T -DUIDGID_NOT_16BIT -DNO_RMDIR -DNO_STRCHR -DNO_STRRCHR
 -DNO_RENAME -DNO_MKTEMP -DNO_MKTIME -DNO_MKSTEMP -DZMEM -DNEED_MEMMOVE
 -DNEED_STRERROR -DNO_ERRNO -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H
 -DNO_VALLOC zip.c
 ccache: illegal option -- I
 Cleaned cache
 ccache, a compiler cache. Version 2.4
 Copyright Andrew Tridgell, 2002

 Usage:
         ccache [options]
         ccache compiler [compile options]
         compiler [compile options]    (via symbolic link)

 Options:
 -s                      show statistics summary
 -z                      zero statistics
 -c                      run a cache cleanup
 -C                      clear the cache completely
 -F <maxfiles>           set maximum files in cache
 -M <maxsize>            set maximum size of cache (use G, M or K)
 -h                      this help page
 -V                      print version number
 make[1]: *** [zip.o] Error 1
 make: *** [generic] Error 2

 Error: Unable to upgrade port: 1
 }}}

 I tracked this down to some missing quotes in the Portfile. Basically, a
 line of the Portfile did not put quotes around the CC variable, causing
 something to see only the first word of CC as being in the variable. See
 the attached patch for the change.

-- 
Ticket URL: <http://trac.macports.org/ticket/18409>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list