Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Make this work on BigSur/M1 #169

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

migueldeicaza
Copy link
Contributor

These are the patches that I did last year, but they were against the Xamarin/BockBuild fork which was the old, proprietary one, and not the open source one.

@@ -105,16 +106,19 @@ def run(self):

loginit('bockbuild (%s)' % (self.bockbuild_rev))
info('cmd: %s' % ' '.join(sys.argv))

progress ('here')
if len (sys.argv) < 2:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug printf.

if len (sys.argv) < 2:
info ('Profiles in %s --' % self.git ('config --get remote.origin.url', self.profile_root)[0])
info(map (lambda x: '\t%s: %s' % (x.name, x.description), self.profiles))
finish (exit_codes.FAILURE)

global active_profile
progress (sys.argv[1])
Package.profile = active_profile = self.load_profile (sys.argv[1])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many other places.

package.local_ld_flags = ['-arch i386', '-arch x86_64']
package.local_gcc_flags = ['-arch i386', '-arch x86_64']
if arch == 'darwin-arm64':
package.local_ld_flags = ['-arch arm64']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation.

elif arch == 'darwin-32':
package.local_ld_flags = ['-arch i386', '-m32']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this in the darwin-32 block ?

@@ -306,7 +310,7 @@ def __init__(self):
Profile.FileProcessor.__init__(self, match=match_stageable_binary)

def process(self, path):
run_shell('dsymutil -t 2 "%s" >/dev/null' % path)
run_shell('dsymutil "%s" >/dev/null' % path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed ?

@@ -13,12 +13,12 @@ def install(self):

def arch_build(self, arch):
if arch == 'darwin-universal':
self.local_ld_flags = ['-arch i386', '-arch x86_64']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still care for 32 bit ?

@@ -235,7 +235,8 @@ def __init__(self):

# https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1092021/
'patches/gtk/0078-Optimize-querying-symbolic-hotkeys.patch',
'patches/gtk/gdk-quartz-Remove-titlebar-handling-from-find_child.patch'
'patches/gtk/gdk-quartz-Remove-titlebar-handling-from-find_child.patch',
'patches/gtk/bigsurfix.patch'
Copy link
Contributor

@vargaz vargaz Apr 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps newer versions don't need this (or other) patches ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants