Changes between Version 4 and Version 5 of Bootstrapping
- Timestamp:
- Apr 11, 2020, 1:15:08 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Bootstrapping
v4 v5 11 11 * On the platform in use, you have the requisite tools to create a native package 12 12 13 In this example, lets assume you are using a Debian Lenny amd64 system (presumably before this becomes the stable Debian release)13 In this example, lets assume you are using a Debian amd64 system 14 14 15 15 == Setup == 16 16 17 17 * Certainly the easiest way to get started is to grab the nearest equivalent format already available for project-builder.org deliverables (so, continuing the example cited above, [ftp://ftp.project-builder.org/ grab] the lastest stable release source files): 18 * in the debian 4.0 subdirectories -- libprojectbuilder-perl_<version>.tar.gz and project-builder_<version>.tar.gz18 * in the debian x.0 subdirectories -- libprojectbuilder-perl_<version>.tar.gz and project-builder_<version>.tar.gz 19 19 * Since these were generated with project-builder.org (likely via the cms2build or beyond), you can safely assume that they contain not only the source code for project-builder.org, but also the necessary packaging information itself, for the selected platform 20 20 * In this example, one can extract the source files, enter the resulting directory, and run the typical packaging commands locally to generate installable packages … … 29 29 30 30 * for the user (which really should not be root) intending to use project-builder.org (and to build subsequent packages), you must create a simple configuration file 31 * create '''~/.pbrc ''' with at least the following contents ('''NOTE:''' ''yes, we should supply such a template with future releases''. In the mean time, have a look at this [http://trac.project-builder.org/browser/projects/pb/.pbrcexample])31 * create '''~/.pbrc.yml''' with at least the following contents ('''NOTE:''' ''yes, we should supply such a template with future releases''. In the mean time, have a look at this [http://trac.project-builder.org/browser/projects/pb/.pbrc.yml example]) 32 32 33 33 {{{ 34 34 # how to get project-builder.org source 35 pburl pb = svn://svn.project-builder.org/mondo/svn/pb 35 pburl: 36 pb: svn://svn.project-builder.org/mondo/svn/pb 36 37 37 38 # where to get the packaging templates 38 pbconfurl pb = svn://svn.project-builder.org/mondo/svn/pb/pbconf 39 pbconfurl: 40 pb: svn://svn.project-builder.org/mondo/svn/pb/pbconf 39 41 40 42 # local prefix for sandbox checkouts and local build artifacts 41 pbdefdir default = $ENV{'HOME'}/pb/projects 42 pbdefdir pb = $ENV{'HOME'} 43 pbconfdir pb = $ENV{'HOME'}/pb/pbconf 43 pbdefdir: 44 default: $ENV{'HOME'}/pb/projects 45 pbdefdir: 46 pb: $ENV{'HOME'} 47 pbconfdir: 48 pb: $ENV{'HOME'}/pb/pbconf 44 49 45 50 # location of Virtual Machine infrastructure 46 vmpath default = /home/qemu 51 vmpath: 52 default: /home/qemu 47 53 48 54 # location of Virtual Environment (chroot) infrastructure 49 vepath default = /home/mock 55 vepath: 56 default: /home/mock 50 57 }}} 51 58 52 ('''NOTE:''' ''the above examples will only work after anonymous svn access to project-builder.org is enabled'')53 54 59 * regardless of the type of virtualization you will later employ (lets assume Virtual Machines via qemu), in the directory of '''vmpath''' from the previous configuration file 55 * create '''.pbrc ''' with at least the following contents (NOTE: an upstream example is also provided for [http://trac.project-builder.org/browser/projects/qemu/.pbrc qemu/kvm] and [http://trac.project-builder.org/browser/projects/rinse/pbconf/devel/conf/.pbrc rinse])60 * create '''.pbrc.yml''' with at least the following contents (NOTE: an upstream example is also provided for [http://trac.project-builder.org/browser/projects/qemu/.pbrc.yml qemu/kvm] and [http://trac.project-builder.org/browser/pb/devel/rpmbootstrap/etc/.pbrc.yml docker]) 56 61 57 62 {{{ 58 63 # type of VM 59 vmtype default = qemu 64 vmtype: 65 default: qemu 60 66 61 67 # VM instance configuration 62 vmntp default = pool.ntp.org 63 vmhost default = localhost 64 vmlogin default = pb 65 vmport default = 2222 66 vmtmout default = 120 67 vmopt default = -m 384 -daemonize 68 vmsize default = 5G 68 vmntp: 69 default: pool.ntp.org 70 vmhost: 71 default: localhost 72 vmlogin: 73 default: pb 74 vmport: 75 default: 2222 76 vmtmout: 77 default: 120 78 vmopt: 79 default: -m 384 -daemonize 80 vmsize: 81 default: 5G 69 82 70 83 # a comma seperated list of all the desired tuples (distro-ver-arch) 71 vmlist default = mandriva-2008.1-i386,fedora-9-i386,rhel-2.1-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,opensuse-11.0-i386,sles-10-i386,gentoo-nover-i386,debian-4.0-i386,ubuntu-8.10-i386,debian-lenny-x86_64 84 vmlist: 85 default: mageia-7-x86_64,fedora-30-x86_64,rhel-4-i386,rhel-5-i386,opensuse-15-x86_64,sles-10-i386,gentoo-nover-i386,debian-4.0-i386,ubuntu-8.10-i386 72 86 }}} 73 87 … … 79 93 Okay, so with much anticipation, you are now ready to build new packages for your local host 80 94 81 * as the designated user (with the ~/.pbrc ) start slowly, grabbing CMS versions of project-builder.org and prepping the build95 * as the designated user (with the ~/.pbrc.yml) start slowly, grabbing CMS versions of project-builder.org and prepping the build 82 96 83 97 {{{