[DynInst_API:] Going from nothing to Dyninst testing RPMS


Date: Fri, 04 May 2012 15:41:17 -0400
From: William Cohen <wcohen@xxxxxxxxxx>
Subject: [DynInst_API:] Going from nothing to Dyninst testing RPMS
Hi All,

I have been working on improving the RPM packaging of dyninst.  To
make things a bit easier to test out the upstream sources and get
feedback on the patches this work is being posted on public git
repositories. Some fixes in the packagers */*/spec branches are need
to create the rpms; the dyninst git repo master branch will probably
not work at this time.

Below are steps to go from no sources to testing RPMs on Fedora 16:


export DYNINSTSRC=/tmp/packaging
mkdir $DYNINSTSRC; cd $DYNINSTSRC
git clone ssh://sourceware.org/git/dyninstfans.git dyninst
pushd dyninst; git checkout wcohen/dyninst/spec; popd
# used the --reference option below to speed up the creation
git clone ssh://sourceware.org/git/dyninstfans.git packagers --reference ./dyninst
pushd packagers; git checkout wcohen/packagers/spec; popd
git clone http://git.dyninst.org/docs.git
git clone http://git.dyninst.org/scripts.git
cd packagers/rpm
./maketar.sh $DYINSTSRC ~/rpmbuild/SOURCES
#you may need to tweak version in start of spec file to match generated tarball
rpmbuild -ba dyninst.spec
# src rpm should be in ~/rpmbuild/SRPMS
# binary RPMS should be in ~/rpmbuild/RPMS/<arch>


There are still things that need to be corrected, for
example the tarball files do not include README or LICENSE files. However,
it should make it easier to test things as RPMs.

-Will
[← Prev in Thread] Current Thread [Next in Thread→]