The programs built with the GCCs shipped with MSYS2 have a run-time dependency on libwinpthread-1.dll. So, if I distribute that DLL with my program, I also have to distribute its source code.
After playing a bit with pacman, I see that the DLL belongs to the package 'mingw-w64-x86_64-libwinpthread-git':
But what I don't find is a package with the source code of this library. In general, where can I find the source code for library 'libfoo' that is shipped with MSYS2 via pacman? (I'm surprised that there are no 'libfoo-src' packages with the source code for 'libfoo')
Last edit: Dani Moncayo 2014-11-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The programs build with the GCCs shipped with MSYS2 have a run-time
dependency on libwinpthread-1.dll. So, if I distribute that DLL with my
program, I also have to distribute its source code.
After playing a bit with pacman, I see that the DLL belongs to the package
'mingw-w64-x86_64-libwinpthread-git':
But what I don't find is a package with the source code of this library. In
general, where can I find the source code for library 'libfoo' that is
shipped with MSYS2 via pacman? (I'm surprised that there are no 'libfoo-src'
packages with the source code for 'libfoo')
The PKGBUILD script in that directory downloads the source from git://git.code.sf.net/p/mingw-w64/mingw-w64 and applies one patch.
In general, the Alexpux/MINGW-packages repository or the Alexpux/MSYS2-packages repository is a good starting point for finding the source code of things in MSYS2. I think the source archive you found gets generated from those PKGBUILD scripts somehow.
Last edit: David Grayson 2015-05-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are correct, we use our build system (makepkg) to generate both pre-built packages and archives with all sources, as defined in the PKGBUILD files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It would be very convenient for us (the users of MSYS2) being able of getting the source code via pacman. That is, for each binary/devel package, define a source package with the corresponding source code.
Hello,
The programs built with the GCCs shipped with MSYS2 have a run-time dependency on libwinpthread-1.dll. So, if I distribute that DLL with my program, I also have to distribute its source code.
After playing a bit with pacman, I see that the DLL belongs to the package 'mingw-w64-x86_64-libwinpthread-git':
and I also see the header files and static libraries in the package 'mingw-w64-x86_64-winpthreads-git':
But what I don't find is a package with the source code of this library. In general, where can I find the source code for library 'libfoo' that is shipped with MSYS2 via pacman? (I'm surprised that there are no 'libfoo-src' packages with the source code for 'libfoo')
Last edit: Dani Moncayo 2014-11-30
On Sun, Nov 30, 2014 at 10:13 PM, Dani Moncayo dmoncayo@users.sf.net wrote:
^ Did you read this file? Seems there's no need to supply the source
code for winpthread-1.dll which you were asking about in a previous
thread.
Answering myself: the source code for all MSYS2 packages seems to be here:
https://sourceforge.net/projects/msys2/files/REPOS/MINGW/Sources/
Last edit: Dani Moncayo 2014-12-01
Dani, you can find the source code for that package here:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-winpthreads-git
The PKGBUILD script in that directory downloads the source from git://git.code.sf.net/p/mingw-w64/mingw-w64 and applies one patch.
In general, the Alexpux/MINGW-packages repository or the Alexpux/MSYS2-packages repository is a good starting point for finding the source code of things in MSYS2. I think the source archive you found gets generated from those PKGBUILD scripts somehow.
Last edit: David Grayson 2015-05-06
You are correct, we use our build system (makepkg) to generate both pre-built packages and archives with all sources, as defined in the PKGBUILD files.
It would be very convenient for us (the users of MSYS2) being able of getting the source code via pacman. That is, for each binary/devel package, define a source package with the corresponding source code.
Cygwin (for example) does it (example: https://cygwin.com/packages/x86/cygwin64-gnutls/). Would it be possible?
TIA
I think the above is definitely a good idea. I'll report it as a ticket.