Skip to content

Commit

Permalink
curl is compiled with openssl 3.2.1, qt is compiled without ssl, boos…
Browse files Browse the repository at this point in the history
…t and curl not found
  • Loading branch information
zimbora committed Mar 27, 2024
1 parent eb03856 commit e83abd5
Show file tree
Hide file tree
Showing 22 changed files with 98 additions and 929 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ if test x$use_pkgconfig = xyes; then
PKG_CHECK_MODULES([SSL], [libssl],, [AC_MSG_ERROR(openssl not found.)])
PKG_CHECK_MODULES([CRYPTO], [libcrypto],,[AC_MSG_ERROR(libcrypto not found.)])
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [BITCOIN_QT_FAIL(libprotobuf not found)])])
PKG_CHECK_MODULES([CURL], [libcurl],, [AC_MSG_ERROR(curl not found.)])
PKG_CHECK_MODULES([CURL], [libcurl],, [AC_MSG_ERROR(curl not found.)])
PKG_CHECK_MODULES([ZLIB], [zlib],, [AC_MSG_ERROR(zlib not found.)])
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode],,[BITCOIN_QT_FAIL(libqrencode not found)])])
if test x$use_qtcharts != xno; then
Expand Down
1 change: 0 additions & 1 deletion contrib/pivx-qt.pro
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ SOURCES += src/activemasternode.cpp \
src/qt/optionsmodel.cpp \
src/qt/overviewpage.cpp \
src/qt/paymentrequest.pb.cc \
src/qt/paymentrequestplus.cpp \
src/qt/paymentserver.cpp \
src/qt/peertablemodel.cpp \
src/qt/qvalidatedlineedit.cpp \
Expand Down
4 changes: 2 additions & 2 deletions depends/packages/curl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $(package)_sha256_hash=816e41809c043ff285e8c0f06a75a1fa250211bbfb2dc0a037eeef39f
$(package)_dependencies=openssl

define $(package)_set_vars
$(package)_config_opts=--with-openssl --disable-shared --enable-static
$(package)_config_opts=--with-ssl=$(host_prefix) --disable-shared --enable-static
endef

define $(package)_config_cmds
Expand All @@ -20,4 +20,4 @@ endef

define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install
endef
endef
44 changes: 24 additions & 20 deletions depends/packages/openssl.mk
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
package=openssl
$(package)_version=1.0.1k
# $(package)_download_path=https://www.openssl.org/source/old/1.0.1
$(package)_download_path=https://github.com/decenomy/depends/raw/main/
#$(package)_version=1.1.1w
#$(package)_download_path=https://www.openssl.org/source/old/1.1.1/
$(package)_version=3.2.1
$(package)_download_path=https://www.openssl.org/source/
$(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c
#$(package)_sha256_hash=cf3098950cb4d853ad95c0841f1f9c6d3dc102dccfcacd521d93925208b76ac8
$(package)_sha256_hash=83c7329fe52c850677d75e5d0b0ca245309b97e8ecbcfdc1dfdc4ab9fac35b39

define $(package)_set_vars
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)"
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl
#$(package)_config_opts=--static
$(package)_config_opts=--prefix=$(host_prefix)
$(package)_config_opts+=no-camellia
$(package)_config_opts+=no-capieng
$(package)_config_opts+=no-cast
$(package)_config_opts+=no-comp
$(package)_config_opts+=no-dso
#$(package)_config_opts+=no-dsosim
$(package)_config_opts+=no-dtls1
$(package)_config_opts+=no-ec_nistp_64_gcc_128
$(package)_config_opts+=no-gost
$(package)_config_opts+=no-gmp
$(package)_config_opts+=no-heartbeats
#$(package)_config_opts+=no-gmp
#$(package)_config_opts+=no-heartbeats
$(package)_config_opts+=no-idea
$(package)_config_opts+=no-jpake
$(package)_config_opts+=no-krb5
$(package)_config_opts+=no-libunbound
#$(package)_config_opts+=no-jpake
#$(package)_config_opts+=no-krb5
#$(package)_config_opts+=no-libunbound
$(package)_config_opts+=no-md2
$(package)_config_opts+=no-mdc2
$(package)_config_opts+=no-rc4
$(package)_config_opts+=no-rc5
$(package)_config_opts+=no-rdrand
$(package)_config_opts+=no-rfc3779
$(package)_config_opts+=no-rsax
#$(package)_config_opts+=no-rsax
$(package)_config_opts+=no-sctp
$(package)_config_opts+=no-seed
$(package)_config_opts+=no-sha0
#$(package)_config_opts+=no-sha0
$(package)_config_opts+=no-shared
$(package)_config_opts+=no-ssl-trace
$(package)_config_opts+=no-ssl2
#$(package)_config_opts+=no-ssl2
$(package)_config_opts+=no-ssl3
$(package)_config_opts+=no-static_engine
$(package)_config_opts+=no-store
#$(package)_config_opts+=no-static_engine
#$(package)_config_opts+=no-store
$(package)_config_opts+=no-unit-test
$(package)_config_opts+=no-weak-ssl-ciphers
$(package)_config_opts+=no-whirlpool
Expand Down Expand Up @@ -66,8 +69,9 @@ $(package)_config_opts_i686_mingw32=mingw
endef

