| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
libssl isn't required for libarchive. Remove libssl so the installed .pc
file doesn't cause consumers to subsequently overlink libssl into their
code.
This doesn't affect how the code is linked -- only consumers of the
pkg-config specified spec.
|
|
|
|
| |
We do not need to check TIME_WITH_SYS_TIME anymore. We can check
HAVE_SYS_TIME_H and not bother checking for C99.
|
|
|
|
|
|
|
|
|
| |
Otherwise there are 32/64-bit pointer conversions going on. In Windows
since MSVC2005, time_t has been 64-bit. MinGW needs a hack to get 64-bit
time_t.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hi,
Thanks for writing and maintaining libarchive!
What do you think about this trivial change that does not add "iconv" to
the pkg-config file's list of required packages unless it is actually
needed? On at least Debian GNU/Linux systems, the iconv(3) function is
part of the system C library and there is no Debian package that
installs an iconv.pc file, so I had to make this change to the Debian
package of libarchive.
Thanks again, and keep up the great work!
G'luck,
Peter
|
| |
|
| |
|
|
|
|
| |
discussion in gh-1017).
|
|
|
|
|
|
|
| |
This adds Requires.private field in pkgconfig file. Using that field,
pkgconfig pulls all the private cflags or libs while static linking.
OpenSSL static libraries require some windows system libraies. Otherwise
static liking fails with libarchive.
|
|\
| |
| | |
Revert "Fix check for openssl on Windows"
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 045e5c5a4460020e513516a5d1f3087094e67da3
For Windows platform, openssl 1.0.2 and earlier versions have
eay64 and eay32 libraries[1]. But from openssl 1.1.0 and above
versions have same library name[2] (libcrypto and libssl) like
other unix-like platforms.
[1]: https://wiki.openssl.org/index.php/Compilation_and_Installation#OpenSSL_1.0.2
[2]: https://wiki.openssl.org/index.php/Compilation_and_Installation#OpenSSL_1.1.0
|
| | |
|
|/ |
|
|
|
|
| |
Fixes #1537
|
| |
|
| |
|
| |
|
|\
| |
| | |
Instrument gcc/clang to discard unused code during link
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Analogue to the parent cmake commit, with linker flag detection.
The former two split the functions and data into separate sections
within the object file. Which makes it easier for the latter to properly
garbage collect and discard unused sections.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
|\ \
| | |
| | | |
Support libzstd compiled with compressor disabled
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
ZSTD library can be compiled with the compressor disabled, which is
handy on space restricted systems as the compressor accounts for more
than two thirds of the library size.
Detect this case and use libzstd for the decompression only.
Compression will be done using zstd binary if it's available.
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
On platforms that support the linkat(2) function we can safely
write hardlinks to symlinks as linkat(2) does not follow symlinks
by default.
Fixes #1044
|
|
|
|
| |
provide a visible struct statfs. Check for that.
|
| |
|
| |
|
|
|
|
|
|
| |
Otherwise, the preprocessor is not detected and it leads to failure with
empty $CPP variable being used on la_TYPE_UID_T, leading to a cascade of
detection errors and redefinition of some types.
|
| |
|
| |
|
|
|
|
| |
Fixes #1464
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I was investigating libarchive test failures on FreeBSD and it turns out
we get a reproducible SIGBUS for test_archive_m5, etc. Debugging this shows
that libarchive and the tests disagree when it comes to the definition of
archive_md5_ctx: libarchive assumes it's the OpenSSL type whereas the test
use the libmd type. The latter is not necessarily aligned enough to store
a pointer (16 bytes for CHERI RISC-V), so we were crashing when storing
EVP_MD_CTX* to an 8-byte-aligned archive_md5_ctx.
To avoid problems like this in the future, add a new macro to the config
header and use that to ensure that all configuration check macros have
been defined in archive_digest_private.h.
|
| |
|
|
|
| |
some older and more obscure compilers (e.g. mipspro on irix) default to the strictest standard they know instead of the most permissive. since libarchive uses c99 features in several places throughout, but does not pass appropriate cflags to parse c99 code, it will fail to compile from the configure script on these systems. this change will have autoconf check if any flags are needed for the c compiler to accept c99 code, and add them to cflags.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Make Nettle optional and OpenSSL default
Fixes #1301
|
| |
|
| |
|
|
|
|
| |
Fixes #1277
|
| |
|
| |
|
|
|
|
| |
only on platforms with openat(), fstatat() and unlinkat() support
|
| |
|
|
|
|
|
| |
Since libarchive contains AES support nowadays, libcrypto will be needed
even if all hashes are provided otherwise.
|