platform/upstream/rpm.git
16 years agoRemove unused RPMUSER, GROUP etc from configure.ac
Panu Matilainen [Fri, 7 Mar 2008 10:36:22 +0000 (12:36 +0200)]
Remove unused RPMUSER, GROUP etc from configure.ac

16 years agoLog message adjustments
Panu Matilainen [Fri, 7 Mar 2008 07:47:51 +0000 (09:47 +0200)]
Log message adjustments
- 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..

16 years agoFurther constants made readonly...
Panu Matilainen [Fri, 7 Mar 2008 06:29:03 +0000 (08:29 +0200)]
Further constants made readonly...

16 years agoMake _cacheDependsRC static, not needed outside depends.c
Panu Matilainen [Fri, 7 Mar 2008 06:21:55 +0000 (08:21 +0200)]
Make _cacheDependsRC static, not needed outside depends.c

16 years agoAnother pile of read-only constants marked as such..
Panu Matilainen [Fri, 7 Mar 2008 06:20:03 +0000 (08:20 +0200)]
Another pile of read-only constants marked as such..

16 years agoMark another pile of header_magic duplicates as read-only
Panu Matilainen [Fri, 7 Mar 2008 06:15:03 +0000 (08:15 +0200)]
Mark another pile of header_magic duplicates as read-only

16 years agoMake yet more build tables readonly
Panu Matilainen [Thu, 6 Mar 2008 18:47:17 +0000 (20:47 +0200)]
Make yet more build tables readonly
- preambleList and partList are modified runtime for silly reasons,
  reminders to fix later..

16 years agoMake headerCopyTags() tag list const, the list isn't modified..
Panu Matilainen [Thu, 6 Mar 2008 18:25:43 +0000 (20:25 +0200)]
Make headerCopyTags() tag list const, the list isn't modified..

16 years agoMark bunch of static build-related tables as read-only
Panu Matilainen [Thu, 6 Mar 2008 18:17:20 +0000 (20:17 +0200)]
Mark bunch of static build-related tables as read-only

16 years agoMake rpmfc token and apply tables readonly
Panu Matilainen [Thu, 6 Mar 2008 17:57:01 +0000 (19:57 +0200)]
Make rpmfc token and apply tables readonly

16 years agoMark rpm tag tables read-only as far as we can..
Panu Matilainen [Thu, 6 Mar 2008 17:51:06 +0000 (19:51 +0200)]
Mark rpm tag tables read-only as far as we can..

16 years agoMark various header tables and definitions as read-only
Panu Matilainen [Thu, 6 Mar 2008 17:50:41 +0000 (19:50 +0200)]
Mark various header tables and definitions as read-only

16 years agoMake the rpmdb vectors readonly
Panu Matilainen [Thu, 6 Mar 2008 17:49:08 +0000 (19:49 +0200)]
Make the rpmdb vectors readonly

16 years agoMark bunch of misc. tables & such read-only in librpmio
Panu Matilainen [Thu, 6 Mar 2008 17:27:19 +0000 (19:27 +0200)]
Mark bunch of misc. tables & such read-only in librpmio

16 years agoMake rpmio vectors read-only
Panu Matilainen [Thu, 6 Mar 2008 17:25:46 +0000 (19:25 +0200)]
Make rpmio vectors read-only

16 years agoFurther read-only tables in rpmpgp..
Panu Matilainen [Thu, 6 Mar 2008 17:24:56 +0000 (19:24 +0200)]
Further read-only tables in rpmpgp..

16 years agoMark various pgp value tables read-only as they should be
Panu Matilainen [Thu, 6 Mar 2008 16:56:38 +0000 (18:56 +0200)]
Mark various pgp value tables read-only as they should be

16 years agoPreReq -> Requires in ordering debug output (Pascal Rigaux)
Panu Matilainen [Tue, 4 Mar 2008 07:26:27 +0000 (09:26 +0200)]
PreReq -> Requires in ordering debug output (Pascal Rigaux)

