Updating wine with GIT

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
orlox
Newbie
Newbie
Posts: 2
Joined: Wed Mar 18, 2009 2:22 pm

Updating wine with GIT

Post by orlox »

Hi. Ive used git for some time to download an update wine sources. However, Ive notices a couple of things i dont understand quite much.

My general procedure to download sources and compile is this:

git clone git://source.winehq.org/git/wine.git ~/wine-git
cd ~/wine-git
./configure --prefix=/usr
make
sudo checkinstall --fstrans=no --pkgversion=1.1.12

Here I've noticed that I have to manually specify the package version on checkinstall, or else, the installation fails (is there a way to avoid this??)...

On the other hand, to update sources, I use:

cd ~/wine-git
git reset --hard origin
git fetch
git rebase origin

However, I've noticed that if I ommit the last command (git rebase origin) Compilation goes much faster...Is it neccesary to do that?? What does git rebase origin does??

I read this procedure once on appDB, and been following it blindly for some time, but I am annoyed because recompiling the whole sources each time is very time consuming if I include git rebase origin...

Also, something Ive been wanting to know for quite some time now, is how to use GIT to downgrade to previous versions of wine (in case of regression...).

Thanks in advance!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Updating wine with GIT

Post by vitamin »

orlox wrote:Here I've noticed that I have to manually specify the package version on checkinstall, or else, the installation fails (is there a way to avoid this??)...
Consult man page for checkinstall. I'm guessing version is a mandatory option.
orlox wrote:cd ~/wine-git
git reset --hard origin
git fetch
git rebase origin

However, I've noticed that if I ommit the last command (git rebase origin) Compilation goes much faster...Is it neccesary to do that?? What does git rebase origin does??
Of course it does - you not really compiling anything as no code was changed.

Git, unlike other source control systems, keeps all patches in it's internal storage. Actual source files produced out of that storage but not itself the actual storage (like with cvs). What 'git fetch' does is pulling all updates (patches) from upstream (WineHQ) into internal storage. 'git rebase origin' in a sense generates all the source code out of internal storage.

It's a bit different than that, but unless you are developer you don't care about those details.
orlox
Newbie
Newbie
Posts: 2
Joined: Wed Mar 18, 2009 2:22 pm

Post by orlox »

MMmm...I thought it had updated though, cause it compiled many files (It didnt just went through all the folders saying "nothing is made for...").

Also, pkgversion is not a mandatory option of checkinstall. Ive installed many other programs that way and this is the first time this happened...
Locked