public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Hamish McIntyre-Bhatty <hamishmb@live.co.uk>
Cc: Cygwin General Mailing List <cygwin@cygwin.com>
Subject: Re: Finding cygport/cygwin source repositories not listed at https://cygwin.org/packages/package_list.html
Date: Thu, 17 Dec 2020 16:31:08 +0000	[thread overview]
Message-ID: <DB7PR02MB39961CC35E56CB7C4A768F4CE7C40@DB7PR02MB3996.eurprd02.prod.outlook.com> (raw)
In-Reply-To: <CA+kUOa=+NsnjRkkKqjFRTEWdomAr6-EfkmxhjvUR8zCODAY=DA@mail.gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 2861 bytes --]


On 16/12/2020 21:44, Adam Dinwoodie wrote:
> On Wed, 16 Dec 2020 at 20:31, Hamish McIntyre-Bhatty wrote:
>> I have several packages I need the Cygwin source repositories for, but
>> there is no link from https://cygwin.org/packages/package_list.html to
>> the cygwin source.
>>
>> In a few cases the repositories are also out of date (mostly Python
>> stuff, probably your packages adopted from Yaakov, Marco Atzeri?).
>>
>> I was wondering if there's a good way to find these/if someone might
>> know of the top of their head if I list them?
>>
>> It's quite a lot of packages, so it's likely better if I can be given
>> pointers.
>>
>> Full disclaimer: I specifically need the source repos and not just the
>> source packages because I'm using them for an automated source bundling
>> tool for my DDRescue-GUI Windows bundle (which is open source but
>> commercial). I've spent ages writing the script and I'd rather not do it
>> over again / make lots of modifications and break it.
>>
>> Any ideas?
> Yes, but I don't think you'll like it: use the source packages, not
> the repositories. There's no obligation or expectation that package
> maintainers make their source code available in any way other than
> through providing a source package. Some do provide a public
> repository and make it readily available, but I would not be at all
> surprised if some maintainers – particularly for packages that don't
> get many upstream updates – don't use version control at all.
>
> Further, remember for GPL-like licenses you need to provide *all* the
> source code that's used to create the binaries you're distributing,
> including both the upstream source code and any Cygwin-specific
> patches or modifications. Those will normally be in two separate
> repositories, and there's no guarantee it'll be easy to find one from
> the other. Taking Git as an easy example, since it's a package I
> maintain and am familiar with: you'd need to find both
> https://github.com/me-and/Cygwin-Git/ and
> https://git.kernel.org/pub/scm/git/git.git if you wanted the
> underlying repositories, and I can't think of any way to get from one
> to the other that's not incredibly fragile. And, as I say, I suspect
> there are a bunch of packages in Cygwin where it's much more
> difficult, if not impossible.
>
> I think a much better route here would be to parse the setup.ini files
> (e.g. https://mirrorservice.org/sites/sourceware.org/pub/cygwin/x86_64/setup.ini)
> to work out the paths of the source packages that correspond to each
> of the release packages you're using, and to use those. That's going
> to be less work and also less fragile than trying to hunt down
> repositories that may not even exist.
>
> Adam

This really worked a treat, did the job much better.

Thanks so much! :)

Hamish


[-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --]
[-- Type: application/pgp-keys, Size: 3235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2020-12-17 16:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16 20:31 Hamish McIntyre-Bhatty
2020-12-16 21:44 ` Adam Dinwoodie
2020-12-17 16:31   ` Hamish McIntyre-Bhatty [this message]
2020-12-17 18:29     ` Achim Gratz
2020-12-22 12:52       ` Hamish McIntyre-Bhatty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB7PR02MB39961CC35E56CB7C4A768F4CE7C40@DB7PR02MB3996.eurprd02.prod.outlook.com \
    --to=hamishmb@live.co.uk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).