Opened 22 years ago

Closed 21 years ago

#536 closed defect (fixed)

Replace Bison patch with a sed.

Reported by: gerard@… Owned by: lfs-book@…
Priority: high Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

See URL for details.

Attachments (4)

bison.patch (818 bytes ) - added by obrakmann@… 22 years ago.
patch to bison to fix some issues with OOo
bison-1.875-alt-no-unused.patch (1.1 KB ) - added by obrakmann@… 22 years ago.
patch to bison-1.875 that fixes some issue with pwlib
bison-unused-label.patch (1.9 KB ) - added by obrakmann@… 22 years ago.
patch to bison to only use labels actually used
bison-attribute-unused.patch (2.6 KB ) - added by obrakmann@… 22 years ago.
fixes bug in Bison 1.875, wrt g++, and attribute ((unused))

Download all attachments as: .zip

Change History (13)

by obrakmann@…, 22 years ago

Attachment: bison.patch added

patch to bison to fix some issues with OOo

by obrakmann@…, 22 years ago

patch to bison-1.875 that fixes some issue with pwlib

by obrakmann@…, 22 years ago

Attachment: bison-unused-label.patch added

patch to bison to only use labels actually used

by obrakmann@…, 22 years ago

fixes bug in Bison 1.875, wrt g++, and attribute ((unused))

comment:1 by obrakmann@…, 22 years ago

attachments.isobsolete: 01

comment:2 by obrakmann@…, 22 years ago

attachments.description: path to bison-1.875 that fixes some issue with pwlibpatch to bison-1.875 that fixes some issue with pwlib

comment:3 by obrakmann@…, 22 years ago

attachments.isobsolete: 01

comment:4 by tushar@…, 22 years ago

it may be easier to do a diff between bison-1.875 and bison-1.875a and to edit the resulting diff for useless stuff. :)

comment:5 by obrakmann@…, 22 years ago

Then we could just as well just go with 1.875a.

Or wait for the next version, I don't think LFS 5.0 will be out for quite some time... :-)

comment:6 by greg@…, 21 years ago

I can verify that the pwlib patch fixes the build of pwlib. However, only the first hunk (data/yacc.c) is actually needed to make it build. But for the sake of consistency, might be best to include both hunks. I vote that it goes into the book.

I cannot vouch for the other patches. In fact, I am doubtful of the OOo patch. The change does not appear in the diff between 1.875 & 1.875a and 1.875a is supposed to be OOo friendly. Go figure.

comment:7 by jeremy@…, 21 years ago

Resolution: fixed
Status: newclosed

comment:8 by greg@…, 21 years ago

Priority: highesthigh
Resolution: fixed
Status: closedreopened
Summary: Find Bison patch, add it.Replace Bison patch with a sed.

This patch can be replaced with a simple sed one-liner:

sed -i '/unused/d' data/yacc.c

Tested by building everything I could (including pwlib and OpenOffice). Reopening bug and retitling accordingly.

comment:9 by greg@…, 21 years ago

Resolution: fixed
Status: reopenedclosed

This patch can be replaced with a simple sed one-liner:

Actually, scratch that. It works fine, but buggers up the test suite if "-Wall" happens to be in the current CFLAGS. The current patch stays. Reclosing.

Note: See TracTickets for help on using tickets.