Commit Graph

27 Commits

Author SHA1 Message Date
12538e4010 parseSpec: use getline() to fix long line processing
* build/rpmspec.h (OpenFileInfo): Change readBuf to a pointer,
add readBufSize.
(freeOpenFileInfo): New prototype.
* build/spec.c (freeSpec): Initialize readBuf and readBufSize.
(freeOpenFileInfo): New function.
* build/parseSpec.c (readLine): Use getline and freeOpenFileInfo.
(closeSpec): Use freeOpenFileInfo.
2012-03-19 19:02:25 +00:00
e870902a7b build: make size of line buffer for .spec parsing configurable via %_spec_line_buffer_size
Based on http://rpm5.org/cvs/chngview?cn=9215

In the meantime, decrease this default line buffer size from 80K to 64K.
2012-03-19 01:29:03 +00:00
a470a11bac parseSpec: enhance line buffer overflow diagnostics 2012-03-19 18:18:03 +00:00
060fd2e340 parseSpec: implement line buffer overflow protection
* build/parseSpec.c (copyNextLine): Protect spec->lbuf line buffer
from overflow.
2012-03-19 01:13:13 +00:00
41f343617a build/parseSpec.c (tags_common_list): Add "check" 2009-09-08 21:31:52 +00:00
31914b95af Backport %check from rpm-4.2 2009-09-08 20:46:26 +00:00
4e5557519f build/parseSpec.c (parseSpec): Drop RPMTAG_PLATFORM support 2009-04-12 23:10:39 +00:00
26545f3846 Drop deprecated RPMTAG_RHNPLATFORM support 2009-04-12 22:39:46 +00:00
Alexey Tourbin
aebc9a42dd removed prehistoric multilib support 2009-03-10 14:27:38 +03:00
ace47d0fd2 build/parseSpec.c (readLine): Fix chomp in preprocess mode 2008-06-15 08:43:51 +00:00
Alexey Tourbin
63d7ecd4a7 parseSpec.c: fixed duplicating 'rpmbuild -bE' output (Kirill A. Shutemov, #5662) 2008-06-13 04:29:14 +04:00
Alexey Tourbin
3ad2b101d0 parsePreamble.c, parseSpec.c: allow noarch subpackages
Based on rpm5.org code.  However, I do not introduce special variables
to distinguish between toplevel package and subpackages -- we can tell
the difference simply by checking if current "pkg" and "spec->packages"
point to the same record (which is toplevel package in the linked list).
This idiom is already used in e.g. parsePreamble().
2008-06-13 01:08:51 +04:00
f4d4d3fe83 parseSpec: do not delete _target_cpu macro in PART_BUILDARCHITECTURES parser 2006-02-24 02:40:09 +00:00
7c858e2594 parseSpec: in preprocess mode, allow undefined macros 2005-10-25 11:01:42 +00:00
c653aa8345 copyNextLine: set rpmSetBuiltinMacroLookupFailedOK for comments 2005-10-12 23:55:57 +00:00
b23ff9b127 implemented rpmSetBuiltinMacroLookupFailedOK 2005-10-12 23:35:17 +00:00
d1c90ba20f revision 2.98
date: 2004/04/08 20:27:53;  author: niemeyer;  state: Exp;  lines: +41 -3
Implemented multiline macro support.
2005-10-10 12:57:57 +00:00
78ab7cf4b4 revision 2.95
date: 2003/05/15 13:53:41;  author: jbj;  state: Exp;  lines: +3 -1
- fix nested %if handling
2005-10-10 12:50:41 +00:00
7668e35c2e added docdir to tags_files_list 2005-10-10 12:26:34 +00:00
45504c22d2 disabled check for undefined macros in %prep, %build, %install and %clean 2005-10-06 21:06:44 +00:00
d04814401c Fixed rpmBuiltinMacroLookup support 2005-10-06 20:31:10 +00:00
019f77ade6 introduced _allow_undefined_macros 2005-10-06 19:15:36 +00:00
0b1e0e9ee4 Implemented rpmBuiltinMacroLookup support 2005-10-06 18:21:26 +00:00
ce8ad9b9f0 fix rpmExpandNumeric handling 2005-09-29 15:46:13 +00:00
1409bd2b85 sync with rpm4 branch: added preprocess mode 2002-03-25 23:09:32 +00:00
dee952c2f8 sync with rpm4 branch: include local headers 2002-03-25 22:02:39 +00:00
82a4763c66 Initial revision 2002-03-25 20:16:26 +00:00