Subject: Re: 1.6.2 -> 2.0
To: Brian <bmcewen@comcast.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 11/27/2004 22:13:49
On Sat, 27 Nov 2004, Brian 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?

Maybe you can show the lines you are talking about. I have probably used
pkg_tarup over a thousand times to create packages that have been reused.
It never deleted any files nor any packages for me.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/