NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Switching to another pkgsrc repository



    Date:        Sun, 5 May 2019 18:09:58 -0400
    From:        Bob Bernstein <poobah%ruptured-duck.com@localhost>
    Message-ID:  <20190505220958.GB15194@debian.localdomain>

  | How much trouble am I in, and what is required to pull 
  | this off?

No real trouble, and it is just a nuisance to fix.

All the CVS/Root files in ytour checked out tree need to have
the name changed.

Fortunately, they will all be identical, so the easy way is to
change one, probably the one at the top of the tree (pkgsrc/CVS/Root)
and then

	cd pkgsrc
	find [a-z]* -path '*/CVS/Root' -exec ln -f CVS/Root {} \;

or something similar.   (the [a-z]* is to aoid find looking in CVS itself.

Once you have all the files linked together all you need to do in the
furtre to change is
	echo newstuff > CVS/Root
Be careful using an editor to do this, some of them don't overwrite
the original file.   Also beware of new CVS/Root files that might be
created by cvs update operations which add new packages, or new dirs
inside some packages (adding a patches directory, for example) as those
ones won't be linked.

You could also just use cp instead of ln, and forget about having links,
and use the same method if you ever want to update again later (less likely
to go wrong that way.)

kre




Home | Main Index | Thread Index | Old Index