Skip to content

Commit

Permalink
Merge v1.21.3 from Wget
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkiver2 committed May 3, 2022
1 parent 799b880 commit c9cca72
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ RUN set -eux \
&& case "${TLSTYPE}" in openssl) SSLPKG=libssl-dev;; gnutls) SSLPKG=gnutls-dev;; *) echo "Unknown TLSTYPE ${TLSTYPE}"; exit 1;; esac \
&& echo deb http://deb.debian.org/debian buster-backports main contrib > /etc/apt/sources.list.d/backports.list \
&& DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io update \
&& DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io install "${SSLPKG}" build-essential git bzip2 bash rsync gcc zlib1g-dev autoconf flex make automake gettext libidn11 autopoint texinfo gperf ca-certificates wget pkg-config libpsl-dev libidn2-dev lua5.1-dev \
&& DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io install "${SSLPKG}" build-essential git bzip2 bash rsync gcc zlib1g-dev autoconf autoconf-archive flex make automake gettext libidn11 autopoint texinfo gperf ca-certificates wget pkg-config libpsl-dev libidn2-dev lua5.1-dev libgpgme-dev \
&& DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -qqy --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-unsafe-io -t buster-backports install libzstd-dev zstd \
&& cd /tmp/wget \
&& ./bootstrap \
&& ./configure --with-ssl="${TLSTYPE}" -disable-nls \
&& make -j $(nproc) \
&& src/wget -V | grep -q lua
FROM scratch
COPY --from=wget_build /tmp/wget/src/wget /wget
COPY --from=wget_build /tmp/wget/src/wget /wget
2 changes: 1 addition & 1 deletion src/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ void cleanup (void);
void defaults (void);
bool run_wgetrc (const char *file, file_stats_t *);

#define MAX_LONGOPTION 26
#define MAX_LONGOPTION 29

#endif /* INIT_H */
2 changes: 1 addition & 1 deletion src/luahooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ luahooks_get_urls (const char *file, const char *url, bool is_css,

void
luahooks_finish (double start_time, double end_time,
int numurls, SUM_SIZE_INT total_downloaded_bytes,
int numurls, wgint total_downloaded_bytes,
double total_download_time)
{
if (lua == NULL || !luahooks_function_lookup ("callbacks", "finish"))
Expand Down
2 changes: 1 addition & 1 deletion src/luahooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool luahooks_can_generate_urls ();
struct luahooks_url *luahooks_get_urls (const char *file, const char *url,
bool is_css, struct iri *iri);
void luahooks_finish (double start_time, double end_time,
int numurls, SUM_SIZE_INT total_downloaded_bytes,
int numurls, wgint total_downloaded_bytes,
double total_download_time);
int luahooks_before_exit (int exit_status);

Expand Down

0 comments on commit c9cca72

Please sign in to comment.