mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
xar: rebuild for openssl3
This commit is contained in:
parent
75ab3b2f10
commit
77f8b10bf3
5 changed files with 120 additions and 59 deletions
95
srcpkgs/xar/patches/autoconf.patch
Normal file
95
srcpkgs/xar/patches/autoconf.patch
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
From a14be07c0aae3bf6f732d1ca5f625ba375702121 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andrew Childs <andrew.childs@bibo.com.ph>
|
||||||
|
Date: Sun, 15 Nov 2020 19:12:33 +0900
|
||||||
|
Subject: [PATCH 1/2] Add useless descriptions to AC_DEFINE
|
||||||
|
|
||||||
|
Removes autoheader warnings.
|
||||||
|
---
|
||||||
|
configure.ac | 42 +++++++++++++++++++++---------------------
|
||||||
|
1 file changed, 21 insertions(+), 21 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/xar/configure.ac b/xar/configure.ac
|
||||||
|
index 812b5ff..358ab89 100644
|
||||||
|
--- a/xar/configure.ac
|
||||||
|
+++ b/xar/configure.ac
|
||||||
|
@@ -210,48 +210,48 @@ AC_CHECK_MEMBERS([struct stat.st_flags])
|
||||||
|
|
||||||
|
AC_CHECK_SIZEOF(uid_t)
|
||||||
|
if test $ac_cv_sizeof_uid_t = "4"; then
|
||||||
|
-AC_DEFINE(UID_STRING, RId32)
|
||||||
|
-AC_DEFINE(UID_CAST, (uint32_t))
|
||||||
|
+AC_DEFINE([UID_STRING], RId32, [UID_STRING])
|
||||||
|
+AC_DEFINE([UID_CAST], (uint32_t), [UID_CAST])
|
||||||
|
elif test $ac_cv_sizeof_uid_t = "8"; then
|
||||||
|
-AC_DEFINE(UID_STRING, PRId64)
|
||||||
|
-AC_DEFINE(UID_CAST, (uint64_t))
|
||||||
|
+AC_DEFINE([UID_STRING], PRId64, [UID_STRING])
|
||||||
|
+AC_DEFINE([UID_CAST], (uint64_t), [UID_CAST])
|
||||||
|
else
|
||||||
|
AC_ERROR(can not detect the size of your system's uid_t type)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_SIZEOF(gid_t)
|
||||||
|
if test $ac_cv_sizeof_gid_t = "4"; then
|
||||||
|
-AC_DEFINE(GID_STRING, PRId32)
|
||||||
|
-AC_DEFINE(GID_CAST, (uint32_t))
|
||||||
|
+AC_DEFINE([GID_STRING], PRId32, [GID_STRING])
|
||||||
|
+AC_DEFINE([GID_CAST], (uint32_t), [GID_CAST])
|
||||||
|
elif test $ac_cv_sizeof_gid_t = "8"; then
|
||||||
|
-AC_DEFINE(GID_STRING, PRId64)
|
||||||
|
-AC_DEFINE(GID_CAST, (uint64_t))
|
||||||
|
+AC_DEFINE([GID_STRING], PRId64, [GID_STRING])
|
||||||
|
+AC_DEFINE([GID_CAST], (uint64_t), [GID_CAST])
|
||||||
|
else
|
||||||
|
AC_ERROR(can not detect the size of your system's gid_t type)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_SIZEOF(ino_t)
|
||||||
|
if test $ac_cv_sizeof_ino_t = "4"; then
|
||||||
|
-AC_DEFINE(INO_STRING, PRId32)
|
||||||
|
-AC_DEFINE(INO_HEXSTRING, PRIx32)
|
||||||
|
-AC_DEFINE(INO_CAST, (uint32_t))
|
||||||
|
+AC_DEFINE([INO_STRING], PRId32, [INO_STRING])
|
||||||
|
+AC_DEFINE([INO_HEXSTRING], PRIx32, [INO_HEXSTRING])
|
||||||
|
+AC_DEFINE([INO_CAST], (uint32_t), [INO_CAST])
|
||||||
|
elif test $ac_cv_sizeof_ino_t = "8"; then
|
||||||
|
-AC_DEFINE(INO_STRING, PRId64)
|
||||||
|
-AC_DEFINE(INO_HEXSTRING, PRIx64)
|
||||||
|
-AC_DEFINE(INO_CAST, (uint64_t))
|
||||||
|
+AC_DEFINE([INO_STRING], PRId64, [INO_STRING])
|
||||||
|
+AC_DEFINE([INO_HEXSTRING], PRIx64, [INO_HEXSTRING])
|
||||||
|
+AC_DEFINE([INO_CAST], (uint64_t), [INO_CAST])
|
||||||
|
else
|
||||||
|
AC_ERROR(can not detect the size of your system's ino_t type)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_SIZEOF(dev_t)
|
||||||
|
if test $ac_cv_sizeof_dev_t = "4"; then
|
||||||
|
-AC_DEFINE(DEV_STRING, PRId32)
|
||||||
|
-AC_DEFINE(DEV_HEXSTRING, PRIx32)
|
||||||
|
-AC_DEFINE(DEV_CAST, (uint32_t))
|
||||||
|
+AC_DEFINE([DEV_STRING], PRId32, [DEV_STRING])
|
||||||
|
+AC_DEFINE([DEV_HEXSTRING], PRIx32, [DEV_HEXSTRING])
|
||||||
|
+AC_DEFINE([DEV_CAST], (uint32_t), [DEV_CAST])
|
||||||
|
elif test $ac_cv_sizeof_dev_t = "8"; then
|
||||||
|
-AC_DEFINE(DEV_STRING, PRId64)
|
||||||
|
-AC_DEFINE(DEV_HEXSTRING, PRIx64)
|
||||||
|
-AC_DEFINE(DEV_CAST, (uint64_t))
|
||||||
|
+AC_DEFINE([DEV_STRING], PRId64, [DEV_STRING])
|
||||||
|
+AC_DEFINE([DEV_HEXSTRING], PRIx64, [DEV_HEXSTRING])
|
||||||
|
+AC_DEFINE([DEV_CAST], (uint64_t), [DEV_CAST])
|
||||||
|
else
|
||||||
|
AC_ERROR(can not detect the size of your system's dev_t type)
|
||||||
|
fi
|
||||||
|
@@ -261,7 +261,7 @@ AC_CHECK_LIB(acl, acl_get_file)
|
||||||
|
dnl Check for paths
|
||||||
|
AC_PREFIX_DEFAULT(/usr/local)
|
||||||
|
|
||||||
|
-AC_CHECK_FUNC([asprintf], AC_DEFINE([HAVE_ASPRINTF]))
|
||||||
|
+AC_CHECK_FUNC([asprintf], AC_DEFINE([HAVE_ASPRINTF], [], [HAVE_ASPRINTF]))
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Configure libxml2.
|
||||||
|
--
|
||||||
|
2.28.0
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
--- a/configure 2012-08-23 16:25:41.891044934 +0200
|
--- a/xar/configure.ac
|
||||||
+++ b/configure 2012-08-23 16:25:47.690906017 +0200
|
+++ b/xar/configure.ac
|
||||||
@@ -3277,7 +3277,7 @@ case "${host}" in
|
@@ -136,7 +136,7 @@
|
||||||
CFLAGS="$CFLAGS"
|
|
||||||
abi="elf"
|
abi="elf"
|
||||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
dnl Linux needs this for things like asprintf() and poll() flags.
|
||||||
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||||
- RPATH="-Wl,-rpath,"
|
- RPATH="-Wl,-rpath,"
|
||||||
+ RPATH=""
|
+ RPATH=""
|
||||||
;;
|
;;
|
||||||
*-*-netbsd*)
|
*-*-netbsd*)
|
||||||
echo "$as_me:$LINENO: checking ABI" >&5
|
AC_MSG_CHECKING([ABI])
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- a/lib/ext2.c
|
--- a/xar/lib/ext2.c
|
||||||
+++ b/lib/ext2.c
|
+++ b/xar/lib/ext2.c
|
||||||
@@ -139,8 +139,10 @@
|
@@ -139,8 +139,10 @@
|
||||||
if(! (flags & ~EXT2_NOCOMPR_FL) )
|
if(! (flags & ~EXT2_NOCOMPR_FL) )
|
||||||
x_addprop(f, "NoCompBlock");
|
x_addprop(f, "NoCompBlock");
|
||||||
|
|
|
@ -1,54 +1,14 @@
|
||||||
Reason: The OpenSSL_add_all_ciphers api doesn't was removed in OpenSSL 1.1
|
Reason: The OpenSSL_add_all_ciphers api doesn't was removed in OpenSSL 1.1
|
||||||
so we just replace the check with something that exists in OpenSSL and LibreSSL
|
so we just replace the check with something that exists in OpenSSL and LibreSSL
|
||||||
|
|
||||||
---
|
--- a/xar/configure.ac
|
||||||
--- a/configure 2012-09-17 13:30:07.000000000 +0200
|
+++ b/xar/configure.ac
|
||||||
+++ b/configure 2012-09-17 13:30:07.000000000 +0200
|
@@ -329,7 +329,7 @@
|
||||||
@@ -4878,9 +4878,9 @@
|
dnl
|
||||||
|
have_libcrypto="1"
|
||||||
done
|
AC_CHECK_HEADERS([openssl/evp.h], , [have_libcrypto="0"])
|
||||||
|
-AC_CHECK_LIB([crypto], [OpenSSL_add_all_ciphers], , [have_libcrypto="0"])
|
||||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL_add_all_ciphers in -lcrypto" >&5
|
+AC_CHECK_LIB([crypto], [OPENSSL_init_crypto], , [have_libcrypto="0"])
|
||||||
-$as_echo_n "checking for OpenSSL_add_all_ciphers in -lcrypto... " >&6; }
|
if test "x${have_libcrypto}" = "x0" ; then
|
||||||
-if ${ac_cv_lib_crypto_OpenSSL_add_all_ciphers+:} false; then :
|
AC_MSG_ERROR([Cannot build without libcrypto (OpenSSL)])
|
||||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init_crypto in -lcrypto" >&5
|
|
||||||
+$as_echo_n "checking for OPENSSL_init_crypto in -lcrypto... " >&6; }
|
|
||||||
+if ${ac_cv_lib_crypto_OPENSSL_init_crypto+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
|
||||||
@@ -4894,27 +4894,27 @@
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
#endif
|
|
||||||
-char OpenSSL_add_all_ciphers ();
|
|
||||||
+char OPENSSL_init_crypto ();
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
-return OpenSSL_add_all_ciphers ();
|
|
||||||
+return OPENSSL_init_crypto ();
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
- ac_cv_lib_crypto_OpenSSL_add_all_ciphers=yes
|
|
||||||
+ ac_cv_lib_crypto_OPENSSL_init_crypto=yes
|
|
||||||
else
|
|
||||||
- ac_cv_lib_crypto_OpenSSL_add_all_ciphers=no
|
|
||||||
+ ac_cv_lib_crypto_OPENSSL_init_crypto=no
|
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
|
||||||
fi
|
|
||||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OpenSSL_add_all_ciphers" >&5
|
|
||||||
-$as_echo "$ac_cv_lib_crypto_OpenSSL_add_all_ciphers" >&6; }
|
|
||||||
-if test "x$ac_cv_lib_crypto_OpenSSL_add_all_ciphers" = xyes; then :
|
|
||||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_init_crypto" >&5
|
|
||||||
+$as_echo "$ac_cv_lib_crypto_OPENSSL_init_crypto" >&6; }
|
|
||||||
+if test "x$ac_cv_lib_crypto_OPENSSL_init_crypto" = xyes; then :
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define HAVE_LIBCRYPTO 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
# Template file for 'xar'
|
# Template file for 'xar'
|
||||||
pkgname=xar
|
pkgname=xar
|
||||||
version=1.6.1
|
version=1.6.1
|
||||||
revision=9
|
revision=10
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
build_wrksrc="xar"
|
||||||
configure_args="ac_cv_sizeof_uid_t=4"
|
configure_args="ac_cv_sizeof_uid_t=4"
|
||||||
|
hostmakedepends="automake"
|
||||||
makedepends="zlib-devel bzip2-devel e2fsprogs-devel acl-devel libxml2-devel openssl-devel"
|
makedepends="zlib-devel bzip2-devel e2fsprogs-devel acl-devel libxml2-devel openssl-devel"
|
||||||
short_desc="Archiver for the eXtensible ARchiver format"
|
short_desc="Archiver for the eXtensible ARchiver format"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -19,6 +21,10 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
autoreconf -fi
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue