From nobody Sun Dec 18 17:43:46 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZqvQ62mlz1Gm7c; Sun, 18 Dec 2022 17:43:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZqvQ5RSVz4HnQ; Sun, 18 Dec 2022 17:43:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o8tPKm+0vbVgWqF2Wq+QiCSZZoNSh405bICWIVGm95E=; b=fX9AOMP7O8P5nVL72C8C1PJ7NtWBNnT2vErZ2jFEFuk3S9ruC2EVkMyWvHDKUxeAaa2aCU KlxYZDFqYgCXOKatq6lcPfThKkEhueWhZJc8nrWBg8oncFSknZZ1hX32RZt4GUKOVcy7LA dJmFP9XnmnDE11jjas/1fg1A1bKRXC03LBkEwe3Q5NL+hsvIl45jBNkfubceQtkqmxJrvn WvGGg5qSgTA32t3TEzDSAjAbRsa3nI4d87fzMcTBDUBLE743/xnVpDy64JVu9o3X3Lfb0e cyOqVBobNxlWFjzG8myM30WJ84iBY8H15qHmVbfoY0ViuX0TmOJtsBjfFQO+rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o8tPKm+0vbVgWqF2Wq+QiCSZZoNSh405bICWIVGm95E=; b=THpUSZj5IGBRZWSfBfsDd/RDlJ3XYomtWfBG9CDk15UPRp3P64qK/lCPfzljlk7l7NJEwp vajOxdwilJEKWJYlu6c/bhUxiYcMqUFA7W247//g6PfbBHh53JFNcQn1K0rDq9nmhX04iH 1tgySCzQEDn1flpX9EF6y/ThmeC/Anr5/nuPvBIwKU3pPyucY3x+390fjapzvsTARKSQDo MI/bhb11zU/oTtV0c3vUaswfSYcBCiigf1B1oxsug/dhtEagmUIxcYkhNGNosXFbe64OZ0 6tIC4hHNItcSkVSvLJjM69NdtdSqSEqTne9cB3p0Nkp4iYHsOJ5ppSNgr67QoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385426; a=rsa-sha256; cv=none; b=q2I+e7mskIRCelEUrFCv8e4Zuqm3LZOtZinQq45b2ZBEPFVqPzuVFSQ4fyFhMNxefK0zC7 Fi/sfrzvYHuXTwwSbRpGjgUc+32EoOVMiqHnUNRBm+gkywA3emlDxRw011JMi11yYGT+ws pQp9tyWjG3tav3+Ibqy73oj3vxtQoQ3RBPGlMVrjCHKLphnVNCXa8jKvuDGro3S8/IDdiQ daeo2X0n2si9sqauhpALzDteAhqdAGwEM7NcpoL0N+51O0uHB0ZPM80YpO3z+QTmqYigKj jDyaktTJMRT7sXt73P1vJNXZDkEyl2Qkl72rPc2yTdzOrl23EtoDW1Z4lSul9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZqvQ4XvvzPYX; Sun, 18 Dec 2022 17:43:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BIHhkpt006364; Sun, 18 Dec 2022 17:43:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BIHhk08006363; Sun, 18 Dec 2022 17:43:46 GMT (envelope-from git) Date: Sun, 18 Dec 2022 17:43:46 GMT Message-Id: <202212181743.2BIHhk08006363@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 6597d3e9ccde - main - security/p5-Crypt-SSLeay: fix build with clang 15 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6597d3e9ccde2b41a34835d5322e78b1faa1e2a8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=6597d3e9ccde2b41a34835d5322e78b1faa1e2a8 commit 6597d3e9ccde2b41a34835d5322e78b1faa1e2a8 Author: Dimitry Andric AuthorDate: 2022-12-08 21:39:55 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:28:19 +0000 security/p5-Crypt-SSLeay: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that security/p5-Crypt-SSLeay failed to build with clang 15: SSLeay.xs:159:31: warning: call to undeclared function 'SSLv2_client_method'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ctx = SSL_CTX_new(SSLv2_client_method()); ^ SSLeay.xs:159:31: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') [-Wint-conversion] ctx = SSL_CTX_new(SSLv2_client_method()); ^~~~~~~~~~~~~~~~~~~~~ This is because SSLeay.xs uses the obsolete define OPENSSL_NO_SSL2 to determine whether OpenSSL still supports SSLv2. Since this define was removed from OpenSSL 1.1 and later, define it via CFLAGS instead. PR: 268258 Approved by: portmgr (tcberner) MFH: 2022Q4 --- security/p5-Crypt-SSLeay/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/security/p5-Crypt-SSLeay/Makefile b/security/p5-Crypt-SSLeay/Makefile index f845c6a4151a..a4a2894bb46f 100644 --- a/security/p5-Crypt-SSLeay/Makefile +++ b/security/p5-Crypt-SSLeay/Makefile @@ -20,6 +20,7 @@ USES= perl5 ssl USE_PERL5= configure CONFIGURE_ARGS= --no-live-tests CFLAGS+= -I${OPENSSLINC} +CFLAGS+= -DOPENSSL_NO_SSL2 post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Crypt/SSLeay/SSLeay.so