Commit Graph

7456 Commits

Author SHA1 Message Date
Panu Matilainen cc69dd20b8 Allocate macro buffers dynamically
- avoids some entirely needless overflow cases
- somewhat similarly to rpm5.org but use heap instead of stack
2008-02-01 13:00:40 +02:00
Panu Matilainen 56405587f4 Allocate various macro buffers from heap not stack 2008-02-01 12:11:03 +02:00
Panu Matilainen 54ab76019e Define + use MACROBUFSIZ for macro expansion buffer size
- double the buffer size while at it...
2008-02-01 11:36:13 +02:00
Panu Matilainen d3d60512bd Macro shell expansion fixes (rhbz#431009) 2008-02-01 11:09:13 +02:00
Panu Matilainen fbc9b689fb Add rpmtypes to doxygen, with todo reminders.. 2008-01-30 17:20:09 +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 d2efb5d77c Use rpmsenseFlags type for dependency flags everywhere (hopefully) 2008-01-30 16:04:40 +02:00
Panu Matilainen 87e01f3362 Use headerIsSource() instead of doing it manually 2008-01-30 14:27:41 +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 7751f84bf0 Move HGE and related prototypes to header.h 2008-01-30 13:03:54 +02:00
Panu Matilainen ecabf13710 Move rpmTagType stuff to rpmtag.h now that they can move 2008-01-30 13:00:26 +02:00
Panu Matilainen 6af8116e72 Stick rpmCallbackType to rpmtypes too.. 2008-01-30 12:59:38 +02:00
Panu Matilainen 118db84121 Add missing system includes 2008-01-30 12:51:09 +02:00
Panu Matilainen c482427fbf Uninline headerFreeData() 2008-01-30 12:42:07 +02:00
Panu Matilainen 78f1f6378e Stick relocation struct to rpmfi, typedef to rpmtypes... 2008-01-30 12:21:59 +02:00
Panu Matilainen 90fbda7103 Move FD_t to rpmtypes.h, used all over .. 2008-01-30 12:20:59 +02:00
Panu Matilainen e97aefc89b Move rpmRC definition to rpmtypes
- lot of places drag in rpmlib.h just for that...
2008-01-30 11:55:06 +02:00
Panu Matilainen 73ebfe9ad4 rpmgi.h doesn't need rpmte and rpmts headers, implementation does 2008-01-30 11:51:28 +02:00
Panu Matilainen 458bf3b208 Remove bunch of unnecessary rpmlib.h includes
- replace with rpmtypes.h where needed
2008-01-30 11:49:25 +02:00
Panu Matilainen e4d43147ee Move header and -iterator to rpmtypes 2008-01-30 11:02:39 +02:00
Panu Matilainen 8f4000b00b Move rpmalKey and rpmal to rpmtypes 2008-01-30 10:57:15 +02:00
Panu Matilainen ebbcd155e7 Move fnpyKey typedef to rpmtypes, its widely used... 2008-01-30 10:54:04 +02:00
Panu Matilainen 3952ef8785 Move rpmts and other major data typedefs to rpmtypes from rpmlib 2008-01-30 10:33:32 +02:00
Panu Matilainen 3564b3a5ed Add missing c++ ifdefs to rpmtag and rpmtypes headers 2008-01-30 10:23:47 +02:00
Panu Matilainen 66345bfc5a Move header tagdata types from header.h to rpmtypes.h 2008-01-30 10:16:14 +02:00
Panu Matilainen 0760e7389f Add stub rpmtypes.h header stub
- place to stick in common typedefs to untangle header cross-include jungle
2008-01-30 10:13:09 +02:00
Panu Matilainen 2adf19b3d3 Remove fts flag API symbols from help messages
- a --help message isn't an API reference...
2008-01-30 09:36:02 +02:00
Panu Matilainen 265b1f017f Updated Polish translation (Piotr Drąg) 2008-01-30 09:24:43 +02:00
Panu Matilainen 87458bd399 Make rpmbuild -bs and -ts imply --nodeps (rhbz#235507)
- better fix might be creating srpm header early but until then...
2008-01-28 15:10:14 +02:00
Panu Matilainen e39b131750 More missing system includes for size_t & friends 2008-01-28 13:43:32 +02:00
Panu Matilainen 80ca9f368f Add missing system includes to rpmmacro.h 2008-01-28 11:45:38 +02:00
Panu Matilainen 339f85db55 Fix printing of filenames with whitespace in check-files (rhbz#430428) 2008-01-28 09:20:33 +02:00
Panu Matilainen f2c6bef540 Urgh, add geode to x86_64 secondary arch subst-crack... 2008-01-25 17:33:35 +02:00
Panu Matilainen 43636bc513 Document libmagic requirement 2008-01-27 17:28:32 +02:00
Panu Matilainen 95b03441cc Rename isCompressed() -> rpmFileIsCompressed() for namespacing 2008-01-27 16:39:40 +02:00
Panu Matilainen 8e2965886f Couple of missing doxygen groupings 2008-01-27 16:13:47 +02:00
Panu Matilainen a0a972702a Detect lzma magic if it exists, otherwise dumb check for .lzma filename
- Newer lzma-utils make a magic header in archives, current stable versions
  don't. Guessing based on common compression flags used by current lzma
  versions is feeble and futile...
2008-01-27 16:11:46 +02:00
Panu Matilainen c693169dee Use the suffix checker in rpmfc instead of inline defined version 2008-01-27 16:00:40 +02:00
Panu Matilainen f0f392cce6 Helper function for checking given suffix on path 2008-01-27 16:00:06 +02:00
Panu Matilainen c63f859b78 Quote find-debuginfo builddir to avoid whitespace issues 2008-01-25 13:54:39 +02:00
Panu Matilainen 70e793db89 Don't reset target when reading included rpmrc's.
Doesn't seem to break anything and fixes rhbz#232429 AFAICT...
2008-01-25 12:24:55 +02:00
Panu Matilainen acf2fef308 Hackery to get secondary arch macros included on x86_64 (rhbz#194123) 2008-01-25 12:20:56 +02:00
Panu Matilainen 0d7bf59ad1 Bandaid patch for truncated error message in russian (mdvbz#31680)
Just up the stupid static reservation "high enuff" for now.
asprintf() would be nice here but it's not at all portable, revisit later.
2008-01-25 12:14:23 +02:00
Panu Matilainen ee655d91a2 Permit conflicting ghost files
Patch from Pascal Rigaux
2008-01-25 12:01:16 +02:00
Panu Matilainen 86c2aa8cd6 Print regular provides on build too (mdvbz#36672)
Patch ported from rpm5.org by Pascal Rigaux
2008-01-25 08:30:32 +02:00
Panu Matilainen f623116151 Missing space in russian translation (mdvbz#36974)
Patch originally from Andrey Borzenkov
2008-01-24 09:34:33 +02:00
Panu Matilainen eec03952be Make uncompress macros match reality (_ vs __ prefix) 2008-01-23 07:56:51 +02:00
Panu Matilainen 240b2d3441 Add support for Geode CPU (rhbz#428979)
Patch from Dennis Gilmore
2008-01-19 11:40:59 +02:00
Panu Matilainen 735c83ad52 Define and use UGIDMAX instead of hardcoded 1024 all over 2008-01-10 13:39:00 +02:00
Panu Matilainen 76d8c76836 pgpHexStr() returns pointer to static buffer, return const char * 2008-01-10 13:35:03 +02:00