Issue 8277 - bison 1.75 patches and problems
Summary: bison 1.75 patches and problems
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: 643
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Unknown
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-12 15:21 UTC by foskey
Modified: 2003-03-16 20:14 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch for latest nas and also bison fix. (1.88 KB, patch)
2002-10-12 15:22 UTC, foskey
no flags Details | Diff
patch to make idlc compile under bison 1.5 (1.22 KB, patch)
2002-10-14 15:48 UTC, foskey
no flags Details | Diff
Updated patch from 1.4.1 (4.33 KB, patch)
2002-10-15 12:16 UTC, foskey
no flags Details | Diff
bison 1.75 patch for sqlbison.y (5.58 KB, patch)
2002-11-07 09:07 UTC, mbr
no flags Details | Diff
a newer patch for OOO_STABLE_1 for nas (4.44 KB, patch)
2003-01-08 00:53 UTC, khendricks
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description foskey 2002-10-12 15:21:52 UTC
With the my upgrade to bison 1.5 some latent errors in bison code has been
idenitified and need some patches.  This includes nas external which can be done
by replacement patch.
Comment 1 foskey 2002-10-12 15:22:46 UTC
Created attachment 3147 [details]
patch for latest nas and also bison fix.
Comment 2 foskey 2002-10-14 15:48:55 UTC
Created attachment 3169 [details]
patch to make idlc compile under bison 1.5
Comment 3 Unknown 2002-10-14 16:14:12 UTC
I don't know about any decision whether we move to nas 1.5, 
so I'll keep this on hold and cc Martin Hollmichel
Comment 4 Martin Hollmichel 2002-10-14 16:33:08 UTC
as long as all versions from 1.27 on are supported by these patches
I'm fine with these patches. if not we have to find a solution for it.
Comment 5 Unknown 2002-10-14 16:52:17 UTC
The nas patch (id 3147) is specific to nas 1.5, I guess, and my 
question was mainly targeted at that.
Comment 6 foskey 2002-10-15 12:16:37 UTC
Created attachment 3173 [details]
Updated patch from 1.4.1
Comment 7 Unknown 2002-10-15 12:35:25 UTC
but now you have patches for both 1.4.1 and 1.5g in there? 
Comment 8 mbr 2002-11-07 09:07:27 UTC
Created attachment 3512 [details]
bison 1.75 patch for sqlbison.y
Comment 9 mbr 2002-11-07 09:10:35 UTC
I just added a patch to be able to build OOo with bison 1.75.

With all patches, 1.01 and also the 643 branch build fine with
bison 1.75.

Martin
Comment 10 foskey 2002-11-14 12:29:34 UTC
In order to update nas to a good version:  Grab the latest version of
nas from: http://radscan.com/nas/nas-1.6.src.tar.gz  rename it without
the .src.  Move this to the nas/download directory.

Take the 1.5g patch and rename it as 1.6,  change all references in
the patch file from 1.5g to 1.6 and all will then build  (s/1\.5g/1.6/g)
Comment 11 foskey 2002-11-28 13:30:05 UTC
I just applied and tested the NAS patch and it worked perfectly.
Comment 12 foskey 2002-11-28 13:38:29 UTC
Updated wrong issue,  resetting approval keyword.
Comment 13 foskey 2002-12-02 11:26:03 UTC
TEsted to make and install a basic configuration.  There were no major
errors once updates applied.
Comment 14 chris 2002-12-02 11:45:09 UTC
Approved.  Applies, builds and installs in my environment without
problems - both the bison build fix and version 1.6

Chris
Comment 15 foskey 2002-12-02 11:55:03 UTC
Committed the NAS patches to upgrade to 1.6.

Note that we should 'un'tag the original version after a proving period.
Comment 16 Martin Hollmichel 2002-12-03 12:39:57 UTC
mh-> jsc, fs, please take a look at patches for connectivty and idlc
and  approve.
Comment 17 Frank Schönheit 2002-12-03 14:54:30 UTC
Ocke, you know the sqlbison.y much better than me, yould you please
have a look at Ken's patch and approve it? Thanks.
Comment 18 ocke.janssen 2002-12-04 07:36:27 UTC
Hi Martin,

I've got some questions about your patch. 
What happens to the missing tokens like SQL_TOKEN_BIT_LENGTH or
SQL_TOKEN_POSITION? 

Best regards,

Ocke
Comment 19 foskey 2002-12-04 08:03:51 UTC
If you look closely  you will find that these are duplicate definitions.
bison 1.3X is forgiving about this, bison 1.75 is much more strict
hence the deletions.

I dont proclaim expertese with bison,  it works and it builds and
installs.
Comment 20 ocke.janssen 2002-12-04 08:23:49 UTC
oj->mh: patch for sqlbison.y approved.

