Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Building the components

Code Block
themeMidnight
1. Set the GOPATH & change to the source directory, e.g.
	$ export GOPATH=$HOME/webpa_modules/petasos/
	$ cd $HOME/webpa_modules/petasos/src/petasos


2. Resolve package dependencies using glide.
	$ glide install --strip-vendor


3. Build the component from source
	$ go build petasos


4. Create the package
	$ mkdir $HOME/rpmbuild
	$ ./build_rpm.sh --no-sign

5. Install the locally built webPA component package
e.g. $ cd /root/rpmbuild/RPMS/x86_64/
     $ rpm -Uvh petasos-0.1.1-87.el6.x86_64.rpm
Note

If running build_rpm.sh complains about following:

error: Macro %_releaseno has empty body
error: Macro %_releaseno has empty body

Then, modify the following in script

  • change build number to appropriate value
    • to get the latest build number:
      $ git tag -l|sort -V|grep -v alpha (select the latest version from list)
      e.g. BUILD_NUMBER=87
Note

If build_rpm.sh prompts for password:

  • modify the rpmbuild command to disable the signing option

    yes "" | rpmbuild -ba \
    --define "_signature gpg" \
    --define "_ver $release" \
    --define "_releaseno ${BUILD_NUMBER}" \
    --define "_fullver $new_release" \
    ${NAME}.spec