Create wine tarball from customized code?

Questions about Wine on macOS.
Post Reply
emendelson
Level 2
Level 2
Posts: 12
Joined: Sat Apr 12, 2014 12:53 pm

Create wine tarball from customized code?

Post by emendelson » Tue Jan 15, 2019 4:42 pm

For various reasons, I would like to be able to create a wine tarball (or at least the contents of a tarball - the contents of the /usr directory) from slightly customized code. (I want to modify the keyboard.c file in winemac.drv.)

Are there instructions anywhere for creating the /usr directory that's in the wine tarballs? I've looked around but can't find any, and would be grateful for any pointers.

User avatar
dimesio
Moderator
Moderator
Posts: 12675
Joined: Tue Mar 25, 2008 10:30 pm

Re: Create wine tarball from customized code?

Post by dimesio » Wed Jan 16, 2019 7:08 am

Moving to the macOS subforum, as I gather you're talking about the Mac binary tarballs and not Wine's source tarballs.

To modify Wine you are going to have to download the source code, either from git or a tarball, and modify that, then build your modified Wine yourself. If you're only doing it for yourself, there's no need to package it, as Wine can be run from the build directory. There are instructions for building Wine on macOS on https://wiki.winehq.org/MacOS/Building.

emendelson
Level 2
Level 2
Posts: 12
Joined: Sat Apr 12, 2014 12:53 pm

Re: Create wine tarball from customized code?

Post by emendelson » Wed Jan 16, 2019 9:28 am

Thank you. It seems that I don't need to do this at all, because I've been told that wine 3.17+ maps the Windows Alt key to the Mac Option key - which is what I was hoping to do my modifying keyboard.c.

Gcenx
Level 5
Level 5
Posts: 294
Joined: Mon Dec 25, 2017 12:11 pm

Re: Create wine tarball from customized code?

Post by Gcenx » Wed Jan 16, 2019 8:50 pm

emendelson wrote:Thank you. It seems that I don't need to do this at all, because I've been told that wine 3.17+ maps the Windows Alt key to the Mac Option key - which is what I was hoping to do my modifying keyboard.c.
I think you miss understood what I meant over there, I tried to make it clearer.

emendelson
Level 2
Level 2
Posts: 12
Joined: Sat Apr 12, 2014 12:53 pm

Re: Create wine tarball from customized code?

Post by emendelson » Wed Jan 16, 2019 10:38 pm

You're right - I misunderstood. Thank you for the explanation over at portingteam.com!

Gcenx
Level 5
Level 5
Posts: 294
Joined: Mon Dec 25, 2017 12:11 pm

Re: Create wine tarball from customized code?

Post by Gcenx » Fri Jan 18, 2019 10:44 am

dimesio wrote:Moving to the macOS subforum, as I gather you're talking about the Mac binary tarballs and not Wine's source tarballs.

To modify Wine you are going to have to download the source code, either from git or a tarball, and modify that, then build your modified Wine yourself. If you're only doing it for yourself, there's no need to package it, as Wine can be run from the build directory. There are instructions for building Wine on macOS on https://wiki.winehq.org/MacOS/Building.

Honestly those instructions need updating, who would I need to speak to about getting the macOS related sections updated?

I’m willing to update all the macOS sections for building wine and the other macOS related sections of the wiki so it includes relevant information that’s currently missing or outdated.

User avatar
dimesio
Moderator
Moderator
Posts: 12675
Joined: Tue Mar 25, 2008 10:30 pm

Re: Create wine tarball from customized code?

Post by dimesio » Fri Jan 18, 2019 1:53 pm

Gcenx wrote:I’m willing to update all the macOS sections for building wine and the other macOS related sections of the wiki so it includes relevant information that’s currently missing or outdated.
Tell me your wiki username and I will give your account edit permission.

Gcenx
Level 5
Level 5
Posts: 294
Joined: Mon Dec 25, 2017 12:11 pm

Re: Create wine tarball from customized code?

Post by Gcenx » Fri Jan 18, 2019 2:52 pm

dimesio wrote:
Gcenx wrote:I’m willing to update all the macOS sections for building wine and the other macOS related sections of the wiki so it includes relevant information that’s currently missing or outdated.
Tell me your wiki username and I will give your account edit permission.
Seems I did t have a wiki account, I made one same username

User avatar
dimesio
Moderator
Moderator
Posts: 12675
Joined: Tue Mar 25, 2008 10:30 pm

Re: Create wine tarball from customized code?

Post by dimesio » Fri Jan 18, 2019 4:11 pm

Gcenx wrote: Seems I did t have a wiki account, I made one same username
I've added you to the "Trustworthy" group, which enables you to create and edit pages.

Thanks for your help; the macOS info definitely needs work.

Post Reply