From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D941B158092 for ; Tue, 14 Sep 2021 13:39:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3430DE0919; Tue, 14 Sep 2021 13:39:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F39FFE08C3 for ; Tue, 14 Sep 2021 13:39:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C4372342EE6 for ; Tue, 14 Sep 2021 13:39:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 53807A3 for ; Tue, 14 Sep 2021 13:39:43 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1631626755.bb92360d332e021a36ed663263ef01e565a9e529.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/files/, app-office/libreoffice/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/libreoffice/files/libreoffice-7.1.5.2-bison-3.8.patch app-office/libreoffice/libreoffice-7.1.5.2.ebuild app-office/libreoffice/libreoffice-7.1.6.2.ebuild X-VCS-Directories: app-office/libreoffice/ app-office/libreoffice/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: bb92360d332e021a36ed663263ef01e565a9e529 X-VCS-Branch: master Date: Tue, 14 Sep 2021 13:39:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7ed398c3-95e3-4e51-a844-0c56dcfd9454 X-Archives-Hash: 09f44171cdcef524f12e1ccf3c109e54 commit: bb92360d332e021a36ed663263ef01e565a9e529 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Sep 14 13:04:49 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Sep 14 13:39:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb92360d app-office/libreoffice: Fix build with >=sys-devel/bison-3.8 Revert sys-devel/bison upper bound. See also: https://lists.freedesktop.org/archives/libreoffice/2021-September/087852.html Upstream commit 45227d9b79dc4f2a2aa6874cd4e3c02b7934b197 Closes: https://bugs.gentoo.org/812923 Package-Manager: Portage-3.0.23, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> .../files/libreoffice-7.1.5.2-bison-3.8.patch | 53 ++++++++++++++++++++++ app-office/libreoffice/libreoffice-7.1.5.2.ebuild | 1 + app-office/libreoffice/libreoffice-7.1.6.2.ebuild | 4 +- 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/app-office/libreoffice/files/libreoffice-7.1.5.2-bison-3.8.patch b/app-office/libreoffice/files/libreoffice-7.1.5.2-bison-3.8.patch new file mode 100644 index 00000000000..b60b99a6c6c --- /dev/null +++ b/app-office/libreoffice/files/libreoffice-7.1.5.2-bison-3.8.patch @@ -0,0 +1,53 @@ +From 45227d9b79dc4f2a2aa6874cd4e3c02b7934b197 Mon Sep 17 00:00:00 2001 +From: Stephan Bergmann +Date: Tue, 14 Sep 2021 12:20:48 +0200 +Subject: Adapt to Bison 3.8 internal yyn -> yyrule rename + +see + +"glr2.cc: log the execution of deferred actions" including "Rename argument yyn +as yyrule for clarity." + +YYBISON was defined as 1 rather than as a representation of the Bison version +prior to + +"yacc.c: provide the Bison version as an integral macro", which shouldn't be a +problem here. And YYBISON is apparently completely undefined with +/usr/bin/bison on macOS. + +(The preceding comment always mentioned "yyi" and "yyrmap" in apparent mismatch +with the actually used "yyn" and "yyr1" ever since +c25ec0608a167bcf1d891043f02273761c351701 "initial import", so just leave it +untouched.) + +Change-Id: I4f901407aa21ed4abec84e661d813ee7599f02f0 +Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122082 +Tested-by: Jenkins +Reviewed-by: Stephan Bergmann +--- + connectivity/source/parse/sqlbison.y | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y +index d14f36e7794f..c4be0bc00bd0 100644 +--- a/connectivity/source/parse/sqlbison.y ++++ b/connectivity/source/parse/sqlbison.y +@@ -74,9 +74,15 @@ inline connectivity::OSQLInternalNode* newNode(const OUString& _newValue, + + // yyi is the internal number of the rule that is currently being reduced + // This can be mapped to external rule number via the yyrmap. ++#if defined YYBISON && YYBISON >= 30800 ++#define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyrule]) ++#define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyrule]) ++#define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyrule]) ++#else + #define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyn]) + #define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyn]) + #define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyn]) ++#endif + + + extern connectivity::OSQLParser* xxx_pGLOBAL_SQLPARSER; +-- +cgit v1.2.1 + diff --git a/app-office/libreoffice/libreoffice-7.1.5.2.ebuild b/app-office/libreoffice/libreoffice-7.1.5.2.ebuild index c44dee00e18..08d09ea8bd9 100644 --- a/app-office/libreoffice/libreoffice-7.1.5.2.ebuild +++ b/app-office/libreoffice/libreoffice-7.1.5.2.ebuild @@ -295,6 +295,7 @@ PATCHES=( # master branch "${FILESDIR}/${PN}-7.1.3.2-bashism.patch" # bug 780432 + "${FILESDIR}/${P}-bison-3.8.patch" # bug 812923 ) S="${WORKDIR}/${PN}-${MY_PV}" diff --git a/app-office/libreoffice/libreoffice-7.1.6.2.ebuild b/app-office/libreoffice/libreoffice-7.1.6.2.ebuild index ec8c361bf6c..f2d42758311 100644 --- a/app-office/libreoffice/libreoffice-7.1.6.2.ebuild +++ b/app-office/libreoffice/libreoffice-7.1.6.2.ebuild @@ -107,10 +107,9 @@ SLOT="0" [[ ${MY_PV} == *9999* ]] || \ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux" -# Bison upper bound due to bug #812923 BDEPEND=" dev-util/intltool -