Building wine from source code

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
m_p_w
Level 1
Level 1
Posts: 5
Joined: Sat Jun 11, 2011 2:13 am

Building wine from source code

Post by m_p_w »

How do you build wine from source code and apply patch to the source.
Please give me example because I am new with wine.
etwineb
Level 4
Level 4
Posts: 101
Joined: Wed Dec 10, 2008 12:05 pm

Post by etwineb »

Code: Select all

patch -p0 patchname.diff
./configure
make
Reinhard Karcher

Building wine from source code

Post by Reinhard Karcher »

Am 11.06.2011 15:57, schrieb etwineb:
Code:

patch -p0 patchname.diff
patch -p0 < patchname.diff
./configure
make
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Building wine from source code

Post by jjmckenzie »

On 6/11/11 6:57 AM, etwineb wrote:
Code:

patch -p0 patchname.diff
No. The command is

Code: Select all

patch -p0 < patchname.diff
However, most Wine patches are written using git which will require

Code: Select all

patch -p1 < patchname.diff
as the files are listed as a/dlls/.... and b/dlls/.... in git difference
file format.
Frédéric Delanoy

Building wine from source code

Post by Frédéric Delanoy »

On Sat, Jun 11, 2011 at 23:57, James McKenzie <[email protected]> wrote:
On 6/11/11 6:57 AM, etwineb wrote:
Code:

patch -p0 patchname.diff
No. The command is

Code: Select all

 patch -p0 < patchname.diff
However, most Wine patches are written using git which will require

Code: Select all

patch -p1 < patchname.diff
as the files are listed as a/dlls/.... and b/dlls/.... in git difference
file format.
For git patches, using git-apply is safer, as the 'patch -p1' version
will not work with patches containing file additions/deletions.
Locked