define $(package)_preprocess_cmds
sed -i.old "/define DATE/d" util/mkbuildinf.pl && \
sed -i.old "s|engines apps test|engines|" Makefile.org
sed -i.old 's/^#define DATE.*/#define DATE 0/' util/mkbuildinf.pl
#sed -i.old "/define DATE/d" util/mkbuildinf.pl && \
#sed -i.old "s|engines apps test|engines|" Makefile.org
endef

define $(package)_config_cmds
Expand All @@ -79,9 +83,9 @@ define $(package)_build_cmds
endef

define $(package)_stage_cmds
$(MAKE) INSTALL_PREFIX=$($(package)_staging_dir) -j1 install_sw
$(MAKE) DESTDIR=$($(package)_staging_dir) -j1 install_sw
endef

define $(package)_postprocess_cmds
rm -rf share bin etc
endef
endef
5 changes: 3 additions & 2 deletions depends/packages/qt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(package)_download_path=https://github.com/decenomy/depends/raw/main/
$(package)_suffix=opensource-src-$($(package)_version).tar.xz
$(package)_file_name=qtbase-$($(package)_suffix)
$(package)_sha256_hash=d5a97381b9339c0fbaf13f0c05d599a5c999dcf94145044058198987183fed65
$(package)_dependencies=openssl zlib
$(package)_dependencies=zlib
$(package)_linux_dependencies=freetype fontconfig libxcb libX11 xproto libXext
$(package)_build_subdir=qtbase
$(package)_qt_libs=corelib network widgets gui plugins testlib concurrent
Expand Down Expand Up @@ -65,7 +65,8 @@ $(package)_config_opts += -no-xinput2
$(package)_config_opts += -nomake examples
$(package)_config_opts += -nomake tests
$(package)_config_opts += -opensource
$(package)_config_opts += -openssl-linked
#$(package)_config_opts += -openssl-linked
$(package)_config_opts += -no-openssl
$(package)_config_opts += -optimized-qmake
$(package)_config_opts += -pkg-config
$(package)_config_opts += -prefix $(host_prefix)
Expand Down
1 change: 0 additions & 1 deletion src/Makefile.qt.include
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ BITCOIN_QT_WALLET_CPP = \
qt/coincontroltreewidget.cpp \
qt/editaddressdialog.cpp \
qt/openuridialog.cpp \
qt/paymentrequestplus.cpp \
qt/paymentserver.cpp \
qt/recentrequeststablemodel.cpp \
qt/transactionfilterproxy.cpp \
Expand Down
12 changes: 1 addition & 11 deletions src/Makefile.qttest.include
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ TESTS += qt/test/test_pivx-qt

TEST_QT_MOC_CPP = qt/test/moc_uritests.cpp

if ENABLE_WALLET
TEST_QT_MOC_CPP += qt/test/moc_paymentservertests.cpp
endif

TEST_QT_H = \
qt/test/uritests.h \
qt/test/paymentrequestdata.h \
qt/test/paymentservertests.h
qt/test/uritests.h

qt_test_test_pivx_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
Expand All @@ -22,10 +16,6 @@ qt_test_test_pivx_qt_SOURCES = \
qt/test/test_main.cpp \
qt/test/uritests.cpp \
$(TEST_QT_H)
if ENABLE_WALLET
qt_test_test_pivx_qt_SOURCES += \
qt/test/paymentservertests.cpp
endif

nodist_qt_test_test_pivx_qt_SOURCES = $(TEST_QT_MOC_CPP)

Expand Down
1 change: 1 addition & 0 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ extern uint64_t nLastBlockTx;
extern uint64_t nLastBlockSize;
extern const std::string strMessageMagic;
extern int64_t nTimeBestReceived;
extern int64_t nMoneySupply;

// Best block section
extern Mutex g_best_block_mutex;
Expand Down
1 change: 0 additions & 1 deletion src/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ SET(QT_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/coincontroltreewidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/editaddressdialog.cpp
${CMAKE_CURRENT_SOURCE_DIR}/openuridialog.cpp
${CMAKE_CURRENT_SOURCE_DIR}/paymentrequestplus.cpp
${CMAKE_CURRENT_SOURCE_DIR}/paymentserver.cpp
${CMAKE_CURRENT_SOURCE_DIR}/recentrequeststablemodel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/transactionfilterproxy.cpp
Expand Down
205 changes: 0 additions & 205 deletions src/qt/paymentrequestplus.cpp

This file was deleted.

Loading

0 comments on commit e83abd5

Please sign in to comment.