Changes between Version 17 and Version 18 of WikiStart


Ignore:
Timestamp:
Sep 5, 2007, 3:47:27 PM (13 years ago)
Author:
Bruno Cornec
Comment:

Document work on build2pkg (begining)

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v17 v18  
    9696# Hash of default package/package directory
    9797#
    98 defpkgdir system-designer = SystemDesigner
     98defpkgdir systemdesigner = SystemDesigner
    9999
    100100# Hash of additional package/package directory
    101101#
    102 extpkgdir system-designer-docs = docs
    103 extpkgdir system-designer-fedora = SystemDesigner-Fedora
     102extpkgdir systemdesigner-docs = docs
     103extpkgdir systemdesigner-fedora = SystemDesigner-Fedora
    104104
    105105# Hash of valid version names
     
    111111# Files are mentioned relatively to pbroot
    112112#
    113 filteredfiles system-designer =
    114 filteredfiles system-designer-docs =
     113filteredfiles systemdesigner =
     114filteredfiles systemdesigner-docs =
    115115}}}
    116116
    117 I inform pb that I will produce packages with a verion-tag of devel-1, that no local package should have a different version than the project version (pkgver/pkgtag), that my default package will be system-designer (pb will work on it by default all the time) and that additional packages it may deal with are system-designer-docs and system-designer-fedora. In addition to standard version with numbers, pb will accpet the version devel and stable. And finally, I give to the name of all files (per package) that it will have to filter to produce the packages - more on that later on.
     117I inform pb that I will produce packages with a verion-tag of devel-1, that no local package should have a different version than the project version (pkgver/pkgtag), that my default package will be systemdesigner (pb will work on it by default all the time) and that additional packages it may deal with are systemdesigner-docs and systemdesigner-fedora. In addition to standard version with numbers, pb will accpet the version devel and stable. And finally, I give to the name of all files (per package) that it will have to filter to produce the packages - more on that later on.
    118118
    119119With that minimal configuration, you may begin to test project-builder. Try to produce a compressed tar file of your project.
     
    137137Project linuxcoe
    138138Action: cms2build
    139 Packages: system-designer
     139Packages: systemdesigner
    140140
    141 Management of system-designer devel-1 (rev CVS)
     141Management of systemdesigner devel-1 (rev CVS)
    142142Exporting /users/bruno/LinuxCOE/cvs/SystemDesigner from CVS... OK
    143143Extracting log info from CVS... OK
    144144Build files generated for
    145145No Build files found for mandriva-2007.1
    146 Creating system-designer tar files compressed... OK
    147 Under /users/bruno/LinuxCOE/cvs/delivery/system-designer-devel.tar.gz
     146Creating systemdesigner tar files compressed... OK
     147Under /users/bruno/LinuxCOE/cvs/delivery/systemdesigner-devel.tar.gz
    148148}}}
    149149
    150 So it creates for you the right tar file at the right place. But it warns you that no build file was found for your project. Normal we haven't created one yet ;-)
     150So it creates for you the right tar file at the right place. But it warns you that no build file was found for your project. Normal we haven't created one yet ;-) It's our next step.
    151151
     152You'll first need to create the infrastructure needed to host the information for building packages:
     153{{{
     154$ mkdir -p pbconf/systemdesigner/rpm
     155$ mkdir -p pbconf/systemdesigner/pbfilter
     156}}}
     157
     158then thanks to the work done by Louis Bouchard to package LinuxCOE, you can take the spec file he created and adapt it to suit pb.
     159{{{
     160$ cat pbconf/systemdesigner/rpm/systemdesigner.spec
     161}}}
    152162
    153163== Concerning trac ==