patching a package, checksums

From: Marc (marc.glisse_at_gmail.com)
Date: 11/26/04


Date: Fri, 26 Nov 2004 22:12:47 +0000 (UTC)

After patching a package, what is the easiest way to update the pkgmap
file to have it reflect the new checksums?

Here is the context. I want to use blastwave packages on a machine where
I am not root. I am installing the packages in /tmp/csw (symlink to
somewhere in my home directory) instead of /opt/csw. I do a binary patch
of the .pkg file for that. Now at first I thought I had to install the
packages by hand: pkgtrans to turn the package into something usable,
then a script that reads pkgmap and installs whatever is necessary. But
then I realized that thanks to fakeroot I could actually use pkgadd (and
other similar tools). I actually use it with a -R option, of course.

But now pkgadd is not happy, because I cannot chown the files to root, as
the pkgmap file says. So I need to patch that file to make it use only my
login and my primary group. So the first question is whether there exists
an other way to tell pkgadd to forget about the chown and chgrp and just
keep my uid/gid.

Next, pkgadd complains because the checksums of the files it installed
are wrong (well of course, I patched them to replace /opt/csw by
/tmp/csw). Now the main question: is there an easy way to deal with that?
I looked into pkgmk, but it seems you cannot do something as easy as
using the old pkgmap file as a prototype file to generate an updated
pkgmap. By the way if there was a possibility to solve the other problem
during this step, that would be great.

If you can give me any tip, any pointer to the right documentation...



Relevant Pages

  • Re: Where is Phobos P430 QFE X1034A Driver
    ... The following packages are available: ... Installing Phobos P430 Adapter Driver for 32 bit PCI QuadPort ... devfsadm: driver failed to attach: pqfe ...
    (comp.sys.sun.admin)
  • Re: Why no R in Fedora (was Statistical Package (like Minitab) for Linux)
    ... > The fedora rpm provided at the CRAN site contains very few add-on ... > packages would provide a large amount of functionality. ... > Users can easily install.packageson top of this more stuff from CRAN. ... > I always seem to end up installing a few packages eg. lineno, ...
    (Fedora)
  • Re: Linux/Python Issues
    ... It doesn't suck if you're just installing one program, ... tool to retrieve packages, but then the developers got "feature envy" ... you've got to face the problem that your distribution isn't going to ...
    (comp.lang.python)
  • Re: Simple HowTo
    ... compile your own packages from source and not use the packages as ... hard disk before installing software. ... and security updates quite simply. ...
    (Fedora)
  • Re: Exportability of EDA industry from North America?
    ... > if a stock RedHat 9 system really does have so much trouble installing ... RedHat never uses /usr/local/lib for its libraries, ... > standard or similar to the upstream source packages. ... that you have created in your development of gEDA, ...
    (sci.electronics.cad)