These are rough notes not doc. YMMV

To build the first manifests we need some rPath tools... rmake, xobj, 
rpath-xmllib, mirrorball plus to fill out the os in the chroot.


Running make for each of these packages requires a few packages so inside the 
chroot env you want to run the following.

For each chroot do the following.

mkdir $(arch)

cd $(arch)


Install xobj

# Requires ant
# Hacking ant out for now...

#sudo yum install ant

hg clone https://bitbucket.org/rpathsync/xobj



cat > remove_ant.patch << EOF
--- Makefile.orig       2014-02-05 09:11:45.111786679 -0500
+++ Makefile    2014-02-05 09:12:08.476855390 -0500
@@ -15,7 +15,7 @@
 #


-SUBDIRS = py as3
+SUBDIRS = py


 build: default-build

EOF

cd xobj

patch -p0 < ../remove_ant.patch

make

# Removing ant solves the following errors. We only need py deps for now

cd ..

Install rpath-xmllib

hg clone https://bitbucket.org/rpathsync/rpath-xmllib

cd rpath-xmllib

make

cd ..

Install rmake
# requires a few pkgs

sudo yum install python-epdb
sudo yum install libcap-devel python-twisted-names  python-twisted-lore  
python-twisted-web python-twisted-words python-twisted  python-twisted-core 
python-twisted-news python-twisted-conch python-twisted-mail 
python-twisted-runner

hg clone https://bitbucket.org/rpathsync/rmake-2

cd rmake-2

x86_64 lib64 --

CFLAGS="-O2 -g -D_FORTIFY_SOURCE=2 -fstack-protector" CXXFLAGS="-O2 -g 
-D_FORTIFY_SOURCE=2 -fstack-protector " CPPFLAGS="" CLASSPATH=""  LDFLAGS="-g 
-O1 " CC=gcc CXX=g++  make    libdir=/usr/lib64 initdir=/etc/rc.d/init.d

i686 lib --

CFLAGS="-O2 -g -D_FORTIFY_SOURCE=2 -fstack-protector" CXXFLAGS="-O2 -g 
-D_FORTIFY_SOURCE=2 -fstack-protector " CPPFLAGS="" CLASSPATH=""  LDFLAGS="-g 
-O1 " CC=gcc CXX=g++  make    libdir=/usr/lib initdir=/etc/rc.d/init.d

cd ..

ln -sf rmake-2 rmake

create plugin dirs


mkdir -p ~/.rmake/plugins.d

cp ~/x86_64/rmake/rmake_plugins/{monitory.py, multinode_server} 
~/.rmake/plugins.d/

find ~/.rmake/plugins.d/ -name "Makefile" -exec rm {} \;



Install Mirrorball

sudo yum install rpm-libs rpm-python

# and a quick hack so rpmver works.
i686 lib --

cd /usr/lib

sudo ln -sf librpm.so.3.2.0 /usr/lib/librpm.so

x86_64 lib64 --

cd /usr/lib64

sudo ln -sf librpm.so.3.2.0 /usr/lib64/librpm.so

cd -

hg clone https://bitbucket.org/rpathsync/mirrorball

cd mirrorball

make


mkdir -p config

if one exists in x86_64
#ln -sf ~/x86_64/mirrorball/config .

Throws some errors... because the make files are missing. I should fix this.

Conary needs to be built in each environment so we need arch specific versions

mkdir -p $(arch)

cd $(arch)

hg clone https://bitbucket.org/rpathsync/conary

cd conary

make clean
make

cp -a ./config/arch ~/.conary/
cp -a ./config/macros ~/.conary/
cp -a ./config/components ~/.conary/
cp -a ./config/use ~/.conary/


find ~/.conary/ -name Makefile -exec rm {} \;

cd ../conary-policy

mkdir ~/.conary
HACK the install path to be .conary

make install

PYTHONPATH=$PYTHONPATH:/home/bsmith/x86_64/conary:/home/bsmith/hg/rmake:/usr/lib64/python2.7:/home/bsmith/hg/xobj/py:/home/bsmith/hg/rpath-xmllib
 ./genmanifest f20s make


hg clone http://bitbucket.org/rpathsync/conary-policy

cd conary-policy

vi Makefile


VERSION=1.3
NAMEVER=conary-policy-$(VERSION)
DESTDIR=~/
POLICYDIR=.conary/policy/


make install
mkdir -p ~/.conary/policy/
install -m 644 policy/*.py ~/.conary/policy/

--

Brett C. Smith
[email protected]
Sr Software Developer
Platform Deployment Technologies
(919)531-6635  -- x16635
_______________________________________________
Foresight-devel mailing list
[email protected]
https://lists.foresightlinux.org/mailman/listinfo/foresight-devel

Reply via email to