Panu Matilainen
5c084f842a
Unconditionally include <netdb.h> where needed instead of system.h
...
- there's no fallback for missing netdb.h so there's little point
conditionalizing it
- avoid yet more system.h pollution
2010-01-05 11:26:14 +02:00
Panu Matilainen
554f3f0cfb
Remove unused header checks from configure
...
- maybe these have been used at some point but not anymore...
2010-01-04 16:59:39 +02:00
Panu Matilainen
ecf4512239
Eliminate the rpmte tsort info manipulation public API
...
- its not useful outside the ordering internals and API users have no
business messing with it
2009-12-21 09:19:03 +02:00
Panu Matilainen
5327ac46e5
Rip unnecessary headerDump() and the last ancient artifacts using it
...
- xml format dump gives an output that can actually be further processed
2009-09-10 14:14:49 +03:00
Panu Matilainen
ef0adf1da1
Add noreturn annotations to javadeps
2009-09-07 16:34:20 +03:00
Panu Matilainen
0975d1e2c0
Fix some typos in javadeps usage message (ticket #72 )
2009-06-23 09:56:04 +03:00
Panu Matilainen
71a7dd8b7a
Add debugedit support for DWARF-3 (RhBug:505774)
...
- patch from Jakub Jelinek
2009-06-16 13:52:43 +03:00
Panu Matilainen
298c919c00
Revert couple of checksum -> digest renames
...
- physical cpio header and elf header have checksums, not digests
(from commit 7acdfded4a
)
- doesn't affect functionality though
2009-03-19 10:15:49 +02:00
Panu Matilainen
c1180e3c43
Silence compiler whining on rpmsort and rpminject
2009-03-12 09:54:31 +02:00
Jindrich Novy
7acdfded4a
Add md5->filedigest aliases (rhbz#487597)
...
- add %verify(nofiledigest) as %verify(nomd5) file attribute alias
- reference digests as digests not checksums
- make old md5 related symbols obsolete and use newer reference
- update man page accordingly
2009-02-27 14:34:39 +01:00
Panu Matilainen
83e5726aad
javadeps format string fix from Pixel
2009-01-09 17:13:19 +02:00
Panu Matilainen
685361038e
Don't bother translators with messages from unused utilities (rhbz#466834)
...
- these things dont even get built normally, translations hardly needed
2009-01-08 13:57:59 +02:00
Panu Matilainen
5ff05aec30
Delay NSS initialization until actually used
...
- since NSS is allergic (ie becomes non-functional) after forking, delay
it's initialization until really needed, ie lazy init in rpmDigestInit()
- however as NSS init can fail if attempted in completely empty chroot,
we force crypto init to happen at transaction set create time, forking
past that is pretty much doomed anyway
- this is the other half of the fix for rhbz#476737, and similar case
noticed by Pixel in Mandriva (due to urpm forking)
2009-01-08 13:17:22 +02:00
Jindrich Novy
196cc2ad71
Nuke the useless bits of rpmsort.c declared in global scope
2008-12-09 16:24:16 +01:00
Panu Matilainen
3cc7a1ef99
Yank out ancient convertdb1
2008-10-14 13:34:14 +03:00
Panu Matilainen
6c1103fc80
Remove rpmcache from repository
...
- next to nobody even knew about it, much less used it...
- hardly useful now that solvedb is gone
2008-07-04 14:33:23 +03:00
Panu Matilainen
d902040e14
Remove solvedb API and other related stuff
...
- nobody has used the solvedb for anything in years
- the mechanism + rpmcache are horribly broken on multilib
- solvedb is way too heavyweight to be really usable as a general mechanism
- solver callback hook left in place as that could in theory be usable still
- we need something better to replace this all, getting rid of it now
so we're not stuck with the API forever
2008-07-04 14:22:06 +03:00
Panu Matilainen
c1a5eb3712
debugedit: Include empty CU current directories (rhbz#444310)
...
- patch from Jan Kratochvil
2008-06-27 15:15:46 +03:00
Panu Matilainen
1c445fcd97
Use type-specific headerPuts() for rpmcache
...
- ...to finish of undoing yesterdays damage, sigh ;)
2008-06-19 15:52:54 +03:00
Panu Matilainen
19415eaf04
Convert rpmcache to headerGet+Put
2008-06-18 10:15:37 +03:00
Jindrich Novy
f32ad12ea8
Use 64bit sizes by default in rpmcache
2008-06-13 12:51:01 +02:00
Panu Matilainen
058e94ec41
Ditch the tagtable argument of (internal) headerDump() function
...
- might as well ditch the function too I guess...
2008-05-21 17:26:52 +03:00
Panu Matilainen
d2ef49038a
Include rpmtypes.h first instead of rpmtag.h everywhere
2008-05-21 15:59:39 +03:00
Panu Matilainen
90e10708f8
Fixup paths and Makefiles for rpmdb/ elimination
2008-05-12 12:28:12 +03:00
Panu Matilainen
b15e3e3ca1
Silence bogus warning on memset()
...
- gcc doesn't realize shrank == 0 would terminate the process via error()
before reaching memset(), work around...
2008-05-05 08:15:17 +03:00
Jindrich Novy
cf767c71c5
Remove alloca() ussage from rpmcache.c
2008-04-28 12:50:24 +02:00
Jindrich Novy
39dcd57e7f
Remove unused alloca'd variable
2008-04-28 12:50:01 +02:00
Jindrich Novy
bf3a8e6cd9
Don't copy unknown number of args to buffer of fixed size in initGlobs()
2008-04-17 09:01:28 +02:00
Panu Matilainen
d39cc1dfda
Just call legacyRetrofit() instead of combined compress + provide retrofits
2008-04-10 16:04:12 +03:00
Panu Matilainen
8909c05434
Minimally convert all pgpHexCvt() users to use pgpHexStr() instead
2008-04-07 13:26:46 +03:00
Panu Matilainen
c29adcee80
ARGV_t const pendantry
...
- const on typedef'ed ARGV_t doesn't mean a thing, add a new,
(exec* compatible) ARGV_const_t and use where appropriate consistently in
argv.h, rpmcli.h etc
- popt's argv const is the wrong way around for exec() family, add explicit
ARGV_t casts on popGetArgs() uses where needed
- compiler silence, aaahh...
2008-04-07 12:19:58 +03:00
Panu Matilainen
28cba016c8
Add missing leading underscores to names passed to rpmMkdirPath()
...
- mostly cosmetical, leading to slightly misleading error messages
2008-02-28 12:46:45 +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
130118d594
Use rpmTagType always now that it's available everywhere
...
- RPM_MASK_TYPE is not a datatype, move it out of the enum
- add missing cases python header handling to shut up gcc
2008-02-05 16:14:34 +02:00
Panu Matilainen
36e9f885e1
Yet another typedef for transaction ID, use where spotted
...
- most remaining [u]int16|32 uses are indexes and such, ie actual numbers
2008-02-05 15:29:37 +02:00
Panu Matilainen
1df890dd02
Make check-programs build again, assorted type-fiddlings..
2008-02-04 12:00:30 +02:00
Panu Matilainen
aca6d4a2c4
Add rpm_time_t type for time types (in headers), use where spotted
...
- easy to spot, easy to change...
- time_t size can vary, header data needs fixed size
2008-02-04 11:50:39 +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
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
243e97302d
Remove now useless nested function in debugedit
2008-01-04 12:00:51 +02:00
Panu Matilainen
addac6a86b
Add rpm_data_t (and _constdata_t) for header data, use everywhere
...
- consistent, easy to grep for and change...
- bogus consts removed where spotted
2007-12-19 12:05:56 +02:00
Panu Matilainen
22d169c102
Cast to silence gcc..
2007-12-18 12:53:16 +02:00
Panu Matilainen
78ad426f04
Remove bogus const from rpmGlob argv return type
...
- it's malloced and must be freed by caller
2007-12-18 10:17:18 +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
8946859700
More size_t type pedantry
2007-12-14 11:38:20 +02:00
Panu Matilainen
1e96ead466
Use rpm_tagtype_t everywhere for rpm (header) tagtype type
...
- typedef'ed as uint32_t, doesn't matter much but negative types dont exist
- easy to grep, easy to change...
- define RPM_FORCEFREE_TYPE instead of -1 "magic" for forcing
headerFreeData (ugh), easier to grep for and change than "-1"
2007-12-13 20:35:33 +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
249113b17a
Move rpmsenseFlag enums to rpmds where they logically belong
2007-12-02 22:59:38 +02:00
Panu Matilainen
9cbf0349b8
Use regular POSIX functions instead of "RPC" clones
...
- we only care about local files
2007-12-03 16:33:18 +02:00
Panu Matilainen
fb90b8b4eb
More rpmlead exorcizing
...
- remove unnecessary type parameter to writeRPM(), header knows what it is
- remove unnecessary lead argument to readRPM(), it's unused anyway
- drop lead from cpioSourceArchive struct
2007-12-01 21:06:00 +02:00
Panu Matilainen
89527785bb
Move logging related macros rpmlog, adjust includes
2007-11-30 23:08:38 +02:00
Panu Matilainen
5c6f56af8f
One missed legacy include
2007-11-27 11:58:17 +02:00
Ralf Corsépius
0169e93679
Remove #include "lib/signature.h" (unused)
2007-11-26 15:37:30 +01:00
Ralf Corsépius
96e7f513cd
Eliminate type "byte"
2007-11-26 10:42:39 +01:00
Ralf Corsépius
38560be92b
Expand private include file names to be relative to $(top_srcdir)
2007-11-23 11:47:48 +01:00
Panu Matilainen
7b2a9b3c24
Move rpmGlob() from macros to rpmfileutil.h
...
- macros is all just macros now
- internal copy of popt stuff needs to go...
2007-11-23 10:27:29 +02:00
Ralf Corsépius
abeea80a38
Use #include <x.h> syntax to include public headers.
2007-11-23 06:46:19 +01:00
Ralf Corsépius
3553b86aff
Include system.h
2007-11-22 13:41:06 +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
Panu Matilainen
f38eeadf41
Debugedit needs crypto initialization too..
2007-11-15 15:16:10 +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
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
c13ab34016
Add rpmtsPrintSuggests() method for now, use instead of ts internals mucking
...
- temporary measure to get rid of silly RPMTS_INTERNAL uses, the whole
solve/suggestion thingie needs love or ripping...
- clean up the suggestions in rpmtsClean() instead of while printing
2007-10-31 10:37:18 +02:00
Ralf Corsépius
57a5a2b3db
Remove local def of uint32_t, uint16_t.
...
Include <stdint.h>.
Use size_t for sizes.
2007-10-29 08:22:15 +01:00
Ralf Corsépius
a241ba959f
Include "rpmfc.h" instead of <rpmfc.h>.
2007-10-28 06:49:57 +01:00
Ralf Corsépius
14d434925b
Include "rpmbuild.h" instead of <rpmbuild.h>.
2007-10-28 06:49:54 +01:00
Ralf Corsépius
f25c04c1e4
Include "rpmlib.h" instead of <rpmlib.h>.
2007-10-28 06:47:31 +01:00
Ralf Corsépius
f15b940aa0
Include "rpmds.h" instead of <rpmds.h>.
2007-10-28 06:47:17 +01:00
Ralf Corsépius
cff3ba0882
Include "rpmcli.h" instead of <rpmcli.h>.
2007-10-28 06:47:14 +01:00
Ralf Corsépius
227633a3e0
Include "rpmio.h" instead of <rpmio.h>.
2007-10-28 06:43:16 +01:00
Ralf Corsépius
12ef6e8d3a
Include "fts.h" instead of <fts.h>.
2007-10-28 06:43:07 +01:00
Ralf Corsépius
f507baed1f
Include "argv.h" instead of <argv.h>.
2007-10-28 06:43:04 +01:00
Ralf Corsépius
759e91bf4a
Include "rpmdb.h" instead of <rpmdb.h>.
2007-10-28 06:42:55 +01:00
Ralf Corsépius
e36a2ac8da
Include "rpmmacro.h" instead of <rpmmacro.h>.
2007-10-28 06:32:05 +01:00
Ralf Corsépius
26a9e83608
Include "rpmurl.h" instead of <rpmurl.h>.
2007-10-28 06:05:12 +01:00
Ralf Corsépius
bebeb89735
Eliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead.
2007-10-26 13:24:14 +02:00
Panu Matilainen
8bcd871811
debugedit mishandles empty DW_AT_comp_dir (Roland McGrath)
...
- fpc seems to produce DW_AT_comp_dir with value "" (empty string).
This is dubious, but debugedit makes it even worse by getting confused by it.
2007-10-18 09:34:54 +03:00
Panu Matilainen
abdc47d51c
debugedit mishandles DW_FORM_ref_addr (Roland McGrath)
2007-10-18 09:33:56 +03:00
Panu Matilainen
01d5c13a42
Make rpmerr.h private, include directly where needed.
2007-10-09 15:33:49 +03:00
Panu Matilainen
8b4b6eeb47
Oops, one missed rpmError() user..
2007-10-09 15:06:39 +03:00
Panu Matilainen
56366e3890
Replace all uses of RPMMESS_NORMAL with RPMLOG_NOTICE
2007-10-09 14:50:42 +03:00
Panu Matilainen
c52905d334
Replace all uses of RPMMESS_ERROR with RPMLOG_ERR
2007-10-09 14:49:02 +03:00
Panu Matilainen
9d9aa852ca
Replace all uses of RPMMESS_DEBUG with RPMLOG_DEBUG
2007-10-09 14:48:04 +03:00
Panu Matilainen
4ce9fc1a17
Replace all rpmMessage() uses with rpmlog()
2007-10-09 14:14:30 +03:00
Panu Matilainen
d709195c3a
Replace all rpmError() uses with rpmlog()
2007-10-09 14:06:06 +03:00
Ralf Corsépius
343effc65f
Remove (unused).
2007-10-01 13:17:15 +02:00
Panu Matilainen
d16bdb1550
Hide rpmfc structure internals from the API
2007-09-25 22:46:02 +03:00
Panu Matilainen
3a26a31576
Fixup after Spec -> rpmSpec
2007-09-21 15:58:50 +03:00
Panu Matilainen
8174588398
Rip out unused anaconda-related hacks
2007-09-20 17:37:39 +03:00
Panu Matilainen
3b8da4ed11
Rename tagName/Value/Type() to rpmTagGet*()
...
- namespacing
- avoid collisions with tagtype definitions
2007-09-20 15:09:52 +03:00
Ralf Corsépius
90688278db
Change main() to using char *argv[].
2007-09-18 05:53:37 +02:00
Ralf Corsépius
2975d9b63b
Apply poptReadDefaultConfig iff RPM_USES_POPTREADDEFAULTCONFIG is set.
2007-09-17 11:29:52 +02:00
Ralf Corsépius
7484efff8e
Apply poptReadDefaultConfig iff RPM_USES_POPTREADDEFAULTCONFIG is set.
2007-09-17 11:28:27 +02:00
Ralf Corsépius
be53bc654c
Remove (Dead, unused).
2007-09-17 05:52:29 +02:00