Dart SDK on Redhat (RHEL 6.x)

215 views
Skip to first unread message

Dana Irvin

unread,
Oct 29, 2015, 2:27:30 PM10/29/15
to Dart Misc
Hi, Dartisans. I wanted to pick your collective brains about how to build the SDK on RHEL 6.x. It seems the instructions with regards to using depot-tools, etc. don't currently work with RHEL. The gclient script seems to crash because of some import error with argparse. This isn't the first time I've had issues with merely getting the SDK source using gclient. I actually don't think I've been able to get a version later than 1.5.1. There is always something with depot-tools.

My question is this: is there a way to get the source and create whatever makefiles are needed, without using depot_tools? I've tried merely cloning the SDK repo, and trying to use the build.py script. It seems that depot_tools do something regarding configuring things not accomplished elsewhere. Am I missing something? Is there a build process that doesn't use depot_tools documented somewhere?

Thanks, 

-Dirv


Eduardo Teixeira Dias

unread,
Oct 29, 2015, 2:35:44 PM10/29/15
to mi...@dartlang.org
I followed the instructions of
Niek Vlessert

In this discussion:
https://groups.google.com/forum/#!topic/sipxcom-dev/EeRsfbh32CA

Cheers

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Søren Gjesse

unread,
Oct 30, 2015, 6:49:28 AM10/30/15
to General Dart Discussion
I think parts of the tooling we have for building packages for Debian can be used for building on Red Hat.

We have scripts in the repo that can build packages for Debian. This is all based on a tarball containing all source and custom tools for building an SDK. Creating Debian packages is done by running the following commands (links to the source is provided):


The configuration for the Debian package is here: https://github.com/dart-lang/sdk/tree/master/tools/linux_dist_support/debian.

We build the Debian packages for each release, and as part of the source package the original tarball is also available. For 1.12.2 it can be downloaded here: https://storage.googleapis.com/dart-archive/channels/stable/release/1.12.2/linux_packages/debian_wheezy/dart_1.12.2.orig.tar.gz.

Hopefuly the tarball should be sufficient for building on Red Hat as well. The rules in the Debian package is just a makefile that only relies on the tarball, python and gcc (and well for Debian the debhelper package is also required).

When we build the Debian images for distribution it is happening in a Debian wheezy chroot, to make sure our glibc dependencies are so that the package will work on wheezy and upwards. Therefore there should be no hidden dependencies. The script for creating the chroot environment is tools/create_debian_chroot.sh, and the only additional packages installed in the chroot are python g++-4.6 git and subversion.

Regards,
Søren

---
Søren Gjesse
Software Engineer, Google Denmark
CVR nr. 28 86 69 84

Kao peter

unread,
Oct 30, 2015, 8:38:21 AM10/30/15
to Hans - Jürgen Alps
Cent OS 6 Pre-build version:  https://github.com/cjkao/dart-sdk-cent-os-6
Reply all
Reply to author
Forward
0 new messages