Re: firefox 18

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Jan 25, 2013 at 02:03:17PM +0000, James Pearson wrote:
> fred smith wrote:
> > 
> > the build process explicitly checks for python 2.7 or greater, so how
> > does 2.6 succeed?
> > 
> > from the mach build tool:
> > 
> > 	#!/usr/bin/env python
> > 	# This Source Code Form is subject to the terms of the Mozilla Public
> > 	# License, v. 2.0. If a copy of the MPL was not distributed with this
> > 	# file, You can obtain one at http://mozilla.org/MPL/2.0/.
> > 
> > 	from __future__ import print_function, unicode_literals
> > 
> > 	import os
> > 	import platform
> > 	import sys
> > 
> > 	# Ensure we are running Python 2.7+. We put this check here so we generate a
> > 	# user-friendly error message rather than a cryptic stack trace on module
> > 	# import.
> > 	if sys.version_info[0] == 2 and sys.version_info[1] < 7:
> > 	    print('Python 2.7 or above is required to run mach.')
> > 	    print('You are running', platform.python_version())
> > 	    sys.exit(1)
> 
> Are you sure that is used?

It is if you follow Mozilla's build instructions, which are to build with 
"mach". I think that doing what you did will bypass mach. I tried it and
got an error further into the build regarding some missing python stuff
(but I haven't installed a newer python yet, so that's not unexpected.)

Is it also necessary to install the newer GCC that you used? I haven't yet
noticed that listed in the build requirements...

> 
> As a test, I did a fresh install of CentOS 5 i386, installed 
> epel-release and rpmforge-release from 
> <http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm> 
> and 
> <http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm>
> 
> Then did:
> 
> yum groupinstall development-tools development-libs 
> x-software-development gnome-software-development
> 
> yum install gcc44 gcc44-c++ python26 yasm-devel
> 
> Unpacked the firefox 18.0.1 source code, created the mozconfig file and 
> ran 'make -f client.mk'

-- 
-------------------------------------------------------------------------------
 .----    Fred Smith   /              
( /__  ,__.   __   __ /  __   : /     
 /    /  /   /__) /  /  /__) .+'           Home: fredex@xxxxxxxxxxxxxxxxxxxxxx 
/    /  (__ (___ (__(_ (___ / :__                                 781-438-5471 
-------------------------------- Jude 1:24,25 ---------------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux