diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-08-24 08:45:07 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-08-24 08:45:07 (GMT) |
commit | d95da7e22a24ab477f29ae95f4e2573a0792a5df (patch) | |
tree | ab0257c45d4495b9ab89bf7e879fb3ac8c63d833 /tools | |
parent | e0997e5e7053a611f50cc0c0ef15f09d2ebbe227 (diff) | |
download | mxe-d95da7e22a24ab477f29ae95f4e2573a0792a5df.zip mxe-d95da7e22a24ab477f29ae95f4e2573a0792a5df.tar.gz mxe-d95da7e22a24ab477f29ae95f4e2573a0792a5df.tar.bz2 |
build-pkg: pkgs with broken deps are also brokenbuild-2015-08-28
Bad behaviour prior to this commit:
1. The package is broken: pango
2. Package sdl_pango depends on broken pango
3. When t4k_common (which depends on sdl_pango) is built,
pango is tried to build again.
This issue was caused by the error fixed in this commit:
if a package A depends on a broken package B,
then the package A is also BROKEN.
So if a package C depends on package A, then all of them
are broken:
(*)B <- A <- C
B is not "rebuilt" for C.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build-pkg.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index 08e5ead..e0434e1 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -336,6 +336,7 @@ local function buildPackages(pkgs, pkg2deps) log('The package is broken: ' .. pkg) end else + broken[pkg] = true local msg = 'Package %s depends on broken %s' log(msg:format(pkg, brokenDep(pkg))) end |