tools/librpm-tizen.git
16 years agoSet libdir /usr/lib vs lib64 directly, drop MARK64 stuff
Panu Matilainen [Wed, 25 Jul 2007 14:10:57 +0000 (17:10 +0300)]
Set libdir /usr/lib vs lib64 directly, drop MARK64 stuff

16 years agoRpm's "stuff" is in pkglibdir, not libdir, fix usage in install-data-local
Panu Matilainen [Wed, 25 Jul 2007 14:05:36 +0000 (17:05 +0300)]
Rpm's "stuff" is in pkglibdir, not libdir, fix usage in install-data-local

16 years agoFlatten python makefiles, path tweaks
Panu Matilainen [Wed, 25 Jul 2007 14:04:15 +0000 (17:04 +0300)]
Flatten python makefiles, path tweaks

16 years agoAdd initial rpm.pc pkg-config support.
Panu Matilainen [Wed, 25 Jul 2007 12:36:58 +0000 (15:36 +0300)]
Add initial rpm.pc pkg-config support.

16 years agoUpdate translations..
Panu Matilainen [Tue, 24 Jul 2007 12:19:39 +0000 (15:19 +0300)]
Update translations..

16 years agoUpdate TODO
Panu Matilainen [Tue, 24 Jul 2007 12:18:17 +0000 (15:18 +0300)]
Update TODO
- popt and internal libmagic removed
- gettext-system updated
- bdb has already been updated (only not taken advantage of yet)
- "make distcheck" actually works now

16 years agoAdd linit.h to liblua sources (distcheck sanity)
Panu Matilainen [Tue, 24 Jul 2007 12:17:04 +0000 (15:17 +0300)]
Add linit.h to liblua sources (distcheck sanity)

16 years agoFurther makefile cleanups.
Panu Matilainen [Tue, 24 Jul 2007 11:59:58 +0000 (14:59 +0300)]
Further makefile cleanups.
- don't use wildcards in EXTRA_DIST
- additional -local uninstall and distclean targets to clean up what
  the make did

16 years agoMore gettext cleanups.
Panu Matilainen [Tue, 24 Jul 2007 11:21:32 +0000 (14:21 +0300)]
More gettext cleanups.
- Use po/LINGUAS for language list instead of ALL_LINGUAS in configure.ac
- replace obsolete INTLLIB with LIBINTL, gee..

16 years agoFool bdb make system to "work" with distcheck
Panu Matilainen [Tue, 24 Jul 2007 11:14:27 +0000 (14:14 +0300)]
Fool bdb make system to "work" with distcheck

16 years agoRun autopoint from autogen to generate necessary gettext-things.
Panu Matilainen [Tue, 24 Jul 2007 11:13:13 +0000 (14:13 +0300)]
Run autopoint from autogen to generate necessary gettext-things.
Remove automatically generated files.

16 years agoPython install path fiddling to appease with distcheck
Panu Matilainen [Tue, 24 Jul 2007 10:10:31 +0000 (13:10 +0300)]
Python install path fiddling to appease with distcheck

16 years agoUse python distutils for determining include etc paths
Panu Matilainen [Tue, 24 Jul 2007 08:55:37 +0000 (11:55 +0300)]
Use python distutils for determining include etc paths

16 years agoKill of one more rpmfile reference
Panu Matilainen [Tue, 24 Jul 2007 07:19:55 +0000 (10:19 +0300)]
Kill of one more rpmfile reference

16 years agoExpect neon headers to live in neon/ directory in include path
Panu Matilainen [Tue, 24 Jul 2007 07:13:28 +0000 (10:13 +0300)]
Expect neon headers to live in neon/ directory in include path

16 years agoExpect beecrypt headers to live in beecrypt/ directory in include path
Panu Matilainen [Tue, 24 Jul 2007 07:07:23 +0000 (10:07 +0300)]
Expect beecrypt headers to live in beecrypt/ directory in include path

16 years agoRip out internal libmagic, require external.
Panu Matilainen [Tue, 24 Jul 2007 06:59:33 +0000 (09:59 +0300)]
Rip out internal libmagic, require external.
This is going to need more sorting out...

