Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151269741
D20844.id59353.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
9 KB
Referenced Files
None
Subscribers
None
D20844.id59353.diff
View Options
Index: security/razorback-api/Makefile
===================================================================
--- security/razorback-api/Makefile
+++ security/razorback-api/Makefile
@@ -15,6 +15,7 @@
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libconfig.so:devel/libconfig \
+ libssh.so:security/libssh \
libuuid.so:misc/e2fsprogs-libuuid \
libcurl.so:ftp/curl \
libjson-c.so:devel/json-c
@@ -37,9 +38,8 @@
.include <bsd.port.pre.mk>
-.if ${SSL_DEFAULT} == base
-BROKEN_FreeBSD_12= incomplete definition of type 'struct rsa_st'
-BROKEN_FreeBSD_13= incomplete definition of type 'struct rsa_st'
+.if ${SSL_DEFAULT} == base && ${OSREL} >= 12
+EXTRA_PATCHES+= ${FILESDIR}/extrapatch-openssl11
.endif
post-patch:
Index: security/razorback-api/files/extrapatch-openssl11
===================================================================
--- /dev/null
+++ security/razorback-api/files/extrapatch-openssl11
@@ -0,0 +1,59 @@
+--- include/razorback/types.h.orig 2019-07-03 11:01:48.211000000 -0700
++++ include/razorback/types.h 2019-07-03 11:01:57.144863000 -0700
+@@ -56,7 +56,7 @@ struct Hash
+ uint32_t iType; ///< The hash Type.
+ uint32_t iSize; ///< size of the data stored, must be the same for all hashes in system
+ uint8_t *pData; ///< actual data of the hash
+- EVP_MD_CTX CTX; ///< Private hash data.
++ EVP_MD_CTX *CTX; ///< Private hash data.
+ uint32_t iFlags; ///< Hash Flags.
+ };
+
+--- src/hash.c.orig 2019-07-03 11:04:34.397139000 -0700
++++ src/hash.c 2019-07-03 11:08:44.895495000 -0700
+@@ -96,7 +96,8 @@ Hash_Init_OpenSSL(struct Hash *hash)
+ return false;
+ }
+
+- EVP_DigestInit(&hash->CTX, m);
++ hash->CTX = EVP_MD_CTX_new();
++ EVP_DigestInit(hash->CTX, m);
+ return true;
+ }
+
+@@ -129,7 +130,7 @@ Hash_Update (struct Hash * p_pHash, uint8_t * p_pData,
+ ASSERT (p_pHash->pData != NULL);
+ ASSERT (p_pHash->iType > 0);
+ ASSERT (!(p_pHash->iFlags & HASH_FLAG_FINAL));
+- EVP_DigestUpdate(&p_pHash->CTX, p_pData, p_iLength);
++ EVP_DigestUpdate(p_pHash->CTX, p_pData, p_iLength);
+ return true;
+ }
+ SO_PUBLIC bool
+@@ -143,7 +144,7 @@ Hash_Update_File (struct Hash * p_pHash, FILE *file)
+ ASSERT (!(p_pHash->iFlags & HASH_FLAG_FINAL));
+ while((len = fread(data,1,4096, file)) > 0)
+ {
+- EVP_DigestUpdate(&p_pHash->CTX, data, len);
++ EVP_DigestUpdate(p_pHash->CTX, data, len);
+ }
+ rewind(file);
+ return true;
+@@ -156,7 +157,7 @@ Hash_Finalize (struct Hash * p_pHash)
+ ASSERT (p_pHash->pData != NULL);
+ ASSERT (p_pHash->iType > 0);
+ ASSERT (!(p_pHash->iFlags & HASH_FLAG_FINAL));
+- EVP_DigestFinal(&p_pHash->CTX, p_pHash->pData, &p_pHash->iSize);
++ EVP_DigestFinal(p_pHash->CTX, p_pHash->pData, &p_pHash->iSize);
+ p_pHash->iFlags = p_pHash->iFlags | HASH_FLAG_FINAL;
+ return true;
+ }
+@@ -186,7 +187,7 @@ Hash_Destroy (struct Hash *p_pHash)
+ if (p_pHash->pData != NULL)
+ free (p_pHash->pData);
+
+- EVP_MD_CTX_cleanup(&p_pHash->CTX);
++ EVP_MD_CTX_free(p_pHash->CTX);
+ free(p_pHash);
+ }
+
Index: security/razorback-api/files/patch-Makefile.in
===================================================================
--- /dev/null
+++ security/razorback-api/files/patch-Makefile.in
@@ -0,0 +1,19 @@
+--- Makefile.in.orig 2019-07-03 10:16:17.248064000 -0700
++++ Makefile.in 2019-07-03 10:16:37.888155000 -0700
+@@ -52,7 +52,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/common_m4/set_dirs.m4 \
+ $(top_srcdir)/common_m4/standard_headers_functions.m4 \
+ $(top_srcdir)/common_m4/standard_options.m4 \
+- $(top_srcdir)/libssh/configure.m4 \
+ $(top_srcdir)/common_m4/compiler_options.m4 \
+ $(top_srcdir)/common_m4/cflags.m4 $(top_srcdir)/configure.ac
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+@@ -262,7 +261,7 @@ target_alias = @target_alias@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = m4 etc include libssh src tests
++SUBDIRS = m4 etc include src tests
+ EXTRA_DIST = BUGS COPYING INSTALL LICENSE README TODO
+ pkgconfigdir = $(prefix)/libdata/pkgconfig
+ pkgconfig_DATA = razorback.pc
Index: security/razorback-api/files/patch-configure
===================================================================
--- /dev/null
+++ security/razorback-api/files/patch-configure
@@ -0,0 +1,22 @@
+--- configure.orig 2019-07-03 10:16:22.080221000 -0700
++++ configure 2019-07-03 10:17:08.000445000 -0700
+@@ -13050,7 +13050,7 @@ echo "CFLAGS set to $CFLAGS"
+
+
+
+-ac_config_files="$ac_config_files razorback.pc Makefile m4/Makefile etc/Makefile include/Makefile src/Makefile libssh/Makefile libssh/src/Makefile libssh/src/threads/Makefile libssh/include/Makefile tests/Makefile"
++ac_config_files="$ac_config_files razorback.pc Makefile m4/Makefile etc/Makefile include/Makefile src/Makefile tests/Makefile"
+
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
+@@ -14041,10 +14041,6 @@ do
+ "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
+ "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+- "libssh/Makefile") CONFIG_FILES="$CONFIG_FILES libssh/Makefile" ;;
+- "libssh/src/Makefile") CONFIG_FILES="$CONFIG_FILES libssh/src/Makefile" ;;
+- "libssh/src/threads/Makefile") CONFIG_FILES="$CONFIG_FILES libssh/src/threads/Makefile" ;;
+- "libssh/include/Makefile") CONFIG_FILES="$CONFIG_FILES libssh/include/Makefile" ;;
+ "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
Index: security/razorback-api/files/patch-etc-Makefile.in
===================================================================
--- /dev/null
+++ security/razorback-api/files/patch-etc-Makefile.in
@@ -0,0 +1,10 @@
+--- etc/Makefile.in.orig 2019-07-03 11:14:48.837057000 -0700
++++ etc/Makefile.in 2019-07-03 11:14:57.333020000 -0700
+@@ -48,7 +48,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/common_m4/set_dirs.m4 \
+ $(top_srcdir)/common_m4/standard_headers_functions.m4 \
+ $(top_srcdir)/common_m4/standard_options.m4 \
+- $(top_srcdir)/libssh/configure.m4 \
+ $(top_srcdir)/common_m4/compiler_options.m4 \
+ $(top_srcdir)/common_m4/cflags.m4 $(top_srcdir)/configure.ac
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
Index: security/razorback-api/files/patch-include-Makefile.in
===================================================================
--- /dev/null
+++ security/razorback-api/files/patch-include-Makefile.in
@@ -0,0 +1,10 @@
+--- include/Makefile.in.orig 2019-07-03 11:15:28.918674000 -0700
++++ include/Makefile.in 2019-07-03 11:15:34.477248000 -0700
+@@ -49,7 +49,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/common_m4/set_dirs.m4 \
+ $(top_srcdir)/common_m4/standard_headers_functions.m4 \
+ $(top_srcdir)/common_m4/standard_options.m4 \
+- $(top_srcdir)/libssh/configure.m4 \
+ $(top_srcdir)/common_m4/compiler_options.m4 \
+ $(top_srcdir)/common_m4/cflags.m4 $(top_srcdir)/configure.ac
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
Index: security/razorback-api/files/patch-m4-Makefile.in
===================================================================
--- /dev/null
+++ security/razorback-api/files/patch-m4-Makefile.in
@@ -0,0 +1,10 @@
+--- m4/Makefile.in.orig 2019-07-03 11:16:02.965284000 -0700
++++ m4/Makefile.in 2019-07-03 11:16:07.044879000 -0700
+@@ -47,7 +47,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/common_m4/set_dirs.m4 \
+ $(top_srcdir)/common_m4/standard_headers_functions.m4 \
+ $(top_srcdir)/common_m4/standard_options.m4 \
+- $(top_srcdir)/libssh/configure.m4 \
+ $(top_srcdir)/common_m4/compiler_options.m4 \
+ $(top_srcdir)/common_m4/cflags.m4 $(top_srcdir)/configure.ac
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
Index: security/razorback-api/files/patch-src-Makefile.in
===================================================================
--- /dev/null
+++ security/razorback-api/files/patch-src-Makefile.in
@@ -0,0 +1,23 @@
+--- src/Makefile.in.orig 2019-07-03 11:16:51.512300000 -0700
++++ src/Makefile.in 2019-07-03 11:17:24.953401000 -0700
+@@ -50,7 +50,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/common_m4/set_dirs.m4 \
+ $(top_srcdir)/common_m4/standard_headers_functions.m4 \
+ $(top_srcdir)/common_m4/standard_options.m4 \
+- $(top_srcdir)/libssh/configure.m4 \
+ $(top_srcdir)/common_m4/compiler_options.m4 \
+ $(top_srcdir)/common_m4/cflags.m4 $(top_srcdir)/configure.ac
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+@@ -375,9 +374,9 @@ transfer/http.c \
+ transfer/ssh.c \
+ uuids.c
+
+-librazorback_api_la_CFLAGS = -DBUILDING_SO -I$(top_srcdir)/libssh/include -I$(top_srcdir)/include
+-librazorback_api_la_LDFLAGS = -version-info @APIVERSION@ @XCCFLAGS@ ../libssh/src/libssh.la
+-AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)/libssh/include -I$(top_srcdir)/include @extra_incl@
++librazorback_api_la_CFLAGS = -DBUILDING_SO -I$(top_srcdir)/include
++librazorback_api_la_LDFLAGS = -version-info @APIVERSION@ @XCCFLAGS@ -lssh
++AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)/include @extra_incl@
+ all: all-am
+
+ .SUFFIXES:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 5:42 AM (15 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31080481
Default Alt Text
D20844.id59353.diff (9 KB)
Attached To
Mode
D20844: Update security/razorback-api to compile with OpenSSL 1.1.x.
Attached
Detach File
Event Timeline
Log In to Comment