Subject: Re: Differences between "etcupdate" and "postinstall"
To: Daniel Bolgheroni <dbolgheroni@unifei.edu.br>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: current-users
Date: 08/04/2004 09:59:58
On Wed, Aug 04, 2004 at 12:37:46AM +0000, Daniel Bolgheroni wrote:
> First of all, I chose to create some directories at / and after that,
> "etcupdate" told me /bin/cat differ from what I have in my $DESTDIR. So,
> I chose to install the new file, and then my script failed with all next
> files, because "etcupdate" uses "cat". So, I checked my new /bin/cat
> with "file" and saw it is dinamically linked, while another binaries not
> updated in the same directory are all statically linked.
> 
> How do I fix this?
	extract the new sets, starting with base.tgz, assuming your tar/pax
still works.  Otherwise, copy an old cat from elsewhere.

> Also, there is an error in "postinstall" script. "stat" is used in the
> script and it tries to use a parameter that does not exist (-q). I
> think this should be fixed.
	You're doing things in the wrong order.  see below.

> > On Tue, Aug 03, 2004 at 04:16:08PM +0000, Daniel Bolgheroni wrote:
> > > what's the differente between "etcupdate" and "postinstall"? I was
> > > wondering this because I was reading "Tracking NetBSD-current",
> > > section"Installing a current snapshot", and the autor explain I must
> > > update/etc before updating base utilities, and then he uses
	            ^^^^^^^^ just read this.  Where does it say this?
That is wrong.  I'm looking at http://www.netbsd.org/Documentation/current,
and it looks like each set of instructions says "install the sets" _then_ run
etcupdate.

> > > "postinstall"; after installing base.tgz, etc.tgz, etc. he uses
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
This is the important part.  Did you extract these first?

eric