From nobody Thu Oct 12 16:46:58 2023 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 4S5wXL6vprz4wd2C; Thu, 12 Oct 2023 16:46:58 +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 4S5wXL6Lz2z3GwQ; Thu, 12 Oct 2023 16:46:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697129218; 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=ti03Qhui1bAsqUcyUmYa/a6d0HoXZValZikk1Ryn32Q=; b=jHjgegyY/Uh7gHuwst0nHcBd3R3HHJSnY9oBXHEQiY4CaIFMvlByGsehE1davhFjadqOQe FVaNWy6iROK2kf7iJVWreijrXuCJ8RZMfywcsGDv4kYdXgk4MHwBSqLm5l9lZyfLFWhK0M GJeMTM3IGZ1Ev/2vq6oxE/ddB4Mr1zeWSBUe00EMoGAoXz4muMkd+SufYM/ACZKcVV912t nzGatFPZuuQdijmkIefhHei5Z9h/oQZ9/9/z80N21i6Pqn2j97gkwxuPBoHBt2FDdzSWrV Pl0zFyhLvKpSuGU8wdt1SZk91nsyZsfs+FzL1DxTcNU19rpgOo2Cj06h0snyZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697129218; a=rsa-sha256; cv=none; b=Kzj1IXAhMuQSCtxIFXc7AVGo/3kf9PMEFjWpB4hJhTBfbRAAC5k1SNbMNOPkmJrTNQgD+I ppR7rPdJ3iC6dgejMmm7fCETBEtzMB7/mC4LKLMpBsaGrS++p0dmgJVH/+RS44UbGG7u3o dRZMFpg7L7x9oOeZA05lWhmFeW9NfwbqAd2rV3JHFqZyxdEAc5wfW8hIwWR2bv5eCWyYuX Znf/oC8SB+3NPiGEKWy6q4WzaDePkfOJWBMaeSmP4oplJPqiECWvUbNE6IN8qnCc46fgsu IPaIyivVh/sqytf9UwfE28J46Cq436h12aq/+hO2+jlHgwjxI3PE7Rd/4WY9rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697129218; 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=ti03Qhui1bAsqUcyUmYa/a6d0HoXZValZikk1Ryn32Q=; b=Fdu8mPqXlCwBrGjUgfouWIfCY07JQ+i86bIjIGA31Gk8NCZd5A2wJ66tcI3CU5LASryv9H UbMgI0pM22EOwtISEl+4kdX41M5PRGBxyWrNBgXy7FPmP+H8iJhlc4Q1GXbFzTVHVnzBUI F7RtsEboK2KlMWC4KeP7T8Ez4mqxZDukMfO67Hs+Ljs4m1oj7YcSKPXH1R4/9HnWFAoSdC 8D/bbGALjmHDa8M2DeQTfYTuJ7L8sZCXBfgX5GmtruP/q68Y2eTIHjnRIYtBNKoPC9rSLk wwPXSZIL+EF08apeLjpmplQsfbJTyb4aRyZDah5KlvyNLbSI74pLlTQ5ZU5BrA== 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 4S5wXL5MJMz1Bc5; Thu, 12 Oct 2023 16:46:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39CGkwfR024168; Thu, 12 Oct 2023 16:46:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39CGkweT024165; Thu, 12 Oct 2023 16:46:58 GMT (envelope-from git) Date: Thu, 12 Oct 2023 16:46:58 GMT Message-Id: <202310121646.39CGkweT024165@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Michael Gmelin Subject: git: acd67e6f2d09 - main - devel/phabricator: Fix php 8.1 issue when rendering avatars 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: grembo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: acd67e6f2d0911d5e194f7b1b54cafb95b13a93d Auto-Submitted: auto-generated The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=acd67e6f2d0911d5e194f7b1b54cafb95b13a93d commit acd67e6f2d0911d5e194f7b1b54cafb95b13a93d Author: Michael Gmelin AuthorDate: 2023-10-12 16:45:41 +0000 Commit: Michael Gmelin CommitDate: 2023-10-12 16:46:32 +0000 devel/phabricator: Fix php 8.1 issue when rendering avatars --- devel/phabricator/Makefile | 2 +- ...files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/devel/phabricator/Makefile b/devel/phabricator/Makefile index 7b5487bf4521..7631ebe26744 100644 --- a/devel/phabricator/Makefile +++ b/devel/phabricator/Makefile @@ -1,6 +1,6 @@ PORTNAME= phabricator PORTVERSION= 20211218 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} diff --git a/devel/phabricator/files/patch-src_applications_files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php b/devel/phabricator/files/patch-src_applications_files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php new file mode 100644 index 000000000000..6c9dcaaa9457 --- /dev/null +++ b/devel/phabricator/files/patch-src_applications_files_builtin_PhabricatorFilesComposeAvatarBuiltinFile.php @@ -0,0 +1,11 @@ +--- src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php.orig 2021-12-18 19:11:09 UTC ++++ src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php +@@ -188,7 +188,7 @@ final class PhabricatorFilesComposeAvatarBuiltinFile + $g = $rgba[1]; + $b = $rgba[2]; + $a = $rgba[3]; +- $a = (1 - $a) * 255; ++ $a = round(((1 - $a) * 255), 0); + return ($a << 24) | ($r << 16) | ($g << 8) | $b; + } +