Comment 21 foskey 2002-12-04 10:31:00 UTC
Applied connectivity patch to OO743C.  Only waiting approval for idlc
patch.
Comment 22 foskey 2002-12-13 11:58:30 UTC
Waiting for the approval of idlc directory.
Comment 23 khendricks 2003-01-07 16:52:14 UTC
Hi Chris,   
   
Since I just updated the OOO_STABLE_1 tree with idlc from OO643C and  
if those changes were already in OO643C then the idlc.bison patch  
should already be in OOO_STABLE_1.  
 
But I am now confused as to which patches are yet needed to support 
bison 1.75 in OOO_STABLE_1 
 
Which of the attached patches listed in this issue should still be 
applied to OOO_STABLE_1? 
 
My guess is: 
 
nas-1.4.1.patch 
patch-connectivity+source+parse+sqlbison.y 
 
Is that correct? 
 
Thanks, 
 
Kevin 
 
  
Comment 24 foskey 2003-01-07 20:59:20 UTC
The idlc patch has never been approved and therefore never applied to
OO643C, hence the approval pending tag!

The connectivity and nas patches are required to make OOO_STABLE_1
work using bison > 1.35.
Comment 25 khendricks 2003-01-08 00:46:30 UTC
Hi Ken, 
 
The updates nas-1.4.1.patch does not apply at all since 
server/dia/gram.y differs significantly between the 1.4.1  
version and the 1.5 version. 
 
Specifically 
 
  		| GAIN number 
! 			{ ddaSetConfig(GAIN, (void *)$2); } 
 
 
The term GAIN is not even found in gram.y at all under this version. 
 
Can someone please take a closer look at this patch for nas-1.4.1 
and put up a corrected version for use with OOO_STABLE_1. 
 
Thanks, 
 
Kevin 
 
Comment 26 khendricks 2003-01-08 00:53:44 UTC
Created attachment 4232 [details]
a newer patch for OOO_STABLE_1 for nas
Comment 27 khendricks 2003-01-08 01:03:17 UTC
Hi, 
 
Can someone with a newer bison please try the newer nas-1.4.1.patch 
(replace the one in nas) in the OOO_STABLE_1 tree and tell me if it 
fixes the issue? 
 
Also, I have some questions about the idlc patch (and I am no bison 
expert about all of the added {}. 
 
The other part of that patch is similar to the nas and connectivity 
patches in that they add back in missing semicolons but the idlc 
patch adds in braces too. 
 
We really need a bison prop to tell us what is up here. 
 
Kevin 
 
Comment 28 khendricks 2003-01-08 01:58:33 UTC
Hi,   
   
Okay I have applied the idlc parser.y patch and completely rebuilt   
idlc and delivered it then I used the new idlc to rebuild udkapi   
and compared before and after with absolutely no changes.   
  
So I now have a hopefully working nas-1.4.1.patch and a  
connectivity sqlbison.y patch and an idlc parser.y patch that seem  
to be working fine with older versions of bison and will hopefully  
work fine with newer versions in OOO_STABLE_1.  
  
So under the approval for updating OOO_STABLE_1 for the newer build  
tools (since bison is a newer build tool ;-), I am going to commit 
them to OOO_STABLE_1 now and if anyone objects tomorrow (or the nas 
patch needs more work) we can revert  
them easily.  
  
So hopefully all will now work even under newer bison.  
  
The commits are now in the tree. 
 
Here are the new version numbers and the previous ones in case we 
need to revert these since we are sort of stretching the "approval" 
a bit here. 
 
I have tested all of these with my old version of bison and they 
cause no trouble. 
 
nas/nas-1.4.1.patch version 1.1.6.1 replaces version 1.1 
 
connectivity/source/parse/sqlbison.y version 1.34.4.3 replaces 
version 1.34.4.2 
 
idlc/source/parser.y version 1.2.2.2 replaces 1.2.2.1 
 
Hope this helps,  
Kevin  
  
   
Comment 29 foskey 2003-01-19 09:39:30 UTC
This issue has now been resolved.  Stable and 643C now build with new
bison.
Comment 30 chris 2003-02-11 11:28:10 UTC
Committed idlc/source/parser.y to branch cws_srx644_ooo20030223.

new revision: 1.1.14.1; previous revision: 1.1
Comment 31 michael.bemmer 2003-03-16 20:10:48 UTC
As discussed with Armin, he thought these bug were closed, he sees all of them
as verified.
Comment 32 michael.bemmer 2003-03-16 20:14:27 UTC
As discussed with Armin, he thought these bug were closed, he sees all of them
as verified.