Well I can say that: git reset --hard wine-xyz definitely works - although I had some other problems when trying to compile older wine version, after first compiling newer one - I was able to compile wine-0.9.18 (with some back-patching of course), but wine-0.9.17 and below gave some runtime errors (they were compiling fine) like WINE-1.0-something not defined However I think this was because I used ccache (which gave me some other problem before - it would seam that it is not very well suited for revers regression testing), or because I didn't use: git clean -f -d(I didn't use this command because it cleared my patches from wine-git dir) Anyway - after disabling ccache and issuing above command and patching I was able to compile wine-0.9.15 on Debian Lenny ;] If anyone is interested - I can provide exact patches that must be applied to the old source in order to compile it on newer systems.