Subject: Re: problems with pkgsrc ...
To: Malcolm Herbert <mjch@mail.com>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 02/25/2002 03:30:06
On Mon, 25 Feb 2002, Malcolm Herbert wrote:

> I've just installed a 1.5.2 machine and unpacked and installed the
> pkgsrc tree (an oldish one). In order to make it current I then supped
> it (which took about 7 hours) ...

There's no advantage to doing that. Because the "/usr/sup" directories
were empty, "sup" just downloads everything, as if there were no
"pkgsrc" there. For the same reason, "sup" can't know to delete
removed files.

If you had used "anoncvs", on the other hand, the state is in the
"CVS" directories in the tarball, and "cvs" is smart enough to only
download the difference between the old file and the new, so it would
have gone much quicker, and you would have ended up with a correct
"pkgsrc".

> anyway, have been trying to make packages, but I'm a little concerned
> by the fact that the machine doesn't seem to be appling any patches.
>
> I tried to make samba and its dependancies and got messages like the
> following:
>
> |===> Patching for readline-4.2
> |===> Applying NetBSD patches for readline-4.2
> |**************************************
> |Ignoring unknown patch file: /usr/pkgsrc/devel/readline/patches/patch-aa
> |**************************************
> |**************************************
> |Ignoring unknown patch file: /usr/pkgsrc/devel/readline/patches/patch-ad
> |**************************************
> |**************************************
> |Ignoring unknown patch file: /usr/pkgsrc/devel/readline/patches/patch-ah
> |**************************************
> |**************************************
> |Ignoring unknown patch file: /usr/pkgsrc/devel/readline/patches/patch-ai
> |**************************************
> |**************************************
> |Ignoring unknown patch file: /usr/pkgsrc/devel/readline/patches/patch-ak
> |**************************************
>
> ... looking back over packages I've made, none of them appear to
> have been patched at all ...

The good news is, the packages you have built are probably fine.
"readline", for example, currently only has one patch, patch-ae, so
all those others that should have been deleted are being ignored,
courtesy of the checksums in the "distinfo" files. What you did is
only one of the ways to get "pkgsrc" wrong -- the more common is to
leave out the "delete" option with "sup" -- but it's all been done
before, and that's the reason the check is there.

I think the easiest way to fix the "sup" would be to remove every file
from "pkgsrc" that isn't in "sup"'s list (easier than starting all
over). I forget the exact name of the file, but it's under "/usr/sup".
[I'll leave the details as an exercise -- be careful not to delete
your downloaded distfiles.]

If you decide to go with "anoncvs", the easiest thing would probably
be to delete everything and unpack the tarball again, first, taking
care to save your distfiles.

Frederick