Unable to build from official source tarball on Mac and Windows

92 views
Skip to first unread message

Cheng Zhao

unread,
Oct 16, 2014, 8:15:43 AM10/16/14
to chromium-dev
Hi,

The official source tarball seems to only contain build dependencies for Linux, when building on Mac and Windows some dependencies are missing and building can not continue.

For example on Mac:

$ wget https://commondatastorage.googleapis.com/chromium-browser-official/chromium-38.0.2125.104.tar.xz
$ tar xf chromium-38.0.2125.104.tar.xz
$ cd chromium-38.0.2125.104
$ ./build/gyp_chromium --depth .
Updating projects from gyp files...
gyp: /private/tmp/chromium-38.0.2125.104/third_party/nss/nss.gyp not found (cwd: /private/tmp/chromium-38.0.2125.104)


Is it possible for the official source tarball to contain build dependencies on Mac and Windows? Just run fetch --nohooks chromium --target_os=mac,win,linux for bootstrapping should be enough.

Thanks,
Cheng

Thiago Farina

unread,
Oct 16, 2014, 10:47:05 AM10/16/14
to zcb...@gmail.com, chromium-dev
On Thu, Oct 16, 2014 at 9:15 AM, Cheng Zhao <zcb...@gmail.com> wrote:
Hi,

The official source tarball seems to only contain build dependencies for Linux, when building on Mac and Windows some dependencies are missing and building can not continue.

For example on Mac:

$ wget https://commondatastorage.googleapis.com/chromium-browser-official/chromium-38.0.2125.104.tar.xz
$ tar xf chromium-38.0.2125.104.tar.xz
$ cd chromium-38.0.2125.104
Don't you need `gclient sync`?

Sorry, I never tried to build from the tarball myself.

--
Thiago Farina

Cheng Zhao

unread,
Oct 16, 2014, 9:51:04 PM10/16/14
to Thiago Farina, chromium-dev
On Thu, Oct 16, 2014 at 10:46 PM, Thiago Farina <tfa...@chromium.org> wrote:

Don't you need `gclient sync`?

Sorry, I never tried to build from the tarball myself.

I think the purpose of source tarball is to make building possible without internet connection, which is true for many build services and PPA and openSUSE Build Service.

Cheng 

Paweł Hajdan, Jr.

unread,
Oct 17, 2014, 10:12:15 AM10/17/14
to Cheng Zhao, Thiago Farina, chromium-dev
Curious, what is the use case for from-tarball build on Windows or Mac? These tarballs were indeed created with Linux packaging in mind.

Note that we actually remove some files for these tarballs, so for a real full tarball we would need to do some more work.

Paweł

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Cheng Zhao

unread,
Oct 17, 2014, 11:33:35 AM10/17/14
to Paweł Hajdan, Jr., Thiago Farina, chromium-dev
I'm currently using source tarball to build libchromiumcontent[1], which builds by patching a specific stable release of Chromium. The purpose of using source tarball is to make building easier, using gclient to download code takes too much time and it is hard to write an automatic script to wrap around gclient and take care of patching, especially after the migration to git.

I have set up a repo[2] to generate source tarball for all platforms automatically, it works by using fetch --nohooks chromium --target_os=mac,win,linux for bootstrapping and it works fine.

Cheng
Reply all
Reply to author
Forward
0 new messages