Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2019-07-25 01:19:52 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-07-25 01:19:52 +0300
commit5fa56310383191c4566aeb89abcbcab59528e18e (patch)
tree83644b6acf7ca82a62a46da7c40afa2b0151ba8c
parentbe40abf4adfb3bd2e836b08b7d25f77a716a1a48 (diff)
[2019-06] Another speculative fix for 'pkg-config' sometimes getting built as a… (#113)
* Another speculative fix for 'pkg-config' sometimes getting built as a 32-bit package regardless of arch configuration Mono issue: https://github.com/mono/mono/issues/13804 The hypothesis is that at reconfigure using the configure cache file, the lack of explicit setting of the host somehow breaks the build process. * Don't eagerly delete logs Delete logs of built packages only if they are about to get rebuilt Backport of #98.
-rwxr-xr-xbockbuild.py4
-rw-r--r--bockbuild/darwinprofile.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/bockbuild.py b/bockbuild.py
index a3b0cfe..691060b 100755
--- a/bockbuild.py
+++ b/bockbuild.py
@@ -194,8 +194,6 @@ class Bockbuild:
self.artifact_root, '%s-%s' % (package.name, arch))
package.buildstring_file = package.build_artifact + '.buildstring'
package.log = os.path.join(self.logs, package.name + '.log')
- if os.path.exists(package.log):
- delete(package.log)
package.source_dir_name = expand_macros(package.source_dir_name, package)
workspace_path = os.path.join(self.build_root, package.source_dir_name)
@@ -226,6 +224,8 @@ class Bockbuild:
package.deploy_requests.append (stage)
for package in packages.values():
+ if os.path.exists(package.log):
+ delete(package.log)
package.start_build(arch, dest, stage)
# make artifact in scratch
# delete artifact + buildstring
diff --git a/bockbuild/darwinprofile.py b/bockbuild/darwinprofile.py
index 716b227..6f15680 100644
--- a/bockbuild/darwinprofile.py
+++ b/bockbuild/darwinprofile.py
@@ -139,12 +139,12 @@ class DarwinProfile (UnixProfile):
package.local_ld_flags = ['-arch i386', '-m32']
package.local_gcc_flags = ['-arch i386', '-m32']
package.local_configure_flags = [
- '--build=i386-apple-darwin13.0.0', '--disable-dependency-tracking']
+ '--build=i386-apple-darwin13.0.0', '--host=i386-apple-darwin13.0.0', '--disable-dependency-tracking']
elif arch == 'darwin-64':
package.local_ld_flags = ['-arch x86_64 -m64']
package.local_gcc_flags = ['-arch x86_64 -m64']
package.local_configure_flags = [
- '--build=x86_64-apple-darwin13.0.0', '--disable-dependency-tracking']
+ '--build=x86_64-apple-darwin13.0.0', '--host=x86_64-apple-darwin13.0.0', '--disable-dependency-tracking']
else:
error('Unknown arch %s' % arch)