running F15 programs on a RHEL 5.6 box

M A Young m.a.young at durham.ac.uk
Fri Apr 1 22:01:31 UTC 2011


On Fri, 1 Apr 2011, Andre Robatino wrote:

> I'm looking into the possibility of generating deltaisos directly on alt.fp.o,
> which runs RHEL 5.6, rather than downloading the ISOs, creating the disos, then
> uploading them. This would make it possible to post the disos much sooner as my
> connection is 3/768 DSL and most of the time involved is in the download/upload.
> In addition, alt.fp.o has 8 cores, so it would be possible to use 2 of them
> simultaneously. (The programs I need, makedeltaiso and applydeltaiso, are
> single-threaded.)
>
> The possibilities I'm aware of are either creating static executables or using a
> chroot environment (the first seems preferable, if possible). Can anyone give
> any pointers? Thanks.

You only need the liblzma bits to be static. I think the following should 
work

1. Install the F15 xz-5 source rpm and prepare it for building (rpmbuild 
-bp)
2. Go into the xz-5 build directory and run make
3. Install the F15 deltarpm source rpm and prepare it for building 
(rpmbuild -bp)
4. Go into the deltarpm build directory and edit the Makefile to use the 
lzma headers and archive you just built - with something like the patch 
below
5. make
6. Test the applydeltaiao and makdeltaiso files to see if they work.

 	Michael Young

--- Makefile	2011-01-21 09:45:12.000000000 +0000
+++ Makefile	2011-04-01 22:41:03.000000000 +0100
@@ -5,12 +5,12 @@
  rpmdumpheader=$(bindir)/rpmdumpheader
  zlibdir=zlib-1.2.2.f-rsyncable
  zlibbundled=$(zlibdir)/libz.a
-zlibldflags=$(zlibbundled)
-zlibcppflags=-I$(zlibdir)
+zlibldflags=$(zlibbundled) ../xz-5.0.1/src/liblzma/.libs/liblzma.a
+zlibcppflags=-I$(zlibdir) -I../xz-5.0.1/src/liblzma/api/
  pylibprefix=/
  CFLAGS = -fPIC -O2 -Wall -g
  CPPFLAGS = -fPIC -DDELTARPM_64BIT -DBSDIFF_NO_SUF -DRPMDUMPHEADER=\"$(rpmdumpheader)\" $(zlibcppflags)
-LDLIBS = -lbz2 $(zlibldflags) -llzma
+LDLIBS = -lbz2 $(zlibldflags)
  LDFLAGS =

  all: makedeltarpm applydeltarpm rpmdumpheader makedeltaiso applydeltaiso combinedeltarpm fragiso


More information about the test mailing list