achadwick / styrene

A repacking tool that creates usable app bundles for regular Windows users out of MSYS2 binary packages.
GNU General Public License v3.0
40 stars 11 forks source link

Package source code #9

Open oscarfv opened 7 years ago

oscarfv commented 7 years ago

Some licenses (i.e. the GPL) require the distribution of the source code used to produce a binary package. This is the exact source code used for creating the binary. MSYS2 publishes that source code (see https://sourceforge.net/projects/msys2/files/REPOS/MINGW/Sources/).

It would be nice from Styrene to (optionally) create a parallel package containing the source code that corresponds to the binaries. This would greatly help people to comply with the requirements of certain software licenses.

achadwick commented 7 years ago

Sounds interesting. The snapshotting aspect will be useful.

A few thoughts:

oscarfv commented 7 years ago

To satisfy GPL-like requirements, a tarball with the .src.tar.gz files published by MSYS2 is fine. Possibly other licenses require things like separating the upstream source code from the local MSYS2 patches, etc.

MSYS2, like Arch, use the Arch Build System. If you pass the correct switch to makepkg-mingw it will download the sources and stop, instead of proceeding with the build. Those sources come from upstream though, while many MSYS2 packages are locally patched, so we really need the source tarballs uploaded by Alexey to SF.

The snapshotting aspect you mention is very interesting too and it would require those same patched source tarballs from SF.

[Please forgive me if I don't follow this discussion on the future. Most Github email notifications do not arrive at my inbox]

achadwick commented 7 years ago

Depends on #11, ideally.