Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: [SOLVED] Patch Wine?

  1. #1
    Join Date
    Nov 2007
    Location
    Charlotte, NC
    Beans
    733
    Distro
    Ubuntu

    [SOLVED] Patch Wine?

    I already have Wine installed (most recent version too). I'm trying to play the game snood and someone gave me a patch to it. How do I apply this wine patch after I've already installed wine?

    I already searched around a bit but all the answers said you have to apply patches during install of wine
    Dell Inspiron e1505 - 10.10/Windows 7
    HP Mini 1030NR - Jolicloud 1.2
    Follow me on Twitter!
    Ubuntu User # 19787 | Linux User #461129

  2. #2
    Join Date
    Apr 2006
    Location
    Galax,Va. USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Patch Wine?

    What kind of file is the patch?

    Eddie
    Iguana

    Registered Linux User #490719

  3. #3
    Join Date
    Oct 2006
    Location
    California
    Beans
    Hidden!

    Re: Patch Wine?

    You're going to have to reinstall wine from source. Make sure that you've added the winehq repo:
    Code:
    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update
    sudo apt-get build-dep wine
    sudo apt-get install fakeroot
    mkdir wine1.5
    cd wine1.5
    apt-get source wine1.5
    cd wine*
    patch -p0 < /home/YOURNAME/yourpatch.patch 
    dpkg-buildpackage -rfakeroot -uc -b
    This will create your new wine deb. Then completely remove your old wine:
    Code:
    sudo dpkg --purge wine1.5
    Now you can install your patched version of wine.
    Last edited by pissedoffdude; June 3rd, 2012 at 03:25 AM. Reason: Updating Method

  4. #4
    Join Date
    Nov 2007
    Location
    Charlotte, NC
    Beans
    733
    Distro
    Ubuntu

    Re: Patch Wine?

    Quote Originally Posted by pissedoffdude View Post
    Now you can install your patched version of wine.
    I'm away from my laptop for a few days but I'll try all that soon as I get home. This is the code I was given:
    Code:
    --- server/queue.c.orig	2007-05-07 07:38:23.000000000 -0700
    +++ server/queue.c	2007-05-07 07:44:23.000000000 -0700
    @@ -1779,9 +1779,18 @@
         if (filter & QS_PAINT) queue->changed_bits &= ~QS_PAINT;
     
         /* then check for posted messages */
    -    if ((filter & QS_POSTMESSAGE) &&
    -        get_posted_message( queue, get_win, req->get_first, req->get_last, req->flags, reply ))
    -        return;
    +/*    if ((filter & QS_POSTMESSAGE) &&
    +        get_posted_message( queue, get_win, req->get_first, req->get_last, req->flags, reply ))*/
    +          /* but NOT any with code 0x5555 - hack to make Snood work! */
    +    if ((filter & QS_POSTMESSAGE) &&((req->get_first <= 0x5555) && (0x5555 <= req->get_last)))
    +    {
    +       if (get_posted_message( queue, get_win, req->get_first, 0x5554, req->flags, reply ))
    +            return;
    +        if (get_posted_message( queue, get_win, 0x5556, req->get_last, req->flags, reply ))
    +            return;
    +    }
    +    else if (get_posted_message( queue, get_win, req->get_first, req->get_last, req->flags, reply ))
    +    return;
     
         /* only check for quit messages if not posted messages pending.
          * note: the quit message isn't filtered */
    @@ -1793,6 +1802,12 @@
             filter_contains_hw_range( req->get_first, req->get_last ) &&
             get_hardware_message( current, req->hw_id, get_win, req->get_first, req->get_last, reply ))
             return;
    +    /* Now check for posted messages with code 0x5555 - hack to make Snood work! */
    +
    +    if ((filter & QS_INPUT) &&((req->get_first <= 0x5555) && (0x5555 <= req->get_last)
    +        && (get_posted_message( queue, get_win, 0x5555, 0x5555, req->flags, reply ))))
    +       return;
    +
     
         /* now check for WM_PAINT */
         if ((filter & QS_PAINT) &&
    You said after those previous instructions I can now install the patch, how do I got about doing this or is it self-explanitory after I've reinstalled Wine etc.?
    Dell Inspiron e1505 - 10.10/Windows 7
    HP Mini 1030NR - Jolicloud 1.2
    Follow me on Twitter!
    Ubuntu User # 19787 | Linux User #461129

  5. #5
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Patch Wine?

    You have to patch it (the source) first
    Now you can install your patched version of wine.
    Follow pissedoffdude's instructions exactly - excellent method - gives you a proper .deb package
    Create a new text document and paste the patch text into, save and rename snoodpatch.patch Then place the file in your home directory and follow above commands.
    Last edited by mc4man; March 4th, 2008 at 02:16 AM.

  6. #6
    Join Date
    Mar 2006
    Location
    Mtl
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Patch Wine?

    I want to do this, and I'm willing to patch WINE for the sake of snood... but the patch is for snood version 2.4.4 and the current version of snood is 3.something. I'm pretty sure I need the old version of snood (2.4.4) so please, if anyone has that old version, post it here!

  7. #7
    Join Date
    Dec 2004
    Beans
    543

    Re: Patch Wine?

    Quote Originally Posted by Ariccanfly View Post
    I want to do this, and I'm willing to patch WINE for the sake of snood... but the patch is for snood version 2.4.4 and the current version of snood is 3.something. I'm pretty sure I need the old version of snood (2.4.4) so please, if anyone has that old version, post it here!
    The patch is to Wine, so it likely works with all Snood versions. No guarantees, but give it a try.

  8. #8
    Join Date
    Oct 2007
    Beans
    5
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Patch Wine?

    Sorry to bring up an old post, but this was very helpful and allowed me to patch and build wine very easily. The only problem now is apt keeps wanting me to upgrade wine to the one in the budget dedicated repository. Is there anything special I need to do when building wine to make apt know that it is a more recent version?

  9. #9
    Join Date
    Dec 2004
    Beans
    543

    Re: Patch Wine?

    Quote Originally Posted by c0rdawg View Post
    Sorry to bring up an old post, but this was very helpful and allowed me to patch and build wine very easily. The only problem now is apt keeps wanting me to upgrade wine to the one in the budget dedicated repository. Is there anything special I need to do when building wine to make apt know that it is a more recent version?
    This is how apt is designed to work. So, other than marking the package as "do not upgrade" (eg in Synaptic), no.

  10. #10
    Join Date
    Oct 2007
    Beans
    5
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Patch Wine?

    Ah okay, thank you.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •