Re: Re: the problem about the install of rpm-python?

Panu Matilainen <[email protected]> Fri, 16 Sep 2005 22:59:59 +0300
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
On Fri, 2005-09-16 at 10:33 -0400, Paul Nasrat wrote:
> On Fri, 2005-09-16 at 22:19 +0800, Xiaoting Hua wrote:
> > yeah, but i feel it's difficult to install createrepo in debian
> 
> It's just python!  The issue you have is lack of a modern RPM package
> availble in debian.
> 
> Debian policy doesn't like elfutils license.  
> 
> http://wiki.debian.net/?DFSGLicenses
> 
> RPM uses elfutils thus you won't see a recent version of RPM in debian
> itself.
> 
> There is nothing from stopping you doing one of the following:
> 
> 1) Creating a chroot of a RPM based distro - eg fedora
> 2) Packaging elfutils and a recent rpm for your personal use as debs
> 3) Choose to mirror from a master that has the repodata

4) Build those packages into your home directory if you don't happen to
have root access to the system, like in my case. 

To run the whopping 1265 lines of createrepo I ended up building quite a
bit of stuff (rpm build dependencies mostly), brief notes on what I had
to do below. Some of this stuff would be available as Debian packages
but since I have to way of getting packages installed on the host needed
to build my own. Oh and this is on Debian 3.0.

Oh and curiously, rpm build didn't seem to mind that elfutils was
missing.

	- Panu -

---

# grab sources someplace .. I used the FC4 versions from
# http://download.fedora.redhat.com/pub/fedora/linux/core/4/SRPMS/

export LD_LIBRARY_PATH=$HOME/lib

# No beecrypt..
# unpack beecrypt
./configure --prefix=$HOME --with-java=no --with-python=no
make && make install

# ..nor readline
# unpack readline
./configure --prefix=$HOME
make && make install

# .. nor neon
# unpack neon
./configure --prefix=$HOME --with-ssl --with-expat --enable-shared
make && make install

# .. nor sqlite, sigh
# unpack sqlite
./configure --prefix=$HOME --disable-tcl

# unpack rpm
# - Sarge has no selinux
./configure --prefix=$HOME --with-python=2.3 --without-selinux
--without-javaglue
make pyincdir=/usr/include/python2.3
make install

export PYTHONPATH=$HOME/lib/python2.3/site-packages
# unpack createrepo
# fix the python paths to 2.3
perl -pi -e "s:/python:/python2.3:g" *.py
# fix /usr/share reference
perl -pi -e "s:/usr/:$HOME/:g" bin/createrepo
make install prefix=$HOME

# Whoopii..
[gotcha]$ cat /etc/debian_version
3.0
[gotcha]$ createrepo .
5/5 - gl-117-1.3.1-1.i386.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata