Difference: BuildWMSOnSL6FromScratchGITWorkarea (11 vs. 12)

Revision 122012-10-12 - AlviseDorigo

Line: 1 to 1
 

Tutorial on WMS build and debian package creation

This tutorial assumes that you have GIT access to WMS repository https://github.com/MarcoCecchi/org.glite.wms. It will help you to build all the component that you get when cloning the WMS GIT repository without the etics's build automation tools.
Line: 89 to 90
 git clone https://github.com/MarcoCecchi/org.glite.wms.git

cd classad-utils

Changed:
<
<
cmake . -DCMAKE_INSTALL_PREFIX=$HOME/WORKAREA/stage -Dprefix=$HOME/WORKAREA/stage/usr -Dexec_prefix=$HOME/WORKAREA/stage/usr -Dlibdir=$HOME/WORKAREA/stage/usr/lib -Dincludedir=$HOME/WORKAREA/stage/usr/include
>
>
cmake . -DCMAKE_INSTALL_PREFIX=$HOME/WORKAREA/stage -Dprefix=$HOME/WORKAREA/stage/usr -Dexec_prefix=$HOME/WORKAREA/stage/usr -Dlibdir=$HOME/WORKAREA/stage/usr/lib -Dincludedir=$HOME/WORKAREA/stage/usr/include -DPVER=$VERSION
 make install cd ..
Added:
>
>
 cd jobman-exception
Changed:
<
<
cmake . -DCMAKE_INSTALL_PREFIX=$HOME/WORKAREA/stage -Dprefix=$HOME/WORKAREA/stage/usr -Dexec_prefix=$HOME/WORKAREA/stage/usr -Dlibdir=$HOME/WORKAREA/stage/usr/lib -Dincludedir=$HOME/WORKAREA/stage/usr/include
>
>
cmake . -DCMAKE_INSTALL_PREFIX=$HOME/WORKAREA/stage -Dprefix=$HOME/WORKAREA/stage/usr -Dexec_prefix=$HOME/WORKAREA/stage/usr -Dlibdir=$HOME/WORKAREA/stage/usr/lib -Dincludedir=$HOME/WORKAREA/stage/usr/include -DPVER=$VERSION
 make install cd ..
Added:
>
>
 cd org.glite.wms/org.glite.wms.common
Changed:
<
<
cmake . -DPREFIX=$HOME/WORKAREA/stage/usr -DINSTALL_BUILD_DEV=$HOME/WORKAREA/debian/build_dev/org.glite.wms.common/usr -DINSTALL_BUILD=$HOME/WORKAREA/debian/build_nodev/org.glite.wms.common/usr -DOFFICIAL_INSTALL_PREFIX=/usr
>
>
cmake . -DPREFIX=$HOME/WORKAREA/stage/usr -DINSTALL_BUILD_DEV=$HOME/WORKAREA/debian/build_dev/org.glite.wms.common/usr -DINSTALL_BUILD=$HOME/WORKAREA/debian/build_nodev/org.glite.wms.common/usr -DOFFICIAL_INSTALL_PREFIX=/usr -DPVER=$VERSION
 make install
Deleted:
<
<
 

In order to make sure that everything worked try to execute an executable provided by org.glite.wms.common:

Line: 111 to 113
 It doesn't matter the error output, this is just to verify that the exe is correctly compiled and linked. TBC
Added:
>
>

Produce the debian packages

The control and .install files needed to produce the .deb packages are already there, in the org.glite.wms.common/debian directory. To produce the debian packages it's just matter of change dir on the directories specified when cmake has been invoked (look above for the INSTALL_BUILD and INSTALL_BUILD_DEV macros) and execute the .deb build command. Then do the following:
cd $HOME/WORKAREA/org.glite.wms/org.glite.wms.common

mkdir -p $HOME/WORKAREA/debian/build_nodev/org.glite.wms.common/DEBIAN
cp debian/deb-control-file.txt $HOME/WORKAREA/debian/build_nodev/org.glite.wms.common/DEBIAN/control
cp debian/libglite-wms-common.install $HOME/WORKAREA/debian/build_nodev/org.glite.wms.common/DEBIAN/

mkdir -p $HOME/WORKAREA/debian/build_dev/org.glite.wms.common/DEBIAN
cp debian/deb-control-file-dev.txt $HOME/WORKAREA/debian/build_dev/org.glite.wms.common/DEBIAN/control
cp debian/libglite-wms-common-dev.install $HOME/WORKAREA/debian/build_dev/org.glite.wms.common/DEBIAN/

dpkg -b $HOME/WORKAREA/debian/build_nodev/org.glite.wms.common $HOME/WORKAREA/debian/build_nodev/org.glite.wms.common/glite-wms-common.deb
dpkg -b $HOME/WORKAREA/debian/build_dev/org.glite.wms.common $HOME/WORKAREA/debian/build_dev/org.glite.wms.common/glite-wms-common-dev.deb

 -- AlviseDorigo - 2012-10-04
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback