X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C7A937.58B553BD@onstor-exch02.onstor.net>; Thu, 7 Jun 2007 12:09:17 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: cw_install makefile problem
Date: Thu, 7 Jun 2007 12:09:17 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E040F09B9@onstor-exch02.onstor.net>
In-Reply-To: <20070606220835.267a3e9a@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: cw_install makefile problem
Thread-Index: AceowetHG1xsVFv7TZuDx3ZSytT4xAAdV6RA
From: "Ken Renshaw" <ken.renshaw@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

No worries, it helped me figure out how things were put together anyway,
so it worked out.

Have a good one.

-Ken

-----Original Message-----
From: Andy Sharp=20
Sent: Wednesday, June 06, 2007 10:09 PM
To: Ken Renshaw
Cc: Larry Scheer
Subject: Re: cw_install makefile problem

It's just the makefile.  This should work fine for the short term.
Sorry!

a

On Wed, 6 Jun 2007 19:39:25 -0700 "Ken Renshaw"
<ken.renshaw@onstor.com> wrote:

> Here's the makefile block I currently have:
>=20
> # tar up release image using --numeric-owner to preserve GIDs
>         cd ${PATH_TO_RELEASE} && \
>         $(SUDO) tar --numeric-owner --create
> --file=3D../$(RELNAME).tar.gz --preserve-permissions --gzip . #
> PATH_TO_RELEASE is evidently only defined as relative to =
cwd=3Dnfx-tree
> cd ../../../.. $(SUDO) sed '/^DISTR_S=3D/cDISTR_S=3D'`ls -ls
> $(PATH_TO_RELEASE)/../$(RELNAME).tar.gz |\ awk '{print $$1}'`
> $(PATH_TO_TOOLS)/cw_install.in > \ /tmp/cw_install.sh && \
>         $(SUDO) sed -i '/^DISTR_N=3D/cDISTR_N=3D'$(RELNAME).tar.gz \
>                 /tmp/cw_install.sh && \
>         $(SUDO) sed -i '/^N_VERS=3D/cN_VERS=3D'$(VER) \
>                 /tmp/cw_install.sh && \
>         $(SUDO) sed -i '/^BUILD_TYPE=3D/cBUILD_TYPE=3D'$(VARIANT) \
>                 /tmp/cw_install.sh && \
>         $(SUDO) cp -f /tmp/cw_install.sh
> $(PATH_TO_RELEASE)/cw_install.sh && \ $(SUDO) chmod 744
> $(PATH_TO_RELEASE)/cw_install.sh && \ $(SUDO) chown root:root
> $(PATH_TO_RELEASE)/cw_install.sh && \ cd $(PATH_TO_RELEASE) && \
>         $(SUDO) gunzip ../$(RELNAME).tar.gz && \
>         $(SUDO) tar -rf ../$(RELNAME).tar cw_install.sh && \
>         $(SUDO) gzip ../$(RELNAME).tar
>=20
>=20
>=20
>=20
> -----Original Message-----
> From: Ken Renshaw
> Sent: Wed 6/6/2007 7:28 PM
> To: Andy Sharp; Larry Scheer
> Subject: RE: cw_install makefile problem
> =20
> Here's what I came up with, everything builds and the sed string
> insertions look okay.
>=20
> Snippet of make release output run as non-superuser:
> ----------------------------------------------------
>=20
> cd ./Build/ch/opt/Release && \
> /usr/bin/sudo tar --numeric-owner --create
> --file=3D../EverON-3.0.0.0.tar.gz --preserve-permissions --gzip . #
> PATH_TO_RELEASE is evidently only defined as relative to =
cwd=3Dnfx-tree
> cd ../../../.. /usr/bin/sudo sed '/^DISTR_S=3D/cDISTR_S=3D'`ls
> -ls ./Build/ch/opt/Release/../EverON-3.0.0.0.tar.gz |\ awk '{print
> $1}'` ./Tools/cw_install.in > \ /tmp/cw_install.sh && \
> /usr/bin/sudo sed -i '/^DISTR_N=3D/cDISTR_N=3D'EverON-3.0.0.0.tar.gz \
>         /tmp/cw_install.sh && \
> /usr/bin/sudo sed -i '/^N_VERS=3D/cN_VERS=3D'3.0.0.0 \
>         /tmp/cw_install.sh && \
> /usr/bin/sudo sed -i '/^BUILD_TYPE=3D/cBUILD_TYPE=3D'opt \
>         /tmp/cw_install.sh && \
> /usr/bin/sudo cp
> -f /tmp/cw_install.sh ./Build/ch/opt/Release/cw_install.sh &&
> \ /usr/bin/sudo chmod 744 ./Build/ch/opt/Release/cw_install.sh &&
> \ /usr/bin/sudo chown root:root ./Build/ch/opt/Release/cw_install.sh
> && \ cd ./Build/ch/opt/Release && \ /usr/bin/sudo
> gunzip ../EverON-3.0.0.0.tar.gz && \ /usr/bin/sudo tar
> -rf ../EverON-3.0.0.0.tar cw_install.sh && \ /usr/bin/sudo
> gzip ../EverON-3.0.0.0.tar [build@k2 nfx-tree]$
>=20
>=20
>=20
>=20
>=20
> -----Original Message-----
> From: Andy Sharp
> Sent: Wed 6/6/2007 7:26 PM
> To: Ken Renshaw; Larry Scheer
> Subject: Re: cw_install makefile problem
> =20
> Let me know if I need to check in this change like yesterday.  I can
> run back from dinner and check it in.
>=20
> 650-906-9448
>=20
>=20
> On Wed, 6 Jun 2007 15:38:07 -0700 "Ken Renshaw"
> <ken.renshaw@onstor.com> wrote:
>=20
> > Hey Andy, hope you're enjoying time off.=20
> >=20
> > I'm building DeLorean sub22 with the cw_install stuff, and make
> > release fails to run the steps....looks like the sed commands need
> > to be prefaced with /usr/bin/sudo. Were you perchance running make
> > release as root, and that's maybe why this didn't show up?=20
> >=20
> > I'm going to go ahead and try sudo make release and see if it builds
> > the cw_install.sh file correctly. Just FYI.
> >=20
> > Thanks, and have a good one.
> >=20
> > -Ken
> >=20
> > -----Original Message-----
> > From: Build Admin [mailto:build@localhost.localdomain]=20
> > Sent: Wednesday, June 06, 2007 3:30 PM
> > To: Ken Renshaw
> > Subject: cw_install makefile problem
> >=20
> > /usr/bin/sudo chown 0:0
> > ./Build/ch/opt/Release/usr/local/agile/conf/EverON-3.0.0.0.bom
> > cd ./Build/ch/opt/Release && \
> > /usr/bin/sudo chown 0:0 usr/local/agile/lib/*
> > cd ./Build/ch/opt/Release && \
> > /usr/bin/sudo tar --numeric-owner --create
> > --file=3D../EverON-3.0.0.0.tar.gz --preserve-permissions --gzip .
> > sed '/^DISTR_S=3D/cDISTR_S=3D'`ls -ls
> > ./Build/ch/opt/Release/../EverON-3.0.0.0.tar.gz |\
> > 	awk '{print $1}'` ./Tools/cw_install.in > \
> > 	./Build/ch/opt/Release/cw_install.sh
> > /bin/sh: line 1: ./Build/ch/opt/Release/cw_install.sh: Permission
> > denied make: *** [release] Error 1
>=20
>=20
