Oh... another comment.  You should echo the script version before the 
sandbox build to the screen so when people paste the output you know for 
sure what release it is.  example echo "SCRIPT VERSION: 
qmt-newmodel.es.20060825" (use the date in this way so it always sorts 
correctly).

George Sweetnam


----- Original Message ----- 
From: "George Sweetnam" <[EMAIL PROTECTED]>
To: <qmailtoaster-list@qmailtoaster.com>
Sent: Friday, August 25, 2006 7:07 PM
Subject: Re: [qmailtoaster] Eric - upgrade script test qmt-newmodel.sh


Per your email post saying you made changes, I've opened a new screen
window, deleted the old install, downloaded the new scripts, and started a
new install to let it run while i'm away.  I'll post again letting you know
the final result when I get a chance.

George Sweetnam
....

The 'linked' option is only available in the / partition
The sandbox is configured to be built at /opt/qmt-sandbox
Shall we continue? (yes, no|skip, batch, quit) [y] / n|s / b / q :
Running in background, replied 'yes'
Would you like to create a linked sandbox? (yes, no) y/[n] :
Running in background, replied 'no'
Creating Copied sandbox: /opt/qmt-sandbox ... (coffee anyone?)
Creating /opt/qmt-sandbox/backup ...
find: /backup: No such file or directory
Creating /opt/qmt-sandbox/bin ...
Creating /opt/qmt-sandbox/command ...
find: /command: No such file or directory
Creating /opt/qmt-sandbox/etc ...
Creating /opt/qmt-sandbox/lib ...
Creating /opt/qmt-sandbox/sbin ...
Creating /opt/qmt-sandbox/usr/bin ...
Creating /opt/qmt-sandbox/usr/etc ...
Creating /opt/qmt-sandbox/usr/include ...
Creating /opt/qmt-sandbox/usr/kerberos ...
Creating /opt/qmt-sandbox/usr/lib ...
Creating /opt/qmt-sandbox/usr/libexec ...
Creating /opt/qmt-sandbox/usr/local ...
Creating /opt/qmt-sandbox/usr/man ...
Creating /opt/qmt-sandbox/usr/sbin ...
Creating /opt/qmt-sandbox/usr/share ...




----- Original Message ----- 
From: "Eric "Shubes"" <[EMAIL PROTECTED]>
To: <qmailtoaster-list@qmailtoaster.com>
Sent: Thursday, August 24, 2006 10:13 PM
Subject: Re: [qmailtoaster] Eric - upgrade script test qmt-newmodel.sh


George wrote:
> #operating system:  fedora5
>
> uname -a
> #Linux name.of.server 2.6.17-1.2157_FC5 #1 Tue Jul 11 22:55:46 EDT 2006
> i686
> athlon i386 GNU/Linux
>
> cat /proc/cpuinfo
> #AMD Athlon(tm) XP 2600+
>
> free
> #515644
>
> df -h
> #size=110G used=5.5G available=99G
>
> #change to install dir
> cd /home/builduser/newtest/
>
> #change to a build user (forces root build)
> su -
>
> #clear existing sandbox (it tested once already)
> rm /opt/qmt-sandbox -rf
>
> #note files aren't owned by root (doesn't really matter though)
>
> #files downloaded from website:
> wget http://qmt.shubes.net/qmt-newmodel.sh
> wget http://qmt.shubes.net/qmt-build-rpms.sh
> wget http://qmt.shubes.net/qtp-build-rpms
> wget http://qmt.shubes.net/qtp-newmodel

You only need qmt-newmodel.sh and qmt-build-rpms.sh.
If you want to try qtp-newmodel instead, you'll need (only) qtp-build-rpms
and qtp-whatami along with it.

Now would have been a good time to chmod 755 the files. ;)
(see http://wiki.qmailtoaster.com/index.php/Upgrading)

> #verify there are no toaster rpms installed:
> rpm -qa | grep toaster
>
> #start it up:
> sh qmt-newmodel.sh
>
> #first odd thing:
> zlib-1.2.3-1.2.1 is installed.
> Do you want to Upgrade zlib to version 1.2.3-1.0.3
> #note:  not an upgrade, need => in script

Yeah, I noticed that yesterday too. Ron managed to have two different
versions of zlib installed, and it did an 'interesting' thing. The script
presently assumes that if they're not equal, then the one one on the toaster
site is newer. Good thing it asks (and I'm glad you paid close attention!).

I'll be adding => logic soon. I'd like to have an option to grab releases
off the development site too, in which case I'll need it for that.

Thanks for pointing this out.

> #answer for rest:
> b (batch)

You've got a lotta nerve! ;)

> #note: I have about 3G of files in /usr/local...damn this will take a
> while

Yeah, I know. The sandbox is a bit bloated, but it was the fastest way I
could think of to get it working. Might trim it down sometime in the future.

> #note2...moving it to a home dir because this takes to damn long and there
> were errors in the lib files for it being linked
>

If you put is somewhere in the '/' partition and use the linked option, it
takes a lot less space and runs a bit quicker too.

> ===========partial output==========
> Warning: This script does not check for available disk space.
> You'll need anywhere from 100M (linked) to 2.4G+ (copied)
>       to build the sandbox.
> The sandbox may be built in any partition.
> The 'linked' option is only available in the / partition
> The sandbox is configured to be built at /opt/qmt-sandbox
> Shall we continue? (yes, no|skip, batch, quit) [y] / n|s / b / q :
> Running in background, replied 'yes'
> Would you like to create a linked sandbox? (yes, no) y/[n] :
> Running in background, replied 'no'
> Creating Copied sandbox: /opt/qmt-sandbox ... (coffee anyone?)
> Creating /opt/qmt-sandbox/backup ...
> find: /backup: No such file or directory
> Creating /opt/qmt-sandbox/bin ...
> Creating /opt/qmt-sandbox/command ...
> find: /command: No such file or directory
> Creating /opt/qmt-sandbox/etc ...
> ----snip----
> Creating /opt/qmt-sandbox/var ...
> Unexpected named pipe: /var/run/screen/S-root/1946.pts-0.dod4
> prw------- 1 root root 0 Aug 24 15:15
> /var/run/screen/S-root/1946.pts-0.dod4
> Continuing ...
> cp: cannot stat `/home/vpopmail': No such file or directory
> Sandbox has been built successfully!

Those errors are all nothing to worry about.

> Starting to build the binary rpms ...(pizza anyone?)
>
> If you want to view compile messages, you can open another terminal and:
> # tail -f /opt/qmt-sandbox/usr/src/qmt/log/build-recent.log
>
> chroot: cannot run command `/home/builduser/newtest/qmt-build-rpms.sh':
> Permission denied
> Build failed, Exiting.
>
> =============================
>
> I made no further changes ... do you want me to change the perms on the
> file
> that failed?

Sure, George. Make sure you change the one in the sandbox. That's the one
it's really complaining about (the error is relative to the sandbox). You
should probably change the one outside of the sandbox too in case you end up
rebuilding the sandbox.

When you rerun it, you'll need to select files again (given the zlib
problem), but you could safely just 'batch' the rest.

Thanks for the testing!
-- 
-Eric 'shubes'

---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to