Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: lib/naclports/bsd_pkg.py

Issue 1285953002: Switch devenv to use pkg packages (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@toolchain_install
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/naclports/binary_package.py ('k') | lib/naclports/package.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/naclports/bsd_pkg.py
diff --git a/lib/naclports/bsd_pkg.py b/lib/naclports/bsd_pkg.py
index 19d9bf1d34f7f1210391c08cd328f02c39658079..ec07db3255c48656a875fb2cc02cb36093af1e22 100644
--- a/lib/naclports/bsd_pkg.py
+++ b/lib/naclports/bsd_pkg.py
@@ -128,12 +128,24 @@ def AddPackageDep(dep_dict, dep):
raise Error("Package not found: %s" % dep)
+# These packages are are built-time only depednecies and we won't want
+# encode them into the pkg file deps.
+BUILD_ONLY_DEPS = [
+ 'glibc-compat',
+ 'libtar',
+ 'python-host',
+ 'gmp',
+ 'mpfr',
+ 'mpc',
+]
+
def CreateDependencies(depends_dict, depends):
for dep in depends:
- if dep != 'glibc-compat':
- dep_dict = collections.OrderedDict()
- AddPackageDep(dep_dict, dep)
- depends_dict[dep] = dep_dict
+ if dep in BUILD_ONLY_DEPS:
+ continue
+ dep_dict = collections.OrderedDict()
+ AddPackageDep(dep_dict, dep)
+ depends_dict[dep] = dep_dict
def CreatePkgFile(name, version, arch, payload_dir, outfile, depends):
« no previous file with comments | « lib/naclports/binary_package.py ('k') | lib/naclports/package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698