Commit Graph

230 Commits

Author SHA1 Message Date
Panu Matilainen f677a821ad Since we really want a FILE* then get one in the first place
- 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-10-16 13:36:39 +03:00
Panu Matilainen ec65f5e5f0 Move rl to the scope where its needed, dont bother assigning NULL 2009-09-07 17:00:49 +03:00
Panu Matilainen a912ca599c Fix dumb thinko from commit 4177fdffd6 2009-09-02 14:43:00 +03:00
Panu Matilainen 4177fdffd6 Eliminate uses of headerNVR() and friends in librpmbuild code 2009-09-02 11:55:42 +03:00
Panu Matilainen 0c4e48de79 Replace equal/not equal uses of str[n]cmp() with rstreq[n] in build code 2009-08-31 11:08:05 +03:00
Panu Matilainen d8cde273e5 Avoid adding Lua sources and patches twice when recursing (ticket #82)
- parseSpec() operates on newly created empty spec structures even when
  "recursing" but the lua variables are global and need recursion
  protection to avoid adding multiple times
2009-08-17 12:07:48 +03:00
Jindrich Novy b028930925 Teach %files to accept multiple filelists (ticket #70, rhbz#475359) 2009-06-23 11:05:06 +02:00
Panu Matilainen b53ecfb11d Avoid dumb casts
- switch-case on rpmTag enum makes gcc go crazy without a default case
2008-09-02 09:42:32 +03:00
Panu Matilainen be56a4a888 Add parenthesis to make gcc happy 2008-08-08 13:53:57 +03:00
Jindrich Novy a366612ec3 Don't allow multiple definition of PatchX or SourceX (rhbz#458261, rhbz#458260) 2008-08-07 14:50:49 +02:00
Panu Matilainen 6c0651926a Simplify spec buildroot hysteria
- BuildRoot: in spec is now really ignored
- parseSpec() uses default %{buildroot} unless overridden
- BuildRoot is forced for all builds
2008-08-06 12:24:34 +03:00
Jindrich Novy 1a173c486d Make Source0: equal to Source: again 2008-07-07 14:50:13 +02:00
Panu Matilainen 7b95061d3b Kick out now unused printNewSpecfile() 2008-07-07 10:42:55 +03:00
Panu Matilainen 0f991a1420 Kick out ancient, useless and hidden --specedit option 2008-07-07 10:17:21 +03:00
Jindrich Novy 724b07bba5 Don't treat Patch and Source as Patch0 and Source0 2008-07-04 15:00:21 +02:00
Jindrich Novy 0e9f7e2d62 Update parseNoSource() and addSource() to accept only unsigned SourceXX numbers 2008-07-01 12:54:13 +02:00
Jindrich Novy ad60332e04 findSource() eats only unsigned SourceXX numbers 2008-07-01 12:54:13 +02:00
Panu Matilainen ea9b00dab8 Convert internal uses of headerSprintf() to headerFormat() 2008-05-12 16:20:13 +03:00
Panu Matilainen e907b912f9 Eliminate nasty hackery with "special" doc + docdir format
- figure out docdir early on in spec parsing, store in package struct
  instead of abusing parse buffer
- fixes memleaks from docdir_fmt and headerSprintf too
2008-05-06 12:48:09 +03:00
Panu Matilainen f9a95483bb Simplify lookupPackage(), avoid alloca() 2008-04-25 15:28:08 +03:00
Jindrich Novy 0662b2f512 Kill queryHeader(), it is not used and buggy 2008-04-16 11:18:00 +02:00
Panu Matilainen 29674e476a Yet more url ripping - buildroot is never an url
- this is a bit nasty as it changes public interfaces but rename to make
  it explicit they're just plain paths, not urls
2008-04-09 08:18:38 +03:00
Jindrich Novy 384a31b4a3 Escape '%' in format 2008-04-04 13:49:13 +02:00
Jindrich Novy f548819c94 Simplify formatting 2008-04-04 13:17:53 +02:00
Jindrich Novy f6b0cf178a Simplify package comparison and format creation.
- also avoid static buffer usage
2008-04-04 13:01:50 +02:00
Panu Matilainen c4659498e3 Eliminate bogus const's from spec structure 2008-03-24 19:03:20 +02:00
Panu Matilainen 2cf64e95f2 Eliminate bogus const's from OFI_t and spectags structs 2008-03-24 19:03:00 +02:00
Jindrich Novy a3ceec504b Use rasprintf() to prevent overflows and remove BUFSIZ buffer limit. 2008-03-23 13:50:07 +01:00
Panu Matilainen c908277be2 Minimal namespacing for locale-insensitive x*() string functions 2008-03-18 09:10:13 +02:00
Panu Matilainen 89f59abcd3 Remove some ancient dead code 2008-02-25 12:33:19 +02:00
Panu Matilainen 98c5039009 Add %{sources} and %{patches} macros to build
- push full patch + source paths to global lua tables
- %{sources} and %{patches} are just easy-access wrappers to accessing
  the lua tables
- "git-am -p1 %{patches}" and enjoy...
2008-02-25 12:24:22 +02:00
Panu Matilainen d718b12f5b Mass convert (back) to rpmTag as it's usable everywhere now
- cast away a few cases where the enum usage causes ridiculous amount
  of compiler warnings from unhandled switch-cases
2008-02-05 17:42:19 +02:00
Panu Matilainen f53c323372 Make rpmtag.h standalone, include from rpmtypes.h
- permits header.h to use the tag types
- revert other includes back to header.h, more crazy #include churn...
- rpmTagTable etc in header.h for now, don't really belong there but...
2008-02-03 16:24:07 +02:00
Panu Matilainen eb5dc35c19 Include spring-cleaning
- 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-30 17:05:29 +02:00
Panu Matilainen 99faa2735b rpmlib.h mass eviction
- explicitly include what's really needed instead
- document remaining uses
2008-01-30 13:53:51 +02:00
Panu Matilainen 598d6efc86 Much of spec internals is exposed, let them be const for now 2007-12-16 20:58:44 +02:00
Panu Matilainen b6a663ec0a Remove bogus const from rpmGetPath() temporary targets 2007-12-15 10:39:15 +02:00
Panu Matilainen 55cb2ff128 Bogus const removal continued... 2007-12-14 19:52:11 +02:00
Panu Matilainen 8d66d5fe4a Bunch of const char* corrections
- functions returning string constants as char * etc...
2007-12-14 15:17:59 +02:00
Panu Matilainen 7e56c6355b Use rpm_tag_t everywhere for rpm (header) tag type
- typedef'ed as int32_t for now, negative values used in some places for
  error cases
- easy to grep, easy to change...
- add RPMTAG_NOT_FOUND define, used in place of -1 "magic",
2007-12-13 19:32:37 +02:00
Panu Matilainen 9ce13e09ef Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Panu Matilainen d4622b5135 Yet more rpmbuild fixups from rpmerr.h removal (partly from rpm5.org)
- additionally use rpmRC return types instead of numbers where appropriate
2007-12-07 10:43:53 +02:00
Ralf Corsépius 4d49dfcf41 Expand private include file names to be relative to $(top_srcdir) 2007-11-23 11:37:54 +01:00
Panu Matilainen 2c6905dd9f Move rpmGetPath and rpmGenPath to rpmfileutil.h 2007-11-23 10:20:19 +02:00
Ralf Corsépius abeea80a38 Use #include <x.h> syntax to include public headers. 2007-11-23 06:46:19 +01:00
Panu Matilainen 17ef8a3082 Lose rpmerr.h for good 2007-11-19 16:32:15 +02:00
Panu Matilainen 43c5de66fb Replace all RPMERR_* etc uses with corresponding RPMLOG_* levels 2007-11-19 16:25:24 +02:00
Ralf Corsépius f7a062a74c Add SKIPSPACE. 2007-10-29 12:24:00 +01:00
Panu Matilainen 01d5c13a42 Make rpmerr.h private, include directly where needed. 2007-10-09 15:33:49 +03:00
Panu Matilainen d709195c3a Replace all rpmError() uses with rpmlog() 2007-10-09 14:06:06 +03:00