summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-25Eliminate an exit point from parseSpec()Panu Matilainen1-2/+2
2010-08-24Eliminate newOpenFileInfo() from librpmbuild APIPanu Matilainen1-0/+15
- Nothing outside parseSpec.c needs, bury it there and make static
2010-08-20Remove signing support from (lib)rpmbuildPanu Matilainen1-3/+1
- Signing is better done in an environment completely separated from the process of actually building packages. This is how its generally done anyway by distros, this change just forces the issue. - While signing on build seems handy and saves some io-churn, this is very insecure as your precious secret passphrase remains unencrypted in memory for the entire duration of the build where it's accessible to whatever happens to be building. This change doesn't affect fix the issue of unencrypted passphrase residing in memory and potentially getting swapped out, it only limits the exposure to the actual signing process which isn't subject to unknown scripts poking around. - Minimally preserve rpmbuild's --sign functionality via popt --pipe hack to call rpm --addsign when build completes
2010-05-24Put the macro evaluation in spec comments back.Jindrich Novy1-11/+0
- '#' at the beginning doesn't need to always represent comment in spec but can be part of the embedded bash script (RhBug:594672 - comment 6)
2010-05-21Do not evaluate macros in spec comments (RhBug:594672)Jindrich Novy1-0/+11
2010-04-12readLineFromOFI may modify the fileStack, thus we have to re-setMichael Schroeder1-0/+1
ofi after calling it
2010-01-05Move <errno.h> include out of system.h to the places that need itPanu Matilainen1-0/+2
2009-10-16Since we really want a FILE* then get one in the first placePanu Matilainen1-8/+7
- this is visible in the librpmbuild exported goo, rename the member to force build-breakage on the poor souls trying to use librpmbuild API
2009-09-02Eliminate uses of headerNVR() and friends in librpmbuild codePanu Matilainen1-3/+2
2009-08-31Replace equal/not equal uses of str[n]cmp() with rstreq[n] in build codePanu Matilainen1-9/+9
2009-08-17Add default %clean section unless overridden in spec (ticket #81)Panu Matilainen1-0/+7
- avoids silly clutter in every specfile in the regular case but permits overriding if needed for whatever reason - it's a spec behavior change but mostly backwards compatible: existing specs will do whatever the %clean does, and if you need to avoid calling %clean for whatever reason just keep an empty %clean in the spec
2009-08-12rpmbuild won't segfault when %including spec with zero sizeJindrich Novy1-1/+1
2009-07-23Kill off lclint remnants everywherePanu Matilainen1-3/+0
- remove ancient and likely irrelevant LCL comments and bogus NULL checks
2009-06-01Generate spec part string lengths at build time and make it constPanu Matilainen1-36/+26
2008-12-05Tighten up setting and checking of buildroot (ticket #10)Panu Matilainen1-9/+0
- expand, set and verify buildroot just once for after main package preamble is parsed to avoid sub-packages from overriding it - spec can still mess with %buildroot by defining it to something else after preamble but that's another issue...
2008-10-23Make noarch subpackages actually workPanu Matilainen1-1/+4
- noarch subpackages get their arch tag from parsePreamble() already, don't stomp over it later in parseSpec()
2008-08-06Simplify spec buildroot hysteriaPanu Matilainen1-17/+12
- BuildRoot: in spec is now really ignored - parseSpec() uses default %{buildroot} unless overridden - BuildRoot is forced for all builds
2008-06-19Use type-specific headerPut() on all of build/parseSpec.cPanu Matilainen1-12/+3
2008-06-17Convert parseSpec to headerPut()Panu Matilainen1-5/+12
2008-05-21Include rpmtypes.h first instead of rpmtag.h everywherePanu Matilainen1-1/+1
2008-05-05Trap RPMRC_FAIL returns from spec parse with abort() for nowPanu Matilainen1-0/+4
2008-05-05Make readLine() return PART_ERROR on errorsPanu Matilainen1-7/+7
2008-05-05Fix (hopefully ;) signaling for line continuations on spec parsingPanu Matilainen1-8/+9
2008-05-05Indentation fixesPanu Matilainen1-10/+9
2008-05-05Make parseSpec() return PART_ERROR on all errorsPanu Matilainen1-6/+4
- also fix memleak from buildroot errors
2008-05-05Start cleaning up the rpmerr removal mess of build/ return codesPanu Matilainen1-11/+11
- define PART_ERROR for error returns from various parse bits, teach parseSpec() about it - streamline parseSpec() exists
2008-04-11Don't warn about BuildRoot being "/" while it is actually emptyJindrich Novy1-2/+6
2008-04-09Yet more url ripping - buildroot is never an urlPanu Matilainen1-11/+9
- this is a bit nasty as it changes public interfaces but rename to make it explicit they're just plain paths, not urls
2008-03-24Eliminate bogus const's from OFI_t and spectags structsPanu Matilainen1-2/+2
2008-03-18Minimal namespacing for locale-insensitive x*() string functionsPanu Matilainen1-7/+7
2008-03-06Make yet more build tables readonlyPanu Matilainen1-2/+1
- preambleList and partList are modified runtime for silly reasons, reminders to fix later..
2008-01-30rpmlib.h mass evictionPanu Matilainen1-0/+2
- explicitly include what's really needed instead - document remaining uses
2008-01-09Implementation of triggerprein scriptlets.Panu Matilainen1-0/+2
Ported from rpm5.org work of Jeff Johnson to 4.4.x by Pascal Rigaux, further adopted to fit HEAD...
2007-12-22Fix multi-line macro expansion in last line of spec (mdvbz#27417)Panu Matilainen1-18/+39
Patch from Pascal Rigaux: 1. creating functions restoreFirstChar(), copyNextLineFromOFI() and copyNextLineFinish() out of copyNextLine() 2. creating function readLineFromOFI() out of readLine() 3. inline copyNextLine 4. if we can restoreFirstChar, then use it, otherwise read from file (ie don't read from file when we have a remaining multiline macro in spec->nextline)
2007-12-16More constfree for spec exposed stuff for nowPanu Matilainen1-2/+2
- openfileinfo seems easily made opaque, revisit later
2007-12-14Bogus const removal continued...Panu Matilainen1-7/+7
2007-12-14More size_t type pedantryPanu Matilainen1-1/+1
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-5/+5
- adjust include paths accordingly
2007-12-07rpm5.org: fixup spec parsing from rpmerr.h removalPanu Matilainen1-16/+20
- renumber rpmParseState enums to leave room for error codes
2007-11-23Move rpmGetPath and rpmGenPath to rpmfileutil.hPanu Matilainen1-0/+1
2007-11-23Use #include <x.h> syntax to include public headers.Ralf Corsépius1-4/+4
2007-11-19Lose rpmerr.h for goodPanu Matilainen1-1/+1
2007-11-19Replace all RPMERR_* etc uses with corresponding RPMLOG_* levelsPanu Matilainen1-25/+25
2007-11-08Remove dead rpmrc-related code from spec parsingPanu Matilainen1-49/+0
2007-10-29Add SKIPSPACE, SKIPNONSPACE.Ralf Corsépius1-0/+3
2007-10-29Use fdGetFILE() instead of rpmio internal fdGetFp() everywherePanu Matilainen1-3/+1
2007-10-28Include "rpmbuild.h" instead of <rpmbuild.h>.Ralf Corsépius1-1/+1
2007-10-28Include "rpmio_internal.h" instead of <rpmio_internal.h>.Ralf Corsépius1-1/+1
2007-10-09Make rpmerr.h private, include directly where needed.Panu Matilainen1-0/+1
2007-10-09Replace all rpmError() uses with rpmlog()Panu Matilainen1-11/+11