summaryrefslogtreecommitdiff
path: root/build.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-20Merge build.[ch] into rpmbuild.c, doesn't make sense to separate anymorePanu Matilainen1-361/+0
2010-04-12Gnu tar sometimes prints a "tar: Record size = 16" message, breakingMichael Schroeder1-1/+7
rpmbuild -ta.
2010-01-05Move <ctype.h> include out of system.h to the places that need itPanu Matilainen1-0/+1
2010-01-05Move <errno.h> include out of system.h to the places that need itPanu Matilainen1-0/+1
2009-08-31Replace equal/not equal uses of str[n]cmp() with rstreq[n] in binariesPanu Matilainen1-1/+1
2009-03-27Plug minor memleak from rpmGetCwd() on buildPanu Matilainen1-0/+1
2009-01-11Don't check package BuildRequires when doing --rmsource (rhbz#452477)Jindrich Novy1-0/+7
- export doRmSource() and make it more consistent with the API
2009-01-11Don't fail because of missing sources when only specJindrich Novy1-0/+6
removal is requested (rhbz #472427)
2008-11-21Fix build tree creation with relative paths for %_topdir and friendsPanu Matilainen1-1/+2
- rpmtsRootDir() gives "/" even if root not actually set which makes sense for most operations but not when we're creating build directories
2008-10-10Use rpmMkdirs() to create the entire build tree in buildForTarget()Panu Matilainen1-22/+6
- also move the build tree generation earlier to have it automatically created for tarbuilds too
2008-09-01Create directory structure for rpmbuild prior to build if it doesn't existJindrich Novy1-0/+23
- creates all needed directories that rpmbuild uses for input and output
2008-07-24Dumb thinko breaking tar builds from relative paths (rhbz#456321)Panu Matilainen1-2/+3
2008-04-28Remove alloca() from build()Jindrich Novy1-1/+2
2008-04-22Relax spec permissions in tar build mode (rhbz#253648)Panu Matilainen1-0/+5
- mkstemp() can create the spec in overly protective mode (rpmlint whines), relax up to what users umask permits
2008-04-16Don't use mktemp(), we are sure mkstemp() is available nowJindrich Novy1-4/+0
2008-04-04Oops, no newline at end of filename please...Panu Matilainen1-1/+1
2008-04-04Get rid of the horrid zcmd hackery in buildPanu Matilainen1-12/+4
- rpmExpand() with %uncompress macro etc simplifies things a lot
2008-04-04Stop pretending spec can be an URL or stdin, neither worksPanu Matilainen1-35/+26
- simplifies buildForTarget() somewhat - while at it, eliminate remaining unsafe string operations
2008-04-04Wait for popen() to finish before passing to isSpecFile()Panu Matilainen1-2/+2
2008-04-04Move spec extraction from tarball out of buildForTarget(), simplifyPanu Matilainen1-98/+99
- use basename() and dirname() instead of manual pointer manipulation games - static buffer only used for reading tar output, sizes checked
2008-04-04Oops, add --wildcards back to spec extractionPanu Matilainen1-1/+1
- shouldn't really have to hardcode such stuff but...
2008-04-04Assume failure in buildForTarget() to remove redundancyPanu Matilainen1-9/+1
2008-04-04Refactor spec extraction on tar build to address several issuesPanu Matilainen1-28/+27
- simplify the code - use %{__tar} instead of tar as the extraction command - avoid sprintf to "big enough" buffer - basic spec sanity check while extracting, fixes rhbz#281391
2008-04-04Spec of size zero cannot be a valid spec filePanu Matilainen1-0/+3
2008-03-24Use regular stream functions instead of rpmio in spec sanity checkPanu Matilainen1-6/+6
2008-03-07Log message adjustmentsPanu Matilainen1-2/+2
- dont waste translator time by having them translate obscure debug messages - adjust some suspect looking logging levels - mark some non-debug messages for translation where missing..
2008-01-30Include spring-cleaningPanu Matilainen1-1/+1
- put some consistency into include ordering - everything (apart from bits missed ;) is now ordered like this 1. "system.h" 2. other system includes 3. rpm public headers 4. rpm private headers 5. "debug.h"
2008-01-30rpmlib.h mass evictionPanu Matilainen1-0/+2
- explicitly include what's really needed instead - document remaining uses
2008-01-27Rename isCompressed() -> rpmFileIsCompressed() for namespacingPanu Matilainen1-1/+1
2007-12-15Remove bogus const from rpmGenPath() temporary targetsPanu Matilainen1-1/+1
2007-12-15Remove bogus const from rpmGetPath() temporary targetsPanu Matilainen1-1/+1
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-7/+7
- adjust include paths accordingly
2007-12-03Use regular POSIX functions instead of "RPC" clonesPanu Matilainen1-2/+2
- we only care about local files
2007-11-23Move file compression stuff from rpmmacro.h to rpmfileutil.hPanu Matilainen1-0/+1
2007-11-23Use #include <x.h> syntax to include public headers.Ralf Corsépius1-6/+6
2007-11-19Lose rpmerr.h for goodPanu Matilainen1-1/+1
2007-11-19Replace all RPMERR_* etc uses with corresponding RPMLOG_* levelsPanu Matilainen1-10/+10
2007-10-28Include "rpmbuild.h" instead of <rpmbuild.h>.Ralf Corsépius1-1/+1
2007-10-28Include "rpmcli.h" instead of <rpmcli.h>.Ralf Corsépius1-1/+1
2007-10-10Kick out polish comment.Ralf Corsépius1-5/+0
2007-10-09Make rpmerr.h private, include directly where needed.Panu Matilainen1-0/+1
2007-10-09Replace all uses of RPMMESS_ERROR with RPMLOG_ERRPanu Matilainen1-1/+1
2007-10-09Replace all rpmMessage() uses with rpmlog()Panu Matilainen1-1/+1
2007-10-09Replace all rpmError() uses with rpmlog()Panu Matilainen1-10/+10
2007-09-21Rename Spec -> rpmSpec for namespacingPanu Matilainen1-1/+1
2007-09-11Remove splint tags.Ralf Corsépius1-23/+6
2007-08-29Fix various cases of build failing due to whitespace in dir/filenames.Panu Matilainen1-2/+2
2007-07-12Fix yet-another-compiler-warning.Panu Matilainen1-1/+1
tmpSpecFile gets passed to mkstemp() which expects to modify the template thus discarding const
2007-07-03Pass --wildcards to tar on build (rhbz#206841)Panu Matilainen1-1/+1
Tar no longer accepts globbing by default as it's incompatible with traditional implementations: http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00001.html Rpm needs to work with upstream tar really, the --wildcards option has been supported since 2001 so older versions shouldn't suffer either.
2007-06-08Allow characters >127 that don't fit the current locale in thePanu Matilainen1-0/+5
specfile (e.g. latin1 in utf-8 locale). Patch from OpenSuSE.