From owner-svn-ports-head@freebsd.org Mon Jan 11 15:19:10 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5E5834DC54C; Mon, 11 Jan 2021 15:19:10 +0000 (UTC) (envelope-from novel@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDy6Q1R35z3qGk; Mon, 11 Jan 2021 15:19:10 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1FE4C1C7FA; Mon, 11 Jan 2021 15:19:10 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10BFJ9of070825; Mon, 11 Jan 2021 15:19:09 GMT (envelope-from novel@FreeBSD.org) Received: (from novel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10BFJ90Y070824; Mon, 11 Jan 2021 15:19:09 GMT (envelope-from novel@FreeBSD.org) Message-Id: <202101111519.10BFJ90Y070824@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: novel set sender to novel@FreeBSD.org using -f From: Roman Bogorodskiy Date: Mon, 11 Jan 2021 15:19:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561219 - head/security/libtasn1 X-SVN-Group: ports-head X-SVN-Commit-Author: novel X-SVN-Commit-Paths: head/security/libtasn1 X-SVN-Commit-Revision: 561219 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2021 15:19:10 -0000 Author: novel Date: Mon Jan 11 15:19:09 2021 New Revision: 561219 URL: https://svnweb.freebsd.org/changeset/ports/561219 Log: security/libtasn1: add a workaround for clang 10+ When compiled with clang 10+ and -O[2-9], the resulting package fails to parse certificates. As a workaround, downgrade optimization to -O1. Upstream issue: https://gitlab.com/gnutls/libtasn1/-/issues/30 PR: 252548 Reported by: rozhuk.im@gmail.com Modified: head/security/libtasn1/Makefile Modified: head/security/libtasn1/Makefile ============================================================================== --- head/security/libtasn1/Makefile Mon Jan 11 14:53:03 2021 (r561218) +++ head/security/libtasn1/Makefile Mon Jan 11 15:19:09 2021 (r561219) @@ -3,6 +3,7 @@ PORTNAME= libtasn1 PORTVERSION= 4.16.0 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= GNU \ GNUPG/gnutls/${PORTNAME} @@ -14,7 +15,7 @@ LICENSE= LGPL21+ GPLv3 LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cpe libtool pathfix pkgconfig +USES= cpe libtool pathfix pkgconfig compiler USE_CSTD= c99 USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -29,8 +30,15 @@ DOCS= AUTHORS NEWS README.md THANKS doc/TODO \ doc/libtasn1.html doc/libtasn1.pdf doc/libtasn1.ps INFO= libtasn1 +.include + +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252548 +.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 100 +CFLAGS:= ${CFLAGS:C/-O[2-9]/-O1/g} +.endif + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} -.include +.include