Closed Bug 817504 Opened 12 years ago Closed 11 years ago

update all SeaMonkey slaves to use python 2.7

Categories

(SeaMonkey :: Release Engineering, defect)

x86
All
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ewong, Assigned: Callek)

Details

Attachments

(3 files)

Soon m-c will move to python 2.7 requirements.  We need to update our
buildbot slaves to use python 2.7.
Ok, seamonkey's 10.7 build machines have py2.7 just not py 2.7.3 (they have py2.7.2 in /tools and 2.7.1 global) That was updated on MoCo to 2.7.3 in Bug 602908 - not priority.

We're installing onto Windows now (We'll need a buildbot change or two for that)
Linux tinderboxes currently fail to build entirely due to bug 804865 landing,

> checking for python2.7... (cached) /tools/python-2.6.5/bin/python2.6
> Creating Python environment
> Python 2.7 or greater (but not Python 3) is required to build. You are running Python 2.6.
Severity: normal → blocker
Forgive the raw-log dump, and the word-wrap that happened on my terminal:

[cltbld@linux-ix-slave15 rpmbuild]$ ls -l
total 20
drwxrwxr-x 2 cltbld cltbld 4096 Feb  4 00:45 BUILD
drwxrwxr-x 2 cltbld cltbld 4096 Feb  4 00:45 RPMS
drwxrwxr-x 2 cltbld cltbld 4096 Feb  4 00:45 SOURCES
drwxrwxr-x 2 cltbld cltbld 4096 Feb  4 00:45 SPECS
drwxrwxr-x 2 cltbld cltbld 4096 Feb  4 00:45 SRPMS
[cltbld@linux-ix-slave15 rpmbuild]$ cd SPECS/
[cltbld@linux-ix-slave15 SPECS]$ wget -O python27.spec http://hg.mozilla.org/build/rpm-sources/raw-file/963b152d7
186/python26/centos5-i686/python26.spec
--00:47:45--  http://hg.mozilla.org/build/rpm-sources/raw-file/963b152d7186/python26/centos5-i686/python26.spec
Resolving hg.mozilla.org... 63.245.215.25
Connecting to hg.mozilla.org|63.245.215.25|:80... connected.
HTTP request sent, awaiting response... 200 Script output follows
Length: 1131 (1.1K) [text/plain]
Saving to: `python27.spec'

100%[========================================================================>] 1,131       --.-K/s   in 0s

00:47:45 (51.8 MB/s) - `python27.spec' saved [1131/1131]

[cltbld@linux-ix-slave15 SPECS]$ wget -O ../SOURCES/Python-2.7.2.tar.bz2 http://www.python.org/ftp/python/2.7.2/P
ython-2.7.2.tar.bz2
--00:53:54--  http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
Resolving www.python.org... 82.94.164.162, 2001:888:2000:d::a2
Connecting to www.python.org|82.94.164.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11754834 (11M) [application/x-bzip2]
Saving to: `../SOURCES/Python-2.7.2.tar.bz2'

100%[========================================================================>] 11,754,834  3.26M/s   in 4.1s

00:53:59 (2.72 MB/s) - `../SOURCES/Python-2.7.2.tar.bz2' saved [11754834/11754834]

[cltbld@linux-ix-slave15 SPECS]$ wget -O python26.spec http://hg.mozilla.org/build/rpm-sources/raw-file/963b152d7
186/python26/centos5-i686/python26.spec
--00:55:44--  http://hg.mozilla.org/build/rpm-sources/raw-file/963b152d7186/python26/centos5-i686/python26.spec
Resolving hg.mozilla.org... 63.245.215.25
Connecting to hg.mozilla.org|63.245.215.25|:80... connected.
HTTP request sent, awaiting response... 200 Script output follows
Length: 1131 (1.1K) [text/plain]
Saving to: `python26.spec'

100%[========================================================================>] 1,131       --.-K/s   in 0s

00:55:44 (238 MB/s) - `python26.spec' saved [1131/1131]

[cltbld@linux-ix-slave15 SPECS]$ diff python2
python26.spec  python27.spec
[cltbld@linux-ix-slave15 SPECS]$ diff -U3 python26.spec python27.spec
[cltbld@linux-ix-slave15 SPECS]$ diff -U3 python26.spec python27.spec
--- python26.spec       2013-02-04 00:55:44.000000000 -0800
+++ python27.spec       2013-02-04 00:55:26.000000000 -0800
@@ -1,8 +1,8 @@
-%define pybasever 2.6
+%define pybasever 2.7

-Name: python26
+Name: python27
 Summary: An interpreted, interactive, object-oriented programming language.
-Version: %{pybasever}.5
+Version: %{pybasever}.2
 Release: 0moz1%{?dist}
 License: PSF - see LICENSE
 Group: Development/Languages
[cltbld@linux-ix-slave15 SPECS]$ rpmbuild -ba --target=i686 python27.spec | tee ../log.txt
error: File /usr/src/redhat/SOURCES/Python-2.7.2.tar.bz2: No such file or directory
Building target platforms: i686
Building for target i686
[cltbld@linux-ix-slave15 SPECS]$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
[cltbld@linux-ix-slave15 SPECS]$ rpmbuild -ba --target=i686 python27.spec | tee ../log.txt

said log.txt is attached...

[cltbld@linux-ix-slave15 SPECS]$ ls ../RPMS/i686/
python27-2.7.2-0moz1.i686.rpm  python27-debuginfo-2.7.2-0moz1.i686.rpm
[cltbld@linux-ix-slave15 SPECS]$ ls ../SRPMS/
python27-2.7.2-0moz1.src.rpm

THOSE files are now uploaded to: http://people.mozilla.org/~jwood/rpms/

Lastly cleaned up the generated files on the slave, and returned slave to the MoCo pool
Did all the same stuff as previous step, on linux64-ix-slave22 this time

rpmbuild -ba --target=i686 python27.spec | tee ../log.txt

Did not copy out the srpm presuming of course that the relevant files are not different enough to matter.

Final rpms in http://people.mozilla.org/~jwood/rpms/

Will do remaining work tomorrow.
Attached patch [configs] v1Splinter Review
Test on linux32 opt was good, so this should do it, for opt and linux64

the rpms are now deployed to sea-vm-linux32-{1..6} and cb-seamonkey-linux64-01

TODO on sea-vm-linux64-1 for when Bug 838073 is resolved.
Attachment #710080 - Flags: review?(ewong)
Comment on attachment 710080 [details] [diff] [review]
[configs] v1

Review of attachment 710080 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good..
Attachment #710080 - Flags: review?(ewong) → review+
http://hg.mozilla.org/build/buildbot-configs/rev/5f78d4e0b4de and did a reconf just now, then clobber of all the linux machines, this even made it in intime for tonights nightlies!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: