Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto patch Wine in Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Aug 20, 2007 9:02 am    Post subject: Howto patch Wine in Gentoo Reply with quote

I write this post, because I couldn't find anything like this in the forum. After long long long searching I found a small tiny guide:

http://appdb.winehq.org/appview.php?iVersionId=8366

often you will find small extra .diff patches in the games db on http://www.winehq.org/ and here is the way how a Gentoo user can easily patch his wine to work with the application (the Version Number can be exchanged to the used one e.g. 0.9.43):

needs to be done as root:
Code:
cd /usr/portage/app-emulation/wine
ebuild wine-0.9.39.ebuild clean
ebuild wine-0.9.39.ebuild unpack
cd /var/tmp/portage/app-emulation/wine-0.9.39/work/wine-0.9.39
patch -p1 < <path_to_patch>/patch1.diff
patch -p1 < <path_to_patch>/patch2.diff
cd -
ebuild wine-0.9.39.ebuild compile
ebuild wine-0.9.39.ebuild install
ebuild wine-0.9.39.ebuild qmerge
echo app-emulation/wine >> /etc/portage/package.mask
Back to top
View user's profile Send private message
Need4Speed
Guru
Guru


Joined: 06 Jun 2004
Posts: 497

PostPosted: Mon Aug 20, 2007 2:48 pm    Post subject: Reply with quote

Thanks! I always wondered what the best way was to do this.
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Aug 20, 2007 3:41 pm    Post subject: Reply with quote

There's a simpler way: using "autopatch" feature of portage-bashrc-ng (from GECHI Overlay)

  1. First, install and setup app-portage/layman (if it is not already installed)
  2. Add the Gechi overlay:
    Code:

    layman -f -o http://gechi-overlay.sf.net/layman.xml -a gechi

  3. Install portage-bashrc-ng (unmask it if you're running a stable profile):
    Code:

    emerge portage-bashrc-ng

  4. Edit the configuration file
    Code:

    nano /etc/portage/bashrc-ng/bashrc-ng.conf

    uncommenting the following line
    Code:

    #PATCH_OVERLAY=/usr/portage/local/patches/

  5. Enable autopatch:
    Code:

    eselect bashrc-ng enable autopatch

  6. Put your patches in /usr/portage/local/patches/, naming them with the following syntax: ${PATCH_OVERLAY}/${CATEGORY}/${PN}/${PN}-*.{patch,diff}.
    In your case, for example the patch could be /usr/portage/local/patches/app-emulation/wine/wine-0.9.39_mypatch.diff.
  7. Emerge the package(s) 8)

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Mon Aug 20, 2007 8:41 pm    Post subject: Reply with quote

Wow. Thanks for the info. That will save me some time with making ebuilds just to roll out patches...
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Jerle
n00b
n00b


Joined: 27 Feb 2003
Posts: 16

PostPosted: Sun Sep 30, 2007 10:51 pm    Post subject: Reply with quote

This looks really useful; but I can't get portage-bashrc-ng to emerge. It keeps telling me there are no ebuilds, not even masked ones.

The layman -f -o http://gechi-overlay.sf.net/layman.xml -a gechi worked fine and it said the overlay was added to the system.

Any ideas on what I need to do?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Sun Sep 30, 2007 11:01 pm    Post subject: Reply with quote

couldn't you always copy the ebuild file to a local tree, and add the appropriate epatch line? that's what i do for eve online, when it needs patches for sound bugs.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Jerle
n00b
n00b


Joined: 27 Feb 2003
Posts: 16

PostPosted: Sun Sep 30, 2007 11:12 pm    Post subject: Reply with quote

Assuming I even knew how to do that, probably. I've used Gentoo for quite a while, but not at the level of making my own ebuilds. I'm needing to patch Wine to get Supreme Commander working though, so I found this thread.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Oct 01, 2007 1:42 am    Post subject: Reply with quote

Jerle wrote:
Assuming I even knew how to do that, probably. I've used Gentoo for quite a while, but not at the level of making my own ebuilds. I'm needing to patch Wine to get Supreme Commander working though, so I found this thread.


Code:
mkdir /usr/local/portage
mkdir /usr/local/portage/app-emulation
mkdir /usr/local/portage/app-emulation/wine
mkdir /usr/local/portage/app-emulation/wine/files

cp /usr/portage/app-emulation/wine/wine-someversion.ebuild /usr/local/portage/app-emulation/wine
cp somepatchfile.patch /usr/local/portage/app-emulation/wine/files

nano /etc/make.conf
(check to see that PORTDIR_OVERLAY is set to /usr/local/portage)

nano /usr/local/portage/app-emulation/wine/wine-someversion.ebuild
(find the src_unpack section and add 'epatch "${FILESDIR}"/somepatchfile.patch', under the other epatch lines.)

ebuild /usr/local/portage/app-emulation/wine/wine-someversion.ebuild digest
emerge =wine-someversion


hope this helps :)
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Oct 01, 2007 9:42 am    Post subject: Reply with quote

Jerle wrote:
This looks really useful; but I can't get portage-bashrc-ng to emerge. It keeps telling me there are no ebuilds, not even masked ones.

The layman -f -o http://gechi-overlay.sf.net/layman.xml -a gechi worked fine and it said the overlay was added to the system.

Any ideas on what I need to do?

Add the line
Code:

source /usr/portage/local/layman/make.conf

to your /etc/make.conf, if it's not present.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
PraetorZero
Apprentice
Apprentice


Joined: 11 Dec 2004
Posts: 239
Location: /home

PostPosted: Wed Oct 03, 2007 11:56 am    Post subject: Reply with quote

disi, you are so very much my hero right now. :) Well, you and whomever was responsible for this little patch

Thanks for the guide!
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Sat Oct 06, 2007 3:57 pm    Post subject: Reply with quote

great post will now try patching wine to get quakewars running in wine while waiting for linux version.

got howto from here

http://community.enemyterritory.com/forums/showthread.php?t=9115
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum