public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin-apps@cygwin.com
Subject: Re: [ITP] wget2 - modern fast parallel file and recursive website downloader
Date: Fri, 10 Jul 2020 07:27:06 +0200	[thread overview]
Message-ID: <fc19991b-1bef-cb11-150d-aeeaa97e9346@gmail.com> (raw)
In-Reply-To: <e4ed90c0-ef7e-a274-4a47-c754170ea09a@SystematicSw.ab.ca>

On 10.07.2020 03:38, Brian Inglis wrote:
> On 2020-07-09 12:50, Yaakov Selkowitz wrote:
>> On Thu, 2020-07-09 at 20:27 +0200, Marco Atzeri via Cygwin-apps wrote:
>>> On 08.07.2020 22:28, Brian Inglis wrote:
>>>> On 2020-07-08 14:05, Brian Inglis wrote:
>>>>> wget2 is the successor of wget supplying a shared library API like curl to build
>>>>> a modern, fast, multi-threaded, parallel downloader using HTTP/2, HTTP
>>>>> compression and If-Modified-Since headers; see
>>>>>
>>>>> 	https://gitlab.com/gnuwget/wget2
>>>>>
>>>>> It is currently available on Arch, Debian/Ubuntu, openSUSE, Slackware:
>>>>> see
>>>>> 	https://pkgs.org/download/wget2
>>>>>
>>>>> I could release the package as is with an exe and dll, but it should be built as
>>>>> separate bin, lib, devel, doc, and debuginfo packages, which I have never done
>>>>> before, so could do with some advice and assistance with the apporach required,
>>>>> which I based on curl, but that requires no script function overrides, and I
>>>>> believe this one may or I need some hints.
>>>>>
>>>>> I have attached my base wget2.cygport which builds one monolithic package but
>>>>> contains comments for subpackage variables, plus comments showing other files
>>>>> which I think should be included in the subpackages, and both references to
>>>>> their locations in subpkg_CONTENTS and alterbative src_install script actions if
>>>>> cygport will not move the contents into the appropriate install directory.
>>>>
>>>> Forgot to explain I also produced a summary of the files generated and/or
>>>> available for packaging under the triplet directory in manifest.list to my
>>>> previous email.
>>>>
>>>>> I also need to understand how cyg...dll package numbering should work with this
>>>>> package: base zero or one and include or exclude the 2: libwget0, libwget1,
>>>>> libwget2_0, or libwget2_1, and how to get that generated?
>>>>>
>>>>> Any advice, assistance, help, or hints from more experienced packagers would be
>>>>> welcome.
>>>>>
>>>>> I can also update and release what may be the last patched version of the
>>>>> original wget 1.20.3 (currently 1.19.1) if Eric has no time, or ITA wget if he
>>>>> agrees.
>>>>>
>>>>> I could also ITA curl from Yaakov as I use that and wget a lot in scripts and
>>>>> cron jobs.
>>>
>>> My suggestion:
>>>
>>> this in libwget2_0 (per consistency) or libwget0
>>>
>>> /usr/bin/cygwget-0.dll
>>
>> libwget0, based on the library name.
>>
>>> these in wget2
>>>
>>> /usr/bin/wget2.exe
>>> /usr/share/doc/wget2/AUTHORS
>>> /usr/share/doc/wget2/COPYING
>>> /usr/share/doc/wget2/ChangeLog
>>> /usr/share/doc/wget2/NEWS
>>> /usr/share/doc/wget2/README
>>> /usr/share/locale/ca/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/cs/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/de/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/eo/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/es/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/et/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/fi/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/fr/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/ga/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/hr/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/hu/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/id/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/it/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/ja/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/nb/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/nl/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/pl/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/pt_BR/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/ru/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/sk/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/sr/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/sv/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/tr/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/uk/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/vi/LC_MESSAGES/wget2.mo
>>> /usr/share/locale/zh_CN/LC_MESSAGES/wget2.mo
>>> plus also the manual page that it is missing
>>>
>>>
>>> What is this ? It seems a duplicate of wget2
>>>
>>> /usr/bin/wget2_noinstall.exe
> 
> Test version - the "summary" in manifest.list excludes all the test and fuzz files.

it should not be installed at at all.
Sometime I remove such files in src_install()
or you can put them in PKG_IGNORE

> 
>> Simply based on the name, I'm guessing it shouldn't be installed?
>>
>>> these in libwget2-devel or libwget-devel
>>
>> libwget-devel, based on the library name.
>>
>>> /usr/include/wget.h
>>> /usr/include/wgetver.h
>>> /usr/lib/libwget.dll.a
>>> /usr/lib/pkgconfig/libwget.pc
>>> /usr/share/man/man3/libwget-base64.3.gz
>>> /usr/share/man/man3/libwget-bitmap.3.gz
>>> /usr/share/man/man3/libwget-console.3.gz
>>> /usr/share/man/man3/libwget-dns-caching.3.gz
>>> /usr/share/man/man3/libwget-dns.3.gz
>>> /usr/share/man/man3/libwget-error.3.gz
>>> /usr/share/man/man3/libwget-hash.3.gz
>>> /usr/share/man/man3/libwget-hashmap.3.gz
>>> /usr/share/man/man3/libwget-io.3.gz
>>> /usr/share/man/man3/libwget-ip.3.gz
>>> /usr/share/man/man3/libwget-list.3.gz
>>> /usr/share/man/man3/libwget-mem.3.gz
>>> /usr/share/man/man3/libwget-net.3.gz
>>> /usr/share/man/man3/libwget-parse_atom.3.gz
>>> /usr/share/man/man3/libwget-parse_sitemap.3.gz
>>> /usr/share/man/man3/libwget-printf.3.gz
>>> /usr/share/man/man3/libwget-random.3.gz
>>> /usr/share/man/man3/libwget-robots.3.gz
>>> /usr/share/man/man3/libwget-stringmap.3.gz
>>> /usr/share/man/man3/libwget-thread.3.gz
>>> /usr/share/man/man3/libwget-utils.3.gz
>>> /usr/share/man/man3/libwget-vector.3.gz
>>> /usr/share/man/man3/libwget-xalloc.3.gz
>>> /usr/share/man/man3/libwget-xml.3.gz
> 
> Thanks guys.
> 
> Two points are not clear:
> 
> - how do I get the library to build explicitly as cygwgetN - is it just from the
> package name libwgetN and cygport will DTRT or ...?

proper built library for Cygwin are named cygwgetN.dll so you call the 
package libwget0

> 
> - can I just add the extra files (not under inst/) to the ..._CONTENTS variable
> and cygport will DTRT, or do I have to add a src_install with do... script lines
> to move the extra files under inst/, then add the corresponding paths under
> inst/ to the ..._CONTENTS variables?
> 

better you use in src_install() something like

        insinto /usr/share/man/man3
        doins ${S}/DOCS/man/man3/*

and then use the ..._CONTENTS so they are packed in the right position

see chapter 10 of
/usr/share/doc/cygport/html/manual/toc_index.html

Regards
Marco





  reply	other threads:[~2020-07-10  5:27 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-08 20:05 Brian Inglis
2020-07-08 20:28 ` Brian Inglis
2020-07-09 18:27   ` Marco Atzeri
2020-07-09 18:50     ` Yaakov Selkowitz
2020-07-10  1:38       ` Brian Inglis
2020-07-10  5:27         ` Marco Atzeri [this message]
2020-10-30 21:30           ` Brian Inglis
2020-10-30 21:34             ` Eric Blake
2020-10-30 21:57               ` [ITA] wget Brian Inglis
2020-10-31 12:50                 ` Marco Atzeri
2020-11-14 15:19                 ` Achim Gratz
2020-11-14 22:15                   ` Brian Inglis
2020-11-15  7:36                     ` ASSI
2020-11-15 17:32                       ` Brian Inglis
2020-11-16 17:23                         ` Achim Gratz
2020-11-16 21:35                           ` Brian Inglis
2020-11-17 19:10                             ` Achim Gratz
2020-11-17 23:23                               ` Brian Inglis
2020-11-18 14:23                               ` ASSI
2020-11-10  5:29           ` [ITP] wget2 - please review if anyone has time Brian Inglis
2020-11-24 21:06           ` [ITP] wget2 Brian Inglis
2020-11-27 17:57             ` Hamish McIntyre-Bhatty
2020-11-27 18:28               ` Brian Inglis
2020-11-30 14:51                 ` Hamish McIntyre-Bhatty
2020-11-30 18:29                   ` Achim Gratz

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=fc19991b-1bef-cb11-150d-aeeaa97e9346@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin-apps@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).