pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: LibreOffice build failure



On Sat, Oct 02, 2021 at 09:11:56PM +0100, Chavdar Ivanov wrote:
> While building LibreOffice 7.2.0.4 as part of 'pkg_rolling-replace
> -rsuv' I am getting:

This was breakage because of bison 3.8. I've already committed a patch
fixing it yesterday.
 Thomas
 
--- Begin Message ---
Module Name:	pkgsrc
Committed By:	wiz
Date:		Fri Oct  1 11:32:50 UTC 2021

Modified Files:
	pkgsrc/misc/libreoffice: distinfo
Added Files:
	pkgsrc/misc/libreoffice/patches:
	    patch-connectivity_source_parse_sqlbison.y

Log Message:
libreoffice: fix build with bison 3.8

using an upstream patch.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 pkgsrc/misc/libreoffice/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/libreoffice/patches/patch-connectivity_source_parse_sqlbison.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/libreoffice/distinfo
diff -u pkgsrc/misc/libreoffice/distinfo:1.118 pkgsrc/misc/libreoffice/distinfo:1.119
--- pkgsrc/misc/libreoffice/distinfo:1.118	Tue Sep  7 09:49:05 2021
+++ pkgsrc/misc/libreoffice/distinfo	Fri Oct  1 11:32:50 2021
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.118 2021/09/07 09:49:05 nia Exp $
+$NetBSD: distinfo,v 1.119 2021/10/01 11:32:50 wiz Exp $
 
 SHA1 (libreoffice/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz) = 452eba922e4f41603539c9dc39947d2271e47093
 RMD160 (libreoffice/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz) = dbeb7a7f8c89961ca2e544b810345d025561866b
@@ -233,6 +233,7 @@ SHA1 (patch-autogen.sh) = 0fed5f88342112
 SHA1 (patch-bridges_source_cpp__uno_gcc3__linux__intel_share.hxx) = 2eed9efc4a145687f409ba87806147dac2210c68
 SHA1 (patch-bridges_source_cpp__uno_gcc3__linux__x86-64_share.hxx) = e664faa4044feaafe8214fdf42f7d008b9aa29fc
 SHA1 (patch-configure.ac) = e2f8ff7ee73e177082e71360c0e153e03b965bc4
+SHA1 (patch-connectivity_source_parse_sqlbison.y) = f74256cbb6f43387a2a8a8a7401938e5b849d465
 SHA1 (patch-desktop_scripts_soffice.sh) = e6342e08781ca8dac72a1f28407517d79155577c
 SHA1 (patch-external_harfbuzz_UnpackedTarball__harfbuzz.mk) = 1c6e8355c473ddb16d25cb4b0ccd367326b1e9eb
 SHA1 (patch-external_mariadb-connector-c_UnpackedTarball__mariadb-connector-c.mk) = 0a682ef486310474684ccd279e864f96259a3087

Added files:

Index: pkgsrc/misc/libreoffice/patches/patch-connectivity_source_parse_sqlbison.y
diff -u /dev/null pkgsrc/misc/libreoffice/patches/patch-connectivity_source_parse_sqlbison.y:1.1
--- /dev/null	Fri Oct  1 11:32:50 2021
+++ pkgsrc/misc/libreoffice/patches/patch-connectivity_source_parse_sqlbison.y	Fri Oct  1 11:32:50 2021
@@ -0,0 +1,23 @@
+$NetBSD: patch-connectivity_source_parse_sqlbison.y,v 1.1 2021/10/01 11:32:50 wiz Exp $
+
+Compatibility with bison-3.8.
+https://gerrit.libreoffice.org/c/core/+/122082
+
+--- connectivity/source/parse/sqlbison.y.orig	2021-08-16 19:56:28.000000000 +0000
++++ connectivity/source/parse/sqlbison.y
+@@ -74,9 +74,15 @@ inline connectivity::OSQLInternalNode* n
+ 
+ // 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;


--- End Message ---


Home | Main Index | Thread Index | Old Index