Commit Graph

7270 Commits

Author SHA1 Message Date
Panu Matilainen 3587db8c4e Eliminate copy-paste fd digest stealing, stuff into rpmio_internal 2007-11-16 17:18:55 +02:00
Panu Matilainen 157759299d Eliminate need for rpmio_internal.h in rpmdb.c
- adds new pgpExtractPubkeyFingerprint() API function

Ported from rpm5.org work of Jeff Johnson
2007-11-16 14:16:56 +02:00
Panu Matilainen f38eeadf41 Debugedit needs crypto initialization too.. 2007-11-15 15:16:10 +02:00
Panu Matilainen 3a168d6927 Remember to initialize crypto in various test programs.. 2007-11-15 14:03:19 +02:00
Panu Matilainen 589b54af90 Initialize NSS early (rhbz#382091)
- add new rpmInitCrypto() API for directly initializing any crypto
- call it from rpmReadConfig() to ensure it's always initialized early on
2007-11-15 11:08:53 +02:00
Panu Matilainen 905ea76db4 Fix base64 decoder related crash (rhbz#380911)
The base64 decoder code incorrectly assumed that char is a signed type.
Patch from Tomas Mraz
2007-11-14 21:52:42 +02:00
Panu Matilainen 9ee49db5a4 Fix rpm -K segfaulting on corrupted header
(http://qa.mandriva.com/show_bug.cgi?id=#33735)

Patch from Pascal Rigaux
2007-11-13 13:11:54 +02:00
Panu Matilainen b6a1ee9bb7 Make "rpmbuild -bb --quiet" quiet as should be
(without this patch, the option is simply ignored in rpmcliAllPoptTable)

Also rhbz#124300

Patch from Pascal Rigaux
2007-11-13 13:09:01 +02:00
Panu Matilainen b359165445 Fix build without O2
HAVE_LOCALE_H is used by system.h, ensure it is defined properly
(the issue only occurs when compiling without __OPTIMIZE__ (ie -O2)
 otherwise libintl.h do include locale.h)

Patch from Pascal Rigaux
2007-11-13 13:03:38 +02:00
Panu Matilainen ec8761f231 Align rpm -V output
Patch from Pascal Rigaux
2007-11-13 13:00:52 +02:00
Panu Matilainen 142b5e5301 Use dgettext() instead of just gettext()
Patch from Pascal Rigaux
2007-11-13 12:57:49 +02:00
Panu Matilainen 827399cda0 Fix free on invalid pointer after displaying "Unable to open temp file"
Patch from Pascal Rigaux
2007-11-13 12:47:22 +02:00
Panu Matilainen 7d032c3505 Minimal protection for rpmsqElem internals 2007-11-08 15:59:45 +02:00
Panu Matilainen 262f2d63b1 Remove unnecessary psm.h include 2007-11-08 15:56:11 +02:00
Panu Matilainen 751bba091b Dead code removal 2007-11-08 14:17:17 +02:00
Panu Matilainen 49cd264574 Use _target_* macros for build restriction checking
- avoid using deprecated rpmrc rpmGet*Info()
- plug a small memory leak (remember to free the values too)
- potential linux vs Linux as the os name implications but as isMemberInEntry()
  ignores case anyway, shouldn't matter
2007-11-08 14:09:31 +02:00
Panu Matilainen df84cabff6 Disable -Wstrict-prototypes for now due to noise from NSPR headers 2007-11-08 12:57:02 +02:00
Panu Matilainen af0fe8255c Kludge around mktemp() uses to shut up build warnings 2007-11-08 12:54:05 +02:00
Panu Matilainen 5320dcba03 Remove dead & unused RPMTAG_ARCHIVESIZE addition code
- rpm >= 4.1 uses RPMTAG_PAYLOADSIZE and translates RPMTAG_ARCHIVESIZE to
  it automatically
2007-11-08 12:34:53 +02:00
Panu Matilainen 77d3ce0549 Kill off deprecated and unused rpmGetMachine() entirely 2007-11-08 12:26:46 +02:00
Panu Matilainen de7a247133 Remove rpmSetMachine() from API 2007-11-08 12:22:14 +02:00
Panu Matilainen f81c916aef Remove dead rpmrc-related code from spec parsing 2007-11-08 12:16:48 +02:00
Panu Matilainen e6f7c3c848 Remove useless "var" parameter from setup helpers
Additionally rename setVarDefault to addMacroDefault which it really is
2007-11-08 10:33:47 +02:00
Panu Matilainen cc465dd623 Kill off unused rpmSetVar() and freeRpmVar() 2007-11-08 10:32:10 +02:00
Panu Matilainen f7604b1a0e Remove rpmGetVar, rpmSetVar from API 2007-11-08 10:24:58 +02:00
Panu Matilainen 2967cb5ffa Eliminate dead code 2007-11-07 13:47:42 +02:00
Panu Matilainen 1688cc62bf Eliminate rpmlead use from legacy retrofitting. 2007-11-07 13:21:06 +02:00
Panu Matilainen b497a4f05f Only do legacy retrofitting on packages that need it.
Packages not having RPMTAG_DIRNAMES (ie compressed filenames) is
used for checking, packages not having it are either built with rpm <= 3.x
or with --nodirtokens, retrofitting in the latter case doesn't really
hurt that much for the obscure case...
2007-11-07 13:12:20 +02:00
Panu Matilainen 8f97ae9d26 Document rpmio_internal.h uses outside rpmio/ 2007-11-07 11:57:12 +02:00
Panu Matilainen 4471d9c371 Move tufdio under rpmio/ where it belongs.. 2007-11-07 11:41:06 +02:00
Panu Matilainen c5588096d3 Silence bogus gcc warning 2007-11-07 11:02:41 +02:00
Panu Matilainen 85a1226e8c Remove unused variable 2007-11-07 11:01:40 +02:00
Panu Matilainen d8741ebc13 Silence bunch of compiler warnings from test programs 2007-11-07 11:00:51 +02:00
Panu Matilainen 8239d0b74b Remove bunch of unnecessary misc.h includes, document others 2007-11-07 10:17:10 +02:00
Panu Matilainen d8babb5a86 Remove .splintrc's in the tree 2007-11-07 09:01:38 +02:00
Peter Jones bb6aaf184e Merge 2007-11-02 09:25:33 -04:00
Peter Jones 51f5b6caa8 - Fix segfault in %{lua:...}'s rpm_print
- Don't automatically print a newline in rpm_print
2007-11-02 09:23:05 -04:00
Panu Matilainen 43b1952dc6 Eliminate rpmfcToken struct internals from the API 2007-11-02 12:11:33 +02:00
Panu Matilainen 0781adb1cb Eliminate macro struct internals from the API 2007-11-02 10:40:45 +02:00
Panu Matilainen cefa324b3a Meh, actually add the base64 files.. 2007-11-02 10:24:42 +02:00
Panu Matilainen 1a32f9959e Remove tinv 2007-11-02 10:18:23 +02:00
Panu Matilainen 1a2a82d389 Document NSS requirement, revise obsolete comment in macros.in 2007-11-02 10:16:16 +02:00
Panu Matilainen 524262f6f8 Resurrect tax from NSS switchover 2007-11-02 10:11:54 +02:00
Panu Matilainen 8afe81c214 Use NSS instead of beecrypt for encryption (Tomas Mraz) 2007-11-02 10:02:40 +02:00
Panu Matilainen e7fd0807d3 Include "legacy.h" not <rpmdb/legacy.h> 2007-11-01 12:26:05 +02:00
Panu Matilainen 02fb3b030d Remove two unnecessary legacy.h includes 2007-11-01 12:25:41 +02:00
Panu Matilainen e1cc5871a0 Document RPMFI_INTERNAL uses 2007-10-31 12:48:43 +02:00
Panu Matilainen bb976c2f57 Document _RPMTE_INTERNAL needs 2007-10-31 12:39:23 +02:00
Panu Matilainen 05fcdb49f1 Split out rpmts_internal.h from rpmts.h 2007-10-31 12:08:01 +02:00
Panu Matilainen a3bbfc98ee Disable python available package mechanism for now at least.
- need saner available mechanism to resurrect, OTOH nothing appears to
  use it anymore
- last remaining RPMTS_INTERNAL offender...
2007-10-31 11:57:04 +02:00