16 years agoAdd super-H arch support (rhbz#432496)
Panu Matilainen [Tue, 4 Mar 2008 06:16:02 +0000 (08:16 +0200)]
Add super-H arch support (rhbz#432496)

Patch from Masaki Chikama

16 years agoAdd missing leading underscores to names passed to rpmMkdirPath()
Panu Matilainen [Thu, 28 Feb 2008 10:46:45 +0000 (12:46 +0200)]
Add missing leading underscores to names passed to rpmMkdirPath()
- mostly cosmetical, leading to slightly misleading error messages

16 years agoAnother unnecessarily exported internal variable..
Panu Matilainen [Tue, 26 Feb 2008 20:42:46 +0000 (22:42 +0200)]
Another unnecessarily exported internal variable..

16 years agoMake bunch of macro internal variables static
Panu Matilainen [Tue, 26 Feb 2008 20:24:28 +0000 (22:24 +0200)]
Make bunch of macro internal variables static

16 years agoRemove hidden --nolibio cli switch, avoid exporting noLibio
Panu Matilainen [Tue, 26 Feb 2008 20:04:17 +0000 (22:04 +0200)]
Remove hidden --nolibio cli switch, avoid exporting noLibio

16 years agoUn-inline fd*Digest()
Panu Matilainen [Tue, 26 Feb 2008 19:46:38 +0000 (21:46 +0200)]
Un-inline fd*Digest()
- avoid leaking nss + digest internals all over the place

16 years agoMake the rest of rpmio vectors static inside rpmio
Panu Matilainen [Tue, 26 Feb 2008 19:02:21 +0000 (21:02 +0200)]
Make the rest of rpmio vectors static inside rpmio
- no external needs, gets them out of exported library symbols

16 years agoRemove the last remains of unused and unnecesary rpmio rpc vectors
Panu Matilainen [Tue, 26 Feb 2008 18:53:38 +0000 (20:53 +0200)]
Remove the last remains of unused and unnecesary rpmio rpc vectors

16 years agoEliminate rpmdb refcount debug junk from the API
Panu Matilainen [Mon, 25 Feb 2008 18:16:43 +0000 (20:16 +0200)]
Eliminate rpmdb refcount debug junk from the API

16 years agoRemove some ancient dead code
Panu Matilainen [Mon, 25 Feb 2008 10:33:19 +0000 (12:33 +0200)]
Remove some ancient dead code

16 years agoAdd %{sources} and %{patches} macros to build
Panu Matilainen [Mon, 25 Feb 2008 10:24:22 +0000 (12:24 +0200)]
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...

16 years agoEnable variadic checks for rpmExpand(), rpmlog() and rpmGetPath()
Panu Matilainen [Mon, 25 Feb 2008 09:03:38 +0000 (11:03 +0200)]
Enable variadic checks for rpmExpand(), rpmlog() and rpmGetPath()
Suggested by Michal Marek

16 years agoAdd new header for collecting utility macros
Panu Matilainen [Mon, 25 Feb 2008 09:02:07 +0000 (11:02 +0200)]
Add new header for collecting utility macros
- atm consists of portability wrappers to various gcc extensions like
  __attribute__() to provide additional warnings and checks
- copied from glib to avoid an extra build dependency just for the silly
  macros, renamed to avoid namespace clashing

16 years agoRemove ancient commentary from header.h
Panu Matilainen [Fri, 22 Feb 2008 13:39:24 +0000 (15:39 +0200)]
Remove ancient commentary from header.h
- history is interesting but public headers aren't the place for it
- "implemented soon after" from 2001 comments are hardly useful :)

16 years agoRemove useless ifdeffed typedefs
Panu Matilainen [Fri, 22 Feb 2008 13:37:16 +0000 (15:37 +0200)]
Remove useless ifdeffed typedefs
- rpmdb & iterator are typedeffed in rpmtypes.h already..

16 years agoRip ancient, unused setperms + unsetgit make targets
Panu Matilainen [Fri, 22 Feb 2008 13:30:51 +0000 (15:30 +0200)]
Rip ancient, unused setperms + unsetgit make targets

16 years agoUse %__tar instead of hardcoded tar in build prep
Panu Matilainen [Fri, 22 Feb 2008 13:29:04 +0000 (15:29 +0200)]
Use %__tar instead of hardcoded tar in build prep

16 years agoDon't use legacy gzipbin etc macros in build
Panu Matilainen [Fri, 22 Feb 2008 13:08:41 +0000 (15:08 +0200)]
Don't use legacy gzipbin etc macros in build

16 years agoMake %patch use %__patch instead of hardcoded patch.. patchy huh?
Panu Matilainen [Fri, 22 Feb 2008 13:05:16 +0000 (15:05 +0200)]
Make %patch use %__patch instead of hardcoded patch.. patchy huh?

16 years agoShut up another case of FUSE mount stat whining (rhbz#432907)
Panu Matilainen [Fri, 15 Feb 2008 13:21:22 +0000 (15:21 +0200)]
Shut up another case of FUSE mount stat whining (rhbz#432907)

16 years agoImprove header i18n locale matching
Panu Matilainen [Thu, 14 Feb 2008 13:02:18 +0000 (15:02 +0200)]
Improve header i18n locale matching
- Get best lang from rpm HEADERI18NTABLE, instead of getting first fuzzy match
  (eg: zh_TW matches zh_CN whereas zh_TW entry is available)

Patch from Pascal Rigaux

16 years agoFix a bunch of string format mismatches found by gcc's variadic checks
Panu Matilainen [Thu, 14 Feb 2008 11:10:51 +0000 (13:10 +0200)]
Fix a bunch of string format mismatches found by gcc's variadic checks

Patch from Michal Marek

16 years agoAutomated merge with ssh://pmatilai@login.linux.duke.edu//home/groups/rpm/hg/rpm/
Panu Matilainen [Mon, 11 Feb 2008 18:47:03 +0000 (20:47 +0200)]
Automated merge with ssh://pmatilai@login.linux.duke.edu//home/groups/rpm/hg/rpm/

16 years agoPlay nice with xargs
Panu Matilainen [Mon, 11 Feb 2008 18:45:15 +0000 (20:45 +0200)]
Play nice with xargs
- xargs considers exit status 255 special, avoid it. The exit status is
  unrealiable anyway so 254 vs 255 shouldn't matter

Patch from Michal Marek

16 years agoUpdated sr translation + new sr@latin version from Miloš Komarčević
Panu Matilainen [Mon, 11 Feb 2008 18:12:32 +0000 (20:12 +0200)]
Updated sr translation + new sr@latin version from Miloš Komarčević

16 years agoDon't add syntax errors while I add sorting...
Peter Jones [Fri, 8 Feb 2008 19:58:26 +0000 (14:58 -0500)]
Don't add syntax errors while I add sorting...

16 years agomake gendiff sort the file list, so comparing the results is easier.
Peter Jones [Fri, 8 Feb 2008 19:54:29 +0000 (14:54 -0500)]
make gendiff sort the file list, so comparing the results is easier.

16 years agoOops, package type in lead was reversed...
Panu Matilainen [Fri, 8 Feb 2008 11:45:56 +0000 (13:45 +0200)]
Oops, package type in lead was reversed...

16 years agoMass convert (back) to rpmTag as it's usable everywhere now
Panu Matilainen [Tue, 5 Feb 2008 15:42:19 +0000 (17:42 +0200)]
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

16 years agoUse rpmSigTag enum for signature tags everywhere, more or less..
Panu Matilainen [Tue, 5 Feb 2008 14:35:44 +0000 (16:35 +0200)]
Use rpmSigTag enum for signature tags everywhere, more or less..

16 years agoUse rpmTagType always now that it's available everywhere
Panu Matilainen [Tue, 5 Feb 2008 14:14:34 +0000 (16:14 +0200)]
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

16 years agoCouple of missed type abstractions
Panu Matilainen [Tue, 5 Feb 2008 13:32:33 +0000 (15:32 +0200)]
Couple of missed type abstractions

16 years agoYet another typedef for transaction ID, use where spotted
Panu Matilainen [Tue, 5 Feb 2008 13:29:37 +0000 (15:29 +0200)]
Yet another typedef for transaction ID, use where spotted
- most remaining [u]int16|32 uses are indexes and such, ie actual numbers

16 years agoUse rpm_flag_t for header generic bitfields (file flags etc)
Panu Matilainen [Tue, 5 Feb 2008 13:15:41 +0000 (15:15 +0200)]
Use rpm_flag_t for header generic bitfields (file flags etc)
- additionally use rpmfileAtts / rpmVerifyFlags consistently where
  appropriate

16 years agorpm5.org: free 5 bits for rpmfc coloring expansion
Panu Matilainen [Tue, 5 Feb 2008 12:50:42 +0000 (14:50 +0200)]
rpm5.org: free 5 bits for rpmfc coloring expansion
- also fixes an overlap between RPMFC_LIBTOOL and RPMFC_MONO which we
  had and were out of bits already

16 years agoCouple of int -> rpmVSFlags type corrections
Panu Matilainen [Tue, 5 Feb 2008 12:28:06 +0000 (14:28 +0200)]
Couple of int -> rpmVSFlags type corrections

16 years agoDoxygen bits for rpmtypes, much to do still
Panu Matilainen [Tue, 5 Feb 2008 12:25:16 +0000 (14:25 +0200)]
Doxygen bits for rpmtypes, much to do still

16 years agoAdjust potfiles from rpmlibprov removal, update...
Panu Matilainen [Tue, 5 Feb 2008 11:53:19 +0000 (13:53 +0200)]
Adjust potfiles from rpmlibprov removal, update...

16 years agoA missed color type in rpmds header
Panu Matilainen [Tue, 5 Feb 2008 11:52:30 +0000 (13:52 +0200)]
A missed color type in rpmds header

16 years agoSplit non-cli verify bits from rpmcli to separate header
Panu Matilainen [Tue, 5 Feb 2008 11:49:13 +0000 (13:49 +0200)]
Split non-cli verify bits from rpmcli to separate header

16 years agoMore rpm-headerdata types: rpm_dev_t and rpm_ino_t, use where spotted
Panu Matilainen [Tue, 5 Feb 2008 11:09:13 +0000 (13:09 +0200)]
More rpm-headerdata types: rpm_dev_t and rpm_ino_t, use where spotted
- both hardwired to 32bit internally

16 years agoAdd rpm_rdev_t type for rdev entries
Panu Matilainen [Tue, 5 Feb 2008 10:58:05 +0000 (12:58 +0200)]
Add rpm_rdev_t type for rdev entries
- rdev is 16bit whereas dev is 32bit, eww...

16 years agoAdd rpm_mode_t type, use where spotted
Panu Matilainen [Tue, 5 Feb 2008 10:31:32 +0000 (12:31 +0200)]
Add rpm_mode_t type, use where spotted
- bring the types under some sort of control, previously mixture of
  int16_t, uint16_t and unsigned short was used..

16 years agoAdd rpm_color_t type for rpm color bits, use where spotted
Panu Matilainen [Tue, 5 Feb 2008 10:12:31 +0000 (12:12 +0200)]
Add rpm_color_t type for rpm color bits, use where spotted

16 years agoPort some rpmds improvements from rpm5.org
Panu Matilainen [Tue, 5 Feb 2008 09:43:38 +0000 (11:43 +0200)]
Port some rpmds improvements from rpm5.org
- rpmlib provides as rpmds, lose the special case hackery
- new functions rpmdsRpmlib() and rpmdsSearch() + python bindings for them

16 years agoRip the horrible (ia64) autorelocate kludgery. RIP.
Panu Matilainen [Tue, 5 Feb 2008 08:08:44 +0000 (10:08 +0200)]
Rip the horrible (ia64) autorelocate kludgery. RIP.
- we don't support relocated x86 on ppc in qemu either...

16 years agoUse helper function to eliminate some copy-paste code
Panu Matilainen [Tue, 5 Feb 2008 07:41:11 +0000 (09:41 +0200)]
Use helper function to eliminate some copy-paste code

16 years agoRemove double documention for exported header functions
Panu Matilainen [Mon, 4 Feb 2008 10:33:02 +0000 (12:33 +0200)]
Remove double documention for exported header functions

16 years agoRip the useless header method vectors
Panu Matilainen [Mon, 4 Feb 2008 10:28:02 +0000 (12:28 +0200)]
Rip the useless header method vectors

16 years agoMake check-programs build again, assorted type-fiddlings..
Panu Matilainen [Mon, 4 Feb 2008 10:00:30 +0000 (12:00 +0200)]
Make check-programs build again, assorted type-fiddlings..

16 years agoAdd rpm_time_t type for time types (in headers), use where spotted
Panu Matilainen [Mon, 4 Feb 2008 09:50:39 +0000 (11:50 +0200)]
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

16 years agoAdd rpm_off_t type for file size types, use where spotted
Panu Matilainen [Mon, 4 Feb 2008 09:27:00 +0000 (11:27 +0200)]
Add rpm_off_t type for file size types, use where spotted
- preliminaries for bumping up the max size, use rpm-specific type
  as off_t size varies, header data needs fixed size

16 years agoMake rpmtag.h standalone, include from rpmtypes.h
Panu Matilainen [Sun, 3 Feb 2008 14:24:07 +0000 (16:24 +0200)]
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...

16 years agoUse rpmTag etc enums for rpmTagGet*() functions
Panu Matilainen [Sun, 3 Feb 2008 14:09:20 +0000 (16:09 +0200)]
Use rpmTag etc enums for rpmTagGet*() functions

16 years agoStuff signature tags to rpmtag.h along with other tags, add enum typedef
Panu Matilainen [Sun, 3 Feb 2008 13:41:52 +0000 (15:41 +0200)]
Stuff signature tags to rpmtag.h along with other tags, add enum typedef

16 years agoFix platform dir creation, doh
Panu Matilainen [Fri, 1 Feb 2008 18:28:31 +0000 (20:28 +0200)]
Fix platform dir creation, doh

16 years agoUpdate translations for a change..
Panu Matilainen [Fri, 1 Feb 2008 18:23:25 +0000 (20:23 +0200)]
Update translations for a change..

16 years agoMove platform specific macros under RPMCONFIGDIR/platform/
Panu Matilainen [Fri, 1 Feb 2008 18:18:23 +0000 (20:18 +0200)]
Move platform specific macros under RPMCONFIGDIR/platform/
- reduce the clutter in RPMCONFIGDIR, nicer for packaging too..

16 years agoDitch the "system" %_topdir, default to ~/rpmbuild instead
Panu Matilainen [Fri, 1 Feb 2008 17:53:04 +0000 (19:53 +0200)]
Ditch the "system" %_topdir, default to ~/rpmbuild instead
- building as root should be discouraged and /usr/src for building stuff
  is horribly wrong anyway

16 years agoDon't close GPG/PGP stdin to avoid harmless warning (rhbz#197602)
Panu Matilainen [Fri, 1 Feb 2008 15:27:22 +0000 (17:27 +0200)]
Don't close GPG/PGP stdin to avoid harmless warning (rhbz#197602)
- patch from rpm5.org

16 years agoAvoid silly fixed size buffer in urlhelper
Panu Matilainen [Fri, 1 Feb 2008 11:25:18 +0000 (13:25 +0200)]
Avoid silly fixed size buffer in urlhelper

16 years agoAllocate macro buffers dynamically
Panu Matilainen [Fri, 1 Feb 2008 11:00:40 +0000 (13:00 +0200)]
Allocate macro buffers dynamically
- avoids some entirely needless overflow cases
- somewhat similarly to rpm5.org but use heap instead of stack

16 years agoAllocate various macro buffers from heap not stack
Panu Matilainen [Fri, 1 Feb 2008 10:11:03 +0000 (12:11 +0200)]
Allocate various macro buffers from heap not stack

16 years agoDefine + use MACROBUFSIZ for macro expansion buffer size
Panu Matilainen [Fri, 1 Feb 2008 09:36:13 +0000 (11:36 +0200)]
Define + use MACROBUFSIZ for macro expansion buffer size
- double the buffer size while at it...

16 years agoMacro shell expansion fixes (rhbz#431009)
Panu Matilainen [Fri, 1 Feb 2008 09:09:13 +0000 (11:09 +0200)]
Macro shell expansion fixes (rhbz#431009)

16 years agoAdd rpmtypes to doxygen, with todo reminders..
Panu Matilainen [Wed, 30 Jan 2008 15:20:09 +0000 (17:20 +0200)]
Add rpmtypes to doxygen, with todo reminders..

16 years agoInclude spring-cleaning
Panu Matilainen [Wed, 30 Jan 2008 15:05:29 +0000 (17:05 +0200)]
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"

16 years agoUse rpmsenseFlags type for dependency flags everywhere (hopefully)
Panu Matilainen [Wed, 30 Jan 2008 14:04:40 +0000 (16:04 +0200)]
Use rpmsenseFlags type for dependency flags everywhere (hopefully)

16 years agoUse headerIsSource() instead of doing it manually
Panu Matilainen [Wed, 30 Jan 2008 12:27:41 +0000 (14:27 +0200)]
Use headerIsSource() instead of doing it manually

16 years agorpmlib.h mass eviction
Panu Matilainen [Wed, 30 Jan 2008 11:53:51 +0000 (13:53 +0200)]
rpmlib.h mass eviction
- explicitly include what's really needed instead
- document remaining uses

16 years agoMove HGE and related prototypes to header.h
Panu Matilainen [Wed, 30 Jan 2008 11:03:54 +0000 (13:03 +0200)]
Move HGE and related prototypes to header.h

16 years agoMove rpmTagType stuff to rpmtag.h now that they can move
Panu Matilainen [Wed, 30 Jan 2008 11:00:26 +0000 (13:00 +0200)]
Move rpmTagType stuff to rpmtag.h now that they can move

16 years agoStick rpmCallbackType to rpmtypes too..
Panu Matilainen [Wed, 30 Jan 2008 10:59:38 +0000 (12:59 +0200)]
Stick rpmCallbackType to rpmtypes too..

16 years agoAdd missing system includes
Panu Matilainen [Wed, 30 Jan 2008 10:51:09 +0000 (12:51 +0200)]
Add missing system includes

16 years agoUninline headerFreeData()
Panu Matilainen [Wed, 30 Jan 2008 10:42:07 +0000 (12:42 +0200)]
Uninline headerFreeData()

16 years agoStick relocation struct to rpmfi, typedef to rpmtypes...
Panu Matilainen [Wed, 30 Jan 2008 10:21:59 +0000 (12:21 +0200)]
Stick relocation struct to rpmfi, typedef to rpmtypes...

16 years agoMove FD_t to rpmtypes.h, used all over ..
Panu Matilainen [Wed, 30 Jan 2008 10:20:59 +0000 (12:20 +0200)]
Move FD_t to rpmtypes.h, used all over ..

16 years agoMove rpmRC definition to rpmtypes
Panu Matilainen [Wed, 30 Jan 2008 09:55:06 +0000 (11:55 +0200)]
Move rpmRC definition to rpmtypes
- lot of places drag in rpmlib.h just for that...

16 years agorpmgi.h doesn't need rpmte and rpmts headers, implementation does
Panu Matilainen [Wed, 30 Jan 2008 09:51:28 +0000 (11:51 +0200)]
rpmgi.h doesn't need rpmte and rpmts headers, implementation does

16 years agoRemove bunch of unnecessary rpmlib.h includes
Panu Matilainen [Wed, 30 Jan 2008 09:49:25 +0000 (11:49 +0200)]
Remove bunch of unnecessary rpmlib.h includes
- replace with rpmtypes.h where needed

16 years agoMove header and -iterator to rpmtypes
Panu Matilainen [Wed, 30 Jan 2008 09:02:39 +0000 (11:02 +0200)]
Move header and -iterator to rpmtypes

16 years agoMove rpmalKey and rpmal to rpmtypes
Panu Matilainen [Wed, 30 Jan 2008 08:57:15 +0000 (10:57 +0200)]
Move rpmalKey and rpmal to rpmtypes