Subject: Re: 1.6.2 -> 2.0
To: Richard Rauch <rkr@olib.org>
From: Brian <bmcewen@comcast.net>
List: netbsd-help
Date: 11/27/2004 17:05:00
On Saturday, November 27, 2004, at 02:56 PM, Richard Rauch wrote:

>> I didn't run it, but I looked at the script, and to my eyes, it just 
>> does some fancy stuff to determine file names and dependencies, 
>> deletes everything, then calls pkg_create.
>
> I can't see any "pkg_delete" or "make deinstall" in my copy.
>
> Maybe you were looking at some other pkgsrc tool?  Maybe you should
> look again?

the pkg_tarup script:

I see:

building a list of file names from the pkgsrc dependencies

issuing a rm command using those file names

calling pkg_create

pkg_create, we already know that it will NOT build packages if binaries 
are already present- it errors out and asks you to delete things first. 
  A couple of people confirmed this when I asked a few weeks ago (where 
are they now... :)   I don't see how a shell script can do much to 
change that.  At least, there are no flags that I saw in the man page 
for pkg_create that will let you do this, and noone mentioned such a 
flag when replying to my questions about this earlier.

Thus, I see that the parts of the installation that pkg_create checks 
for must be being deleted.

right?  What am I overlooking in the script?

Brian

-- 
... we parted each feeling
superior to the other and is not that
feeling after all one of the great
desiderata of social intercourse
-archy
_The Life and Times of Archy and Mehitabel_