Opened 2 years ago

Last modified 12 months ago

#63893 assigned defect

git-crypt @0.6.0_3 fails to install with openssl 3

Reported by: BenSjoberg (Ben Sjoberg) Owned by: nareshov (Naresh V.)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: git-crypt

Description

As mentioned in https://trac.macports.org/ticket/63856, git-crypt seems to have been broken by the move to openssl 3.0. I'm on Big Sur 11.6.1 using Xcode 13.1 and I get this error when trying to install this port:

:info:build make: Entering directory `/opt/local/var/macports/build/_Users_bsjoberg_projects_macports-ports_devel_git-crypt/git-crypt/work/AGWA-git-crypt-0d7d882'
:info:build /usr/bin/clang++ -Os -stdlib=libc++ -arch x86_64 -std=c++11   -c -o crypto-openssl-10.o crypto-openssl-10.cpp
:info:build crypto-openssl-10.cpp:59:6: warning: 'AES_set_encrypt_key' is deprecated [-Wdeprecated-declarations]
:info:build         if (AES_set_encrypt_key(raw_key, KEY_LEN * 8, &(impl->key)) != 0) {
:info:build             ^
:info:build /opt/local/include/openssl/aes.h:50:1: note: 'AES_set_encrypt_key' has been explicitly marked deprecated here
:info:build OSSL_DEPRECATEDIN_3_0
:info:build ^
:info:build /opt/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
:info:build #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
:info:build                                                 ^
:info:build /opt/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
:info:build #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
:info:build                                                    ^
:info:build crypto-openssl-10.cpp:74:2: warning: 'AES_encrypt' is deprecated [-Wdeprecated-declarations]
:info:build         AES_encrypt(plain, cipher, &(impl->key));
:info:build         ^
:info:build /opt/local/include/openssl/aes.h:56:1: note: 'AES_encrypt' has been explicitly marked deprecated here
:info:build OSSL_DEPRECATEDIN_3_0
:info:build ^
:info:build /opt/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
:info:build #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
:info:build                                                 ^
:info:build /opt/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
:info:build #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
:info:build                                                    ^
:info:build crypto-openssl-10.cpp:78:11: error: field has incomplete type 'HMAC_CTX' (aka 'hmac_ctx_st')
:info:build         HMAC_CTX ctx;
:info:build                  ^
:info:build /opt/local/include/openssl/types.h:132:16: note: forward declaration of 'hmac_ctx_st'
:info:build typedef struct hmac_ctx_st HMAC_CTX;
:info:build                ^
:info:build 2 warnings and 1 error generated.
:info:build make: *** [crypto-openssl-10.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_Users_bsjoberg_projects_macports-ports_devel_git-crypt/git-crypt/work/AGWA-git-crypt-0d7d882'
:info:build Command failed:  cd "/opt/local/var/macports/build/_Users_bsjoberg_projects_macports-ports_devel_git-crypt/git-crypt/work/git-crypt-0.6.0" && /usr/bin/make -j16 -w all 
:info:build Exit code: 2

Change History (3)

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to nareshov
Status: newassigned

comment:2 Changed 2 years ago by ra1nb0w

I pushed a patch that uses openssl 1.1 to build. This is a temporary fix until someone create the right patch.

comment:3 Changed 12 months ago by dvasilen (Dmitry Vasilenko)

This issue was opened for 18 months. Any ETA is appreciated. The git-crypt is broken for Ventura (arm64 and x86_64) https://ports.macports.org/port/git-crypt/details/

Note: See TracTickets for help on using tickets.