HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Version 15 and Version 16 of PortingTips


Ignore:
Timestamp:
04/28/09 11:08:22 (6 years ago)
Author:
mmadia
Comment:

added diff_zip, expounded archive nomenclature.

Legend:

Unmodified
Added
Removed
Modified
  • PortingTips

    v15 v16  
    5757Also note that doing so may, depending on the project, result in more dependencies but might be easier to handle, for instance when modifying {{{configure.in}}} or {{{Makefile.am}}} instead of an Autoconf-generated {{{configure}}} or Automake-generated {{{Makefile}}}. 
    5858 
    59 == Building to a clean folder and making a binary == 
     59== Preparing an archive for distribution == 
    6060 
    61 Many packages have an option to do a "make install", in many of those cases you can use:[[BR]] 
     61There are two methods for creating an archive for distribution, using DESTDIR and using diff_zip. [[BR]]   
     62[[BR]] 
     63For both situations, please use the following nomeclature as the <archivename>  : [[BR]] 
     64<packagename>-<version>-<gcc-version>-<os>-<date>.zip [[BR]] 
    6265{{{ 
     66  <packagename> = is the name of the software. 
     67  <version> =  the revision number of the actual software. 
     68  <gcc-version> = [ gcc2 | gcc4 ] 
     69  <os> = [ haiku | zeta | bone ] 
     70  <date> YYYY-MM-DD format and can be extracted by running `date +%Y-%m-%d` 
     71}}} 
     72[[BR]]  
     73DESTDIR is the preferred method : [[BR]] 
     74{{{ 
     75 mkdir /boot/foo 
    6376 make install DESTDIR=/boot/foo 
    6477 cd /boot/foo/boot 
    65  zip -ry9 packagename-x.x.x-gccX-haiku-YYYY-MM-DD.zip * 
     78 zip -r9y <archivename>.zip * 
    6679}}} 
    67 Where x.x.x is the rev of the package, and gccX is gcc2 or gcc4, haiku could also be beos or bone or zeta, YYYY is the 4 digit year, MM is the 2 digit month, DD is the 2 digit day (both zero padded). 
     80[[BR]] 
     81diff_zip is an alternate method : [[BR]] 
     82Some software packages do not support the use of DESTDIR. For these cases, diff_zip is your friend. It was added to Haiku's source tree in [http://lists.berlios.de/pipermail/haiku-commits/2008-April/007561.html revision 24849]. Once the newly compiled software is ready to install, diff_zip is run in a second Terminal session. diff_zip will patiently wait for you to install the software. After installation, return to the second Terminal session to inform diff_zip to archive the newly added files.  
     83{{{ 
     84  [terminal 1] make 
     85  [terminal 2] cd ~/upload 
     86  [terminal 2] diff_zip -r9y <archivename> -- <paths> 
     87  [terminal 1] make install 
     88  [terminal 2] #press enter to activate diff_zip 
     89}}} 
     90 
    6891 
    6992== Using CMake == 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/