axel: bump to version 2.15
PATCH v3 1/1 axel: bump to version 2.15
- Change upstream URL.
- Add optional dependency on libressl/openssl.
- Switch to autotools-package.
---
changes from v2:
- comments on ac_cv_prog_cc_c99 and _POSIX_C_SOURCE
changes from v1:
- added missing AXEL_SOURCE
- added ac_cv_prog_cc_c99 to override C99 test
- added _POSIX_C_SOURCE to compile against uclibc
package/axel/Config.in | 2 +- package/axel/axel.hash | 3 +-- package/axel/axel.mk | 43 +++++++++++++++++++------------------------ 3 files changed, 21 insertions(+), 27 deletions(-)
package/axel/Config.in +1 -1
@@ -4,7 +4,7 @@ config BR2_PACKAGE_AXEL help HTTP/FTP download accelerator. - http://axel.alioth.debian.org/ + https://github.com/axel-download-accelerator/axel/ comment "axel needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
package/axel/axel.hash +1 -2
@@ -1,2 +1 @@ -# Locally calculated -sha256 359a57ab4e354bcb6075430d977c59d33eb3e2f1415a811948fa8ae657ca8036 axel-2.4.tar.gz +sha256 70daa27abca5a3f1abe4be833d8f64205ac422416f5bcf396856eb6dd0fe9194 axel-2.15.tar.xz
package/axel/axel.mk +19 -24
52 lines not on this page · raw message
Signature · 1 line
2.14.2
PATCH v3 1/1 axel: bump to version 2.15
Hello,
package/axel/axel.mk line 19
Quoted 6 lines · Ismael Luceno
package/axel/axel.mk +6
-0+AXEL_CFLAGS = -D_POSIX_C_SOURCE=200112L +# _POSIX_C_SOURCE required to compile against uClibc +AXEL_CONF_OPTS = \ + ac_cv_prog_cc_c99=-std=c99 \ + CFLAGS="$(TARGET_CFLAGS) $(AXEL_CFLAGS)" +# ac_cv_prog_cc_c99 is required because the C99 test relies on wchar_t
Somewhat weird to have the comment *after* the code. I believe it's common practice to have comments *before* the thing being commented.
That being said, I still don't understand those lines. Indeed, I've been able to build with your patch applied, minus those custom AXEL_CFLAGS/AXEL_CONF_OPTS with no problem:
br-arm-cortex-m4-full [1/5]: OK
br-i386-pentium-mmx-musl [2/5]: OK
br-powerpc64-power7-glibc [3/5]: OK
br-xtensa-full [4/5]: OK
mips64el-ctng_n64-linux-gnu [5/5]: OKThis has tested 2 uClibc toolchains, 2 glibc toolchains and one musl toolchain, and all succeeded.
Could you explain which specific problem you are fixing here with those custom flags, and under which conditions you produce a failure without those flags?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v3 1/1 axel: bump to version 2.15
Quoted 24 lines · Thomas Petazzoni
Hello,
package/axel/axel.mk line 19
Quoted 6 lines · Ismael Luceno
package/axel/axel.mk +6
-0+AXEL_CFLAGS = -D_POSIX_C_SOURCE=200112L +# _POSIX_C_SOURCE required to compile against uClibc +AXEL_CONF_OPTS = \ + ac_cv_prog_cc_c99=-std=c99 \ + CFLAGS="$(TARGET_CFLAGS) $(AXEL_CFLAGS)" +# ac_cv_prog_cc_c99 is required because the C99 test relies on wchar_tSomewhat weird to have the comment *after* the code. I believe it's common practice to have comments *before* the thing being commented.
That being said, I still don't understand those lines. Indeed, I've been able to build with your patch applied, minus those custom AXEL_CFLAGS/AXEL_CONF_OPTS with no problem:
br-arm-cortex-m4-full [1/5]: OK br-i386-pentium-mmx-musl [2/5]: OK br-powerpc64-power7-glibc [3/5]: OK br-xtensa-full [4/5]: OK mips64el-ctng_n64-linux-gnu [5/5]: OK
Quoted 6 lines
This has tested 2 uClibc toolchains, 2 glibc toolchains and one musl toolchain, and all succeeded.
Could you explain which specific problem you are fixing here with those custom flags, and under which conditions you produce a failure without those flags?
The C99 test doesn't pass unless BR2_TOOLCHAIN_BUILDROOT_WCHAR=y, but axel doesn't use wchar_t; that's why it needs to be overriden.
Without -D_POSIX_C_SOURCE=200112L it's failing for me, against uclibc-ng 1.0.26. Now that I think about it, -std=c99 might be causing that.