17 years agoAlways create ChangeLog from scratch on make dist.
Panu Matilainen [Mon, 23 Jul 2007 10:12:14 +0000 (13:12 +0300)]
Always create ChangeLog from scratch on make dist.

17 years agoUpdate scriptlet names to match current reality (rhbz#248128)
Panu Matilainen [Mon, 23 Jul 2007 07:43:47 +0000 (10:43 +0300)]
Update scriptlet names to match current reality (rhbz#248128)

17 years agoAvoid static buffer and extra copy in docdir checking.
Panu Matilainen [Mon, 23 Jul 2007 07:02:54 +0000 (10:02 +0300)]
Avoid static buffer and extra copy in docdir checking.
From rpm5.org / Ralf S. Engelschall.

17 years agoSupport fully qualified $Foo::Bar::VERSION expressions (rhbz#249135).
Panu Matilainen [Sat, 21 Jul 2007 12:48:03 +0000 (15:48 +0300)]
Support fully qualified $Foo::Bar::VERSION expressions (rhbz#249135).
Patch from Ville Skyttä.

17 years agoMake rpmdbCheckTerminate() non-terminating.
Panu Matilainen [Sat, 21 Jul 2007 12:05:19 +0000 (15:05 +0300)]
Make rpmdbCheckTerminate() non-terminating.
This allows use in exit handler without affecting exit code, and permits
caller to do its own cleanup if necessary.

17 years agoForce rpmdb clean termination on exit from python.
Panu Matilainen [Fri, 20 Jul 2007 08:23:11 +0000 (11:23 +0300)]
Force rpmdb clean termination on exit from python.
Python process tracebacking with active iterators can and will otherwise leave
stale locks around (as is presumably the reason for rhbz#235389 and various
other locking issues)

17 years agoSupport explicitly asking from rpmdb cleanup + termination.
Panu Matilainen [Fri, 20 Jul 2007 08:19:56 +0000 (11:19 +0300)]
Support explicitly asking from rpmdb cleanup + termination.
New rpmdbCheckTerminate() function which checks for termination signals
and allows requesting termination via parameter as well. Make
rpmdbCheckSignals() just a wrapper that calls it with terminate=0.

17 years agoAdd python methods for checking pending signals from rpmsqCaught.
Panu Matilainen [Fri, 20 Jul 2007 07:41:15 +0000 (10:41 +0300)]
Add python methods for checking pending signals from rpmsqCaught.
- a thin wrapper for rpmdbCheckSignals() from rpm5.org / Jeff Johnson
- a function taking a list of signals to check and returning list caught
  signals (python doesn't know about signal sets so rpmsqCaught needs
  wrapping)

17 years agoUse type from headerGet*(), not tagType() for now
Panu Matilainen [Wed, 18 Jul 2007 13:05:56 +0000 (16:05 +0300)]
Use type from headerGet*(), not tagType() for now
Blows up with header extensions...

17 years agoUpdate internal BDB to version 4.5.20
Panu Matilainen [Mon, 16 Jul 2007 13:48:14 +0000 (16:48 +0300)]
Update internal BDB to version 4.5.20

17 years agoRemove long unused rpm.c, also removals from EXTRA_DIST
Panu Matilainen [Mon, 16 Jul 2007 13:20:51 +0000 (16:20 +0300)]
Remove long unused rpm.c, also removals from EXTRA_DIST

17 years agoRemove ancient, irrelevant README.amiga...
Panu Matilainen [Mon, 16 Jul 2007 13:18:47 +0000 (16:18 +0300)]
Remove ancient, irrelevant README.amiga...

17 years agoUse binary search for looking up tag values + types.
Panu Matilainen [Mon, 16 Jul 2007 13:14:51 +0000 (16:14 +0300)]
Use binary search for looking up tag values + types.
Mostly derived from rpm5.org work of Jeff Johnsson, additionally
- fix thinko in bsearch result stabilization logic
- fix querytags in verbose mode to actually show the types as intended

17 years agoFull sync of RPMTAG_* definitions with rpm5.org.
Panu Matilainen [Mon, 16 Jul 2007 10:39:48 +0000 (13:39 +0300)]
Full sync of RPMTAG_* definitions with rpm5.org.

As promised on rpm-maint:
https://lists.dulug.duke.edu/pipermail/rpm-maint/2007-June/000357.html
Now that new tags don't cost anything in terms of python binding etc
maintenance we can at least keep tags compatible so querying cross-rpm
works (mostly - there are differences like md5 vs filedigests)

17 years agoUse tagType() for determining header data types (array or not etc)
Panu Matilainen [Mon, 16 Jul 2007 10:21:41 +0000 (13:21 +0300)]
Use tagType() for determining header data types (array or not etc)

17 years agoDuh, forgot to bring in RPM_MASK_TYPE definition
Panu Matilainen [Mon, 16 Jul 2007 10:17:05 +0000 (13:17 +0300)]
Duh, forgot to bring in RPM_MASK_TYPE definition

17 years agoUse simple and stoopid linear tagType lookup for now.
Panu Matilainen [Mon, 16 Jul 2007 10:13:46 +0000 (13:13 +0300)]
Use simple and stoopid linear tagType lookup for now.

17 years agoAutomatic return types for header tags.
Panu Matilainen [Mon, 16 Jul 2007 08:11:41 +0000 (11:11 +0300)]
Automatic return types for header tags.
Derived from rpm5.org work of Jeff Johnsson

17 years agoUse tagValue() for name->tag lookups instead of manually walking tagtable.
Panu Matilainen [Fri, 13 Jul 2007 11:23:21 +0000 (14:23 +0300)]
Use tagValue() for name->tag lookups instead of manually walking tagtable.

17 years agoUpdate tagtype definitions wrt rpm5.org
Panu Matilainen [Fri, 13 Jul 2007 11:18:00 +0000 (14:18 +0300)]
Update tagtype definitions wrt rpm5.org

17 years agoKill RH-specific _vsflags_up2date, use generic __vsflags in bindings instead
Panu Matilainen [Fri, 13 Jul 2007 09:59:22 +0000 (12:59 +0300)]
Kill RH-specific _vsflags_up2date, use generic __vsflags in bindings instead

17 years agoClean up python ts object creation.
Panu Matilainen [Fri, 13 Jul 2007 09:46:48 +0000 (12:46 +0300)]
Clean up python ts object creation.
- Remove code duplication by making rpmts_Create() just a wrapper that calls
  rpmtsObject to create the instance
- Move the initialization from rpmts_init() to rpmts_new(), calling
  ts.__init__() multiple times isn't something we want to allow (setting
  vsflags multiple times is ok but there's a method to do that already)

17 years agoKill of RPMTAG_RHNPLATFORM: don't add to header, mark deprecated.
Panu Matilainen [Thu, 12 Jul 2007 13:10:46 +0000 (16:10 +0300)]
Kill of RPMTAG_RHNPLATFORM: don't add to header, mark deprecated.

17 years agoRip out rhnLoad() and rhnUnload() from python bindings.
Panu Matilainen [Thu, 12 Jul 2007 12:46:31 +0000 (15:46 +0300)]
Rip out rhnLoad() and rhnUnload() from python bindings.
Prehistoric, unused and vendor specific stuff... time to go.

17 years agoRemove references to internal zlib from internal libmagic
Panu Matilainen [Thu, 12 Jul 2007 12:36:15 +0000 (15:36 +0300)]
Remove references to internal zlib from internal libmagic

17 years agoAnd one last debugedit fix...
Panu Matilainen [Thu, 12 Jul 2007 11:36:49 +0000 (14:36 +0300)]
And one last debugedit fix...
Modern gcc doesn't like arithmetics on void pointers, cast where needed.

17 years agoSilence the rest of ptr signedness issues in debugedit
Panu Matilainen [Thu, 12 Jul 2007 10:53:23 +0000 (13:53 +0300)]
Silence the rest of ptr signedness issues in debugedit

17 years agocomp_dir doesn't need to be unsigned
Panu Matilainen [Thu, 12 Jul 2007 10:47:51 +0000 (13:47 +0300)]
comp_dir doesn't need to be unsigned

17 years agoRemove unused variable (debugedit)
Panu Matilainen [Thu, 12 Jul 2007 10:43:40 +0000 (13:43 +0300)]
Remove unused variable (debugedit)

17 years agoDebugedit cleanup continued.
Panu Matilainen [Thu, 12 Jul 2007 10:43:01 +0000 (13:43 +0300)]
Debugedit cleanup continued.
Cast to expected type on all uses of strchr()

17 years agoDebugedit cleanup continued.
Panu Matilainen [Thu, 12 Jul 2007 10:41:18 +0000 (13:41 +0300)]
Debugedit cleanup continued.
Cast to expected types on all uses of has_prefix() canonicalize_path()

17 years agodebugedit signedness fixes wrt strlen()
Panu Matilainen [Thu, 12 Jul 2007 10:37:32 +0000 (13:37 +0300)]
debugedit signedness fixes wrt strlen()

17 years agoOne last fix for const qualifier discarding complaint in python.
Panu Matilainen [Thu, 12 Jul 2007 10:27:07 +0000 (13:27 +0300)]
One last fix for const qualifier discarding complaint in python.
OTOH we need to call PyCObject_FromVoidPtr() with non-const cast..

17 years agoint vs ptr sizes differ on some platforms, make alNum intptr_t to fix
Panu Matilainen [Thu, 12 Jul 2007 10:23:33 +0000 (13:23 +0300)]
int vs ptr sizes differ on some platforms, make alNum intptr_t to fix

17 years agoPull in rpmfi int_32 -> uint_32 changes from rpm5.org.
Panu Matilainen [Thu, 12 Jul 2007 10:03:19 +0000 (13:03 +0300)]
Pull in rpmfi int_32 -> uint_32 changes from rpm5.org.
TODO reminder to audit all uses of those, plenty of places where signed
doesn't make much sense, inconsistent use etc.

17 years agoUse uint_32 for dirindexes everywhere
Panu Matilainen [Thu, 12 Jul 2007 09:30:26 +0000 (12:30 +0300)]
Use uint_32 for dirindexes everywhere

17 years agorpmioSlurp() related cleanups.
Panu Matilainen [Thu, 12 Jul 2007 08:55:45 +0000 (11:55 +0300)]
rpmioSlurp() related cleanups.
Derived from rpm5.org / Ralf S. Engelschall

17 years agoFread() and Fwrite() can return negative values, change type to reflect that
Panu Matilainen [Thu, 12 Jul 2007 08:06:16 +0000 (11:06 +0300)]
Fread() and Fwrite() can return negative values, change type to reflect that

17 years agoCast argv to rpm_execcon expected type
Panu Matilainen [Thu, 12 Jul 2007 07:10:25 +0000 (10:10 +0300)]
Cast argv to rpm_execcon expected type

17 years agoSilence yet another char ptr signedness warning
Panu Matilainen [Thu, 12 Jul 2007 07:00:43 +0000 (10:00 +0300)]
Silence yet another char ptr signedness warning

17 years agoparseSpec() cookie should be const, make it so...
Panu Matilainen [Thu, 12 Jul 2007 06:22:38 +0000 (09:22 +0300)]
parseSpec() cookie should be const, make it so...

17 years agoSome obvious "missing const" cases...
Panu Matilainen [Thu, 12 Jul 2007 06:20:09 +0000 (09:20 +0300)]
Some obvious "missing const" cases...

17 years agoAvoid discarding const
Panu Matilainen [Thu, 12 Jul 2007 06:18:00 +0000 (09:18 +0300)]
Avoid discarding const

17 years agoFix yet-another-compiler-warning.
Panu Matilainen [Thu, 12 Jul 2007 06:16:23 +0000 (09:16 +0300)]
Fix yet-another-compiler-warning.
tmpSpecFile gets passed to mkstemp() which expects to modify the template
thus discarding const

17 years agoCast to expected type.
Panu Matilainen [Wed, 11 Jul 2007 13:12:56 +0000 (16:12 +0300)]
Cast to expected type.

17 years agoCast to fix size difference.
Panu Matilainen [Wed, 11 Jul 2007 13:12:29 +0000 (16:12 +0300)]
Cast to fix size difference.
Patch derived from rpm5.org / Jeff Johnsson

17 years agoCast to void** to silence hge() warning
Panu Matilainen [Wed, 11 Jul 2007 13:00:51 +0000 (16:00 +0300)]
Cast to void** to silence hge() warning

17 years agob64decode() len paramenter is unsigned size type, use it...
Panu Matilainen [Wed, 11 Jul 2007 12:56:12 +0000 (15:56 +0300)]
b64decode() len paramenter is unsigned size type, use it...

17 years agoTurn rpmioSlurp() length argument to unsigned size_t, fix up uses.
Panu Matilainen [Wed, 11 Jul 2007 12:39:51 +0000 (15:39 +0300)]
Turn rpmioSlurp() length argument to unsigned size_t, fix up uses.
Derived from rpm5.org / Ralf S. Engelschall, I do agree length can't really
be negative...

17 years agoUse unsigned size type for pgpReadPkts().
Panu Matilainen [Wed, 11 Jul 2007 12:33:50 +0000 (15:33 +0300)]
Use unsigned size type for pgpReadPkts().
Derived from rpm5.org / Ralf S. Engelschall, I was too blind to see
ssize_t vs size_t, duh :)

17 years agoCast timedRead() buffers to expected type.
Panu Matilainen [Wed, 11 Jul 2007 12:29:30 +0000 (15:29 +0300)]
Cast timedRead() buffers to expected type.
Patch from rpm5.org / Jeff Johnsson

17 years agoUse correct formatting for scoreboard pointers
Panu Matilainen [Wed, 11 Jul 2007 12:13:47 +0000 (15:13 +0300)]
Use correct formatting for scoreboard pointers

17 years agoCast to int to avoid gcc complaint from python enum registration.
Panu Matilainen [Wed, 11 Jul 2007 11:48:38 +0000 (14:48 +0300)]
Cast to int to avoid gcc complaint from python enum registration.

17 years agoAdd missing include for mergesort
Panu Matilainen [Wed, 11 Jul 2007 11:45:34 +0000 (14:45 +0300)]
Add missing include for mergesort

17 years agoChar ptr signedness fixes to python bindings.
Panu Matilainen [Wed, 11 Jul 2007 11:31:54 +0000 (14:31 +0300)]
Char ptr signedness fixes to python bindings.

17 years agoCorrect type for python rpmrc lenght function
Panu Matilainen [Wed, 11 Jul 2007 11:27:48 +0000 (14:27 +0300)]
Correct type for python rpmrc lenght function

17 years agogetRepackageHeaderFromTE() expects const char * as 4th argument
Panu Matilainen [Wed, 11 Jul 2007 11:23:07 +0000 (14:23 +0300)]
getRepackageHeaderFromTE() expects const char * as 4th argument

17 years agoIfdef unused http timeout setting to future..
Panu Matilainen [Wed, 11 Jul 2007 11:02:12 +0000 (14:02 +0300)]
Ifdef unused http timeout setting to future..

17 years agoOne more domd5() buffer signedness fix.
Panu Matilainen [Wed, 11 Jul 2007 10:52:22 +0000 (13:52 +0300)]
One more domd5() buffer signedness fix.

17 years agoMissing include for domd5
Panu Matilainen [Wed, 11 Jul 2007 10:50:54 +0000 (13:50 +0300)]
Missing include for domd5

17 years agodomd5() buffer signedness fixes.
Panu Matilainen [Wed, 11 Jul 2007 10:48:43 +0000 (13:48 +0300)]
domd5() buffer signedness fixes.

17 years agorpmteIsSource() doesn't return pointers
Panu Matilainen [Wed, 11 Jul 2007 10:42:04 +0000 (13:42 +0300)]
rpmteIsSource() doesn't return pointers

17 years agoQuiesce false gcc unused variable warning.
Panu Matilainen [Wed, 11 Jul 2007 10:36:03 +0000 (13:36 +0300)]
Quiesce false gcc unused variable warning.

17 years agoAdd missing includes to local lua sources.
Panu Matilainen [Wed, 11 Jul 2007 10:33:32 +0000 (13:33 +0300)]
Add missing includes to local lua sources.

17 years agoMore ptr target signedness fixes...
Panu Matilainen [Wed, 11 Jul 2007 10:20:45 +0000 (13:20 +0300)]
More ptr target signedness fixes...

17 years agoMake offsets match what rpmdbAppendIterator() expects
Panu Matilainen [Wed, 11 Jul 2007 10:13:35 +0000 (13:13 +0300)]
Make offsets match what rpmdbAppendIterator() expects

17 years ago...and more pointer signedness fixes...
Panu Matilainen [Wed, 11 Jul 2007 10:10:47 +0000 (13:10 +0300)]
...and more pointer signedness fixes...

17 years agoMore char ptr signedness fixes..
Panu Matilainen [Wed, 11 Jul 2007 10:00:45 +0000 (13:00 +0300)]
More char ptr signedness fixes..

17 years agoMore char ptr signedness fixes.
Panu Matilainen [Wed, 11 Jul 2007 09:54:35 +0000 (12:54 +0300)]
More char ptr signedness fixes.

17 years agoCast assignment to destination type to fix warnings.
Panu Matilainen [Wed, 11 Jul 2007 09:44:45 +0000 (12:44 +0300)]
Cast assignment to destination type to fix warnings.

17 years agoIfdef out currently unused rpm logging facility stuff.
Panu Matilainen [Wed, 11 Jul 2007 09:34:46 +0000 (12:34 +0300)]
Ifdef out currently unused rpm logging facility stuff.

17 years agoShut up fdUpdateDigest() differing signedness compiler warnings.
Panu Matilainen [Wed, 11 Jul 2007 09:32:17 +0000 (12:32 +0300)]
Shut up fdUpdateDigest() differing signedness compiler warnings.
Derived from rpm5.org.

17 years agoMore python method pointer type fixes.
Panu Matilainen [Tue, 10 Jul 2007 12:25:32 +0000 (15:25 +0300)]
More python method pointer type fixes.

17 years agoCast to PyObject to avoid compiler whining
Panu Matilainen [Tue, 10 Jul 2007 12:20:34 +0000 (15:20 +0300)]
Cast to PyObject to avoid compiler whining

17 years agoFix bunch of compiler warnings from python bindings (method pointer types)
Panu Matilainen [Tue, 10 Jul 2007 12:19:04 +0000 (15:19 +0300)]
Fix bunch of compiler warnings from python bindings (method pointer types)

17 years agoAdd missing include to rpmcache
Panu Matilainen [Tue, 10 Jul 2007 11:02:29 +0000 (14:02 +0300)]
Add missing include to rpmcache

17 years agoRemove meaningles statement to avoid compiler warning.
Panu Matilainen [Tue, 10 Jul 2007 10:52:49 +0000 (13:52 +0300)]
Remove meaningles statement to avoid compiler warning.

17 years agoRemove two useless rpmtsSELinuxEnabled() calls.
Panu Matilainen [Tue, 10 Jul 2007 10:46:32 +0000 (13:46 +0300)]
Remove two useless rpmtsSELinuxEnabled() calls.

17 years agoBunch of variable initializations to avoid compiler warnings.
Panu Matilainen [Tue, 10 Jul 2007 10:43:46 +0000 (13:43 +0300)]
Bunch of variable initializations to avoid compiler warnings.

17 years agoCast dbenv error call method set to void* to fix compiler warnings.
Panu Matilainen [Tue, 10 Jul 2007 10:36:47 +0000 (13:36 +0300)]
Cast dbenv error call method set to void* to fix compiler warnings.

17 years agoCast glob_t *dir methods to void* to fix compiler warnings.
Panu Matilainen [Tue, 10 Jul 2007 10:35:50 +0000 (13:35 +0300)]
Cast glob_t *dir methods to void* to fix compiler warnings.

17 years agoCast signal handler pointers to void* to avoid compiler warnings.
Panu Matilainen [Tue, 10 Jul 2007 10:34:17 +0000 (13:34 +0300)]
Cast signal handler pointers to void* to avoid compiler warnings.

17 years agoCast tid to time_t for ctime() to avoid compiler warning.
Panu Matilainen [Tue, 10 Jul 2007 10:32:45 +0000 (13:32 +0300)]
Cast tid to time_t for ctime() to avoid compiler warning.