Opened 19 years ago
Closed 19 years ago
#1506 closed defect (fixed)
Flex patch updates Lex/Flex file "scan.l" after C file "scan.c"
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
I was using Flex-2.5.31 and LFS-BOOK-SVN-20050524.
Specifically, the flex-2.5.31-debian_fixes-2.patch updates the Flex file ("scan.l") after the C file ("scan.c"). When Make is executed it sees the Flex file as being newer than the C file and tries to update it. This causes it to realize that it needs Lex/Flex.
A simple solution to the problem is easy, touch the pre-generated file ("scan.c") after putting the patch in place.
A better, longer-term solution is to update the patch file to update the C file ("scan.c") after Lex/Flex file ("scan.l").
Change History (6)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Status: | new → assigned |
---|
Is the -4 patch confirmed to fix the problem? If so I'll add it to the book and close this bug.
comment:3 by , 19 years ago
No it doesn't, it has loads of unnecessary cruft and the scan.l and scan.c hunks are in the same order as in the -2 patch. http://www.linuxfromscratch.org/~matthew/flex-2.5.31-debian_fixes-5.patch should do the trick. I've just removed the 'scan.l' hunk too, so it contains no redundancy. I think we should actually pull the -4 patch out the repository and put my -5 version in as -3, so that the numbering is sequential. I don't know what happened to the original -3 if there was one.
Matt.
comment:4 by , 19 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
Try using the http://www.linuxfromscratch.org/patches/downloads/flex/flex- 2.5.31-debian_fixes-4.patch, and see if the error still occurs.