View previous topic :: View next topic |
Author |
Message |
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Mon Aug 20, 2007 9:02 am Post subject: Howto patch Wine in Gentoo |
|
|
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 |
|
|
Need4Speed Guru
Joined: 06 Jun 2004 Posts: 497
|
Posted: Mon Aug 20, 2007 2:48 pm Post subject: |
|
|
Thanks! I always wondered what the best way was to do this. |
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Mon Aug 20, 2007 3:41 pm Post subject: |
|
|
There's a simpler way: using "autopatch" feature of portage-bashrc-ng (from GECHI Overlay)
- First, install and setup app-portage/layman (if it is not already installed)
- Add the Gechi overlay:
Code: |
layman -f -o http://gechi-overlay.sf.net/layman.xml -a gechi
|
Install portage-bashrc-ng (unmask it if you're running a stable profile):
Code: |
emerge portage-bashrc-ng
|
Edit the configuration file
Code: |
nano /etc/portage/bashrc-ng/bashrc-ng.conf
|
uncommenting the following line
Code: |
#PATCH_OVERLAY=/usr/portage/local/patches/
|
Enable autopatch:
Code: |
eselect bashrc-ng enable autopatch
|
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.
Emerge the package(s)
_________________ 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 |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Mon Aug 20, 2007 8:41 pm Post subject: |
|
|
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 |
|
|
Jerle n00b
Joined: 27 Feb 2003 Posts: 16
|
Posted: Sun Sep 30, 2007 10:51 pm Post subject: |
|
|
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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Sep 30, 2007 11:01 pm Post subject: |
|
|
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 |
|
|
Jerle n00b
Joined: 27 Feb 2003 Posts: 16
|
Posted: Sun Sep 30, 2007 11:12 pm Post subject: |
|
|
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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Oct 01, 2007 1:42 am Post subject: |
|
|
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 |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Mon Oct 01, 2007 9:42 am Post subject: |
|
|
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 |
|
|
PraetorZero Apprentice
Joined: 11 Dec 2004 Posts: 239 Location: /home
|
Posted: Wed Oct 03, 2007 11:56 am Post subject: |
|
|
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 |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Sat Oct 06, 2007 3:57 pm Post subject: |
|
|
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 |
|
|
|