2014-07-28 18:34:16 -07:00
|
|
|
Developers and maintainers guide
|
|
|
|
================================
|
2014-07-28 18:29:55 -07:00
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
This document will provide some information targeted at developers, who
|
2014-07-29 19:31:51 -07:00
|
|
|
either want to build/package Wine-Compholio for their distribution, but also
|
|
|
|
for developers who would like to contribute their patches to Wine-Compholio,
|
2014-07-28 18:41:16 -07:00
|
|
|
to get them included in future releases.
|
|
|
|
|
2014-07-28 18:29:55 -07:00
|
|
|
|
|
|
|
|
2014-07-29 19:31:51 -07:00
|
|
|
Compiling Wine-Compholio
|
2014-07-28 17:33:30 -07:00
|
|
|
========================
|
|
|
|
|
2014-07-29 19:31:51 -07:00
|
|
|
**Warning:** Please note that starting with Wine-Compholio 1.7.23 it is
|
2014-07-28 18:41:16 -07:00
|
|
|
deprecated to manually apply patches without using the Makefile. To avoid
|
|
|
|
typical pitfalls for package maintainers (like trying to use the patch
|
|
|
|
commandline utility for binary patches or not updating the patchlist) it is
|
|
|
|
highly recommended to use the Makefile in order to apply all patches. This
|
|
|
|
ensures that the the correct patch utility is used, that the list of patches
|
|
|
|
is updated appropriately, and so on. Please note that it is still possible
|
|
|
|
to exclude patches if desired, take a look at the end of this document for
|
2014-07-28 17:33:30 -07:00
|
|
|
more details.
|
|
|
|
|
|
|
|
Instructions
|
|
|
|
------------
|
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
The following instructions (based on the [Gentoo
|
|
|
|
Wiki](https://wiki.gentoo.org/wiki/Netflix/Pipelight#Compiling_manually))
|
2014-07-29 19:31:51 -07:00
|
|
|
will give a short overview how to compile Wine-Compholio, but of course not
|
2014-07-28 18:41:16 -07:00
|
|
|
explain all details. Make sure to install all required Wine dependencies
|
|
|
|
before proceeding.
|
2014-07-28 17:33:30 -07:00
|
|
|
|
|
|
|
As the first step please grab the latest Wine source:
|
|
|
|
```bash
|
2014-08-24 10:10:52 -07:00
|
|
|
wget http://prdownloads.sourceforge.net/wine/wine-1.7.25.tar.bz2
|
|
|
|
wget https://github.com/compholio/wine-compholio-daily/archive/v1.7.25.tar.gz
|
2014-07-28 17:33:30 -07:00
|
|
|
```
|
2014-07-28 18:41:16 -07:00
|
|
|
|
2014-07-28 17:33:30 -07:00
|
|
|
Extract the archives:
|
|
|
|
```bash
|
|
|
|
tar xvjf wine-1*.tar.bz2
|
|
|
|
cd wine-1*
|
2014-08-24 10:10:52 -07:00
|
|
|
tar xvzf ../v1.7.25.tar.gz --strip-components 1
|
2014-07-28 17:33:30 -07:00
|
|
|
```
|
2014-07-28 18:41:16 -07:00
|
|
|
|
2014-07-28 17:33:30 -07:00
|
|
|
And apply the patches:
|
|
|
|
```bash
|
|
|
|
make -C ./patches DESTDIR=$(pwd) install
|
|
|
|
```
|
2014-07-28 18:41:16 -07:00
|
|
|
|
2014-07-28 17:33:30 -07:00
|
|
|
Afterwards run configure (you can also specify a prefix if you don't want to install
|
2014-07-29 19:31:51 -07:00
|
|
|
Wine-Compholio system-wide):
|
2014-07-28 17:33:30 -07:00
|
|
|
```bash
|
|
|
|
./configure --with-xattr
|
|
|
|
```
|
2014-07-28 18:41:16 -07:00
|
|
|
|
|
|
|
Before you continue you should make sure that `./configure` doesn't show any
|
|
|
|
warnings (look at the end of the output). If there are any warnings, this
|
|
|
|
most likely means that you're missing some important header files. Install
|
|
|
|
them and repeat the `./configure` step until all problems are fixed.
|
2014-07-28 17:33:30 -07:00
|
|
|
|
|
|
|
Afterwards compile it (and grab a cup of coffee):
|
|
|
|
```bash
|
|
|
|
make
|
|
|
|
```
|
2014-07-28 18:41:16 -07:00
|
|
|
|
2014-07-28 17:33:30 -07:00
|
|
|
And install it (you only need sudo for a system-wide installation):
|
|
|
|
```bash
|
|
|
|
sudo make install
|
|
|
|
```
|
|
|
|
|
|
|
|
Excluding patches
|
|
|
|
-----------------
|
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
It is also possible to apply only a subset of the patches, for example if
|
|
|
|
you're compiling for a distribution where PulseAudio is not installed, or
|
|
|
|
if you just don't like a specific patchset. Please note that some patchsets
|
|
|
|
depend on each other, and requesting an impossible situation might result
|
|
|
|
in a failure to apply all patches.
|
2014-07-28 17:33:30 -07:00
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
Lets assume you want to exclude the patchset in directory `DIRNAME`, then
|
|
|
|
just invoke the Makefile like this:
|
2014-07-28 17:33:30 -07:00
|
|
|
```bash
|
|
|
|
make -C ./patches DESTDIR=$(pwd) install -W DIRNAME.ok
|
|
|
|
```
|
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
Using the same method its also possible to exclude multiple patchsets. If you
|
|
|
|
want to exclude a very large number of patches, it is easier to do specify
|
|
|
|
a list of patches which should be included instead. To apply for example
|
|
|
|
only the patchsets in directory `DIRNAME1` and `DIRNAME2`, you can use:
|
2014-07-28 17:33:30 -07:00
|
|
|
```bash
|
|
|
|
make -C ./patches DESTDIR=$(pwd) PATCHLIST="DIRNAME1.ok DIRNAME2.ok" install
|
|
|
|
```
|
2014-07-28 18:29:55 -07:00
|
|
|
|
|
|
|
|
2014-07-29 19:31:51 -07:00
|
|
|
Contributing to Wine-Compholio
|
2014-07-28 18:29:55 -07:00
|
|
|
==============================
|
|
|
|
|
2014-07-29 19:31:51 -07:00
|
|
|
Please note that Wine-Compholio is not just an arbitrary collection of Wine
|
|
|
|
patches. We see Wine-Compholio as a **testing version** in preparation for
|
2014-07-28 18:41:16 -07:00
|
|
|
patches to be submitted to upstream Wine. This implies that all patches should
|
|
|
|
at least have a minimum standard quality. Unlike some other PPAs/AURs which
|
|
|
|
provide heavily patched Wine versions, we will not accept hacks for very
|
|
|
|
specific games. Such hacks often break compatibility with other applications,
|
|
|
|
which means we probably don't want to include them, sorry.
|
|
|
|
|
|
|
|
If you think your patches are indeed a proper implementation, then feel free
|
|
|
|
to contribute them. Please note that to allow possible later inclusion
|
|
|
|
into upstream Wine, we will require you to pay attention to the same
|
|
|
|
[rules](http://wiki.winehq.org/SubmittingPatches). Please be patient and
|
|
|
|
give us up to about a week to review them - we're a very small team, so
|
|
|
|
it might take some time, and we want to make sure that the implementation
|
|
|
|
doesn't contain any critical errors, which could cause regressions. If you
|
|
|
|
want to contribute huge sets of patches, we would really like you to *stay
|
|
|
|
contributing* in the future. Even if we accepted your patches, this doesn't
|
|
|
|
necessary mean we understand all of it, and if you cannot or don't want
|
|
|
|
to maintain them (especially in case of errors, or difficult rebasing),
|
|
|
|
we will probably end up removing them again.
|
|
|
|
|
|
|
|
You can also suggest adding patches written by other people - in this case
|
|
|
|
your request should include who wrote the patch. Anonymous patches which
|
|
|
|
don't include the author information aren't welcome, similar to the rules
|
|
|
|
for upstream Wine.
|
|
|
|
|
2014-07-28 18:29:55 -07:00
|
|
|
|
|
|
|
Attribution guidelines
|
|
|
|
----------------------
|
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
The Wine "Compholio" Edition repository expects all patches to conform to
|
|
|
|
Wine's (undocumented) attribution guidelines. There are a variety of ways
|
|
|
|
to attribute patches, but they all involve an additional line to the patch
|
|
|
|
subject:
|
2014-07-28 18:29:55 -07:00
|
|
|
|
|
|
|
```
|
|
|
|
commit 0000000000000000000000000000000000000000
|
|
|
|
Author: Example Author <example.email@email-provider.com>
|
|
|
|
Date: Sat Jul 26 12:31:50 2014 -0600
|
|
|
|
|
|
|
|
Name of patch.
|
|
|
|
|
|
|
|
TYPE-OF-ATTRIBUTION.
|
|
|
|
```
|
|
|
|
|
|
|
|
TYPE-OF-ATTRIBUTION can be any of the following:
|
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
`Found/Spotted by FINDER.`: The resolved issue was found by FINDER, they
|
|
|
|
should receive appropriate credit for finding the problem - even though
|
|
|
|
their patch was not used in the final implementation.
|
2014-07-28 18:29:55 -07:00
|
|
|
|
2014-07-28 18:41:16 -07:00
|
|
|
`Based on patch by AUTHOR.`: The patch created by AUTHOR was a starting point
|
|
|
|
for the patch, some modifications were made to their patch - but they should
|
|
|
|
receive credit since the original implementation was theirs.
|