Panu Matilainen [Mon, 16 Jul 2007 13:20:51 +0000 (16:20 +0300)]
Remove long unused rpm.c, also removals from EXTRA_DIST
Panu Matilainen [Mon, 16 Jul 2007 13:18:47 +0000 (16:18 +0300)]
Remove ancient, irrelevant README.amiga...
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
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)
Panu Matilainen [Mon, 16 Jul 2007 10:21:41 +0000 (13:21 +0300)]
Use tagType() for determining header data types (array or not etc)
Panu Matilainen [Mon, 16 Jul 2007 10:17:05 +0000 (13:17 +0300)]
Duh, forgot to bring in RPM_MASK_TYPE definition
Panu Matilainen [Mon, 16 Jul 2007 10:13:46 +0000 (13:13 +0300)]
Use simple and stoopid linear tagType lookup for now.
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
Panu Matilainen [Fri, 13 Jul 2007 11:23:21 +0000 (14:23 +0300)]
Use tagValue() for name->tag lookups instead of manually walking tagtable.
Panu Matilainen [Fri, 13 Jul 2007 11:18:00 +0000 (14:18 +0300)]
Update tagtype definitions wrt rpm5.org
Panu Matilainen [Fri, 13 Jul 2007 09:59:22 +0000 (12:59 +0300)]
Kill RH-specific _vsflags_up2date, use generic __vsflags in bindings instead
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)
Panu Matilainen [Thu, 12 Jul 2007 13:10:46 +0000 (16:10 +0300)]
Kill of RPMTAG_RHNPLATFORM: don't add to header, mark deprecated.
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.
Panu Matilainen [Thu, 12 Jul 2007 12:36:15 +0000 (15:36 +0300)]
Remove references to internal zlib from internal libmagic
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.
Panu Matilainen [Thu, 12 Jul 2007 10:53:23 +0000 (13:53 +0300)]
Silence the rest of ptr signedness issues in debugedit
Panu Matilainen [Thu, 12 Jul 2007 10:47:51 +0000 (13:47 +0300)]
comp_dir doesn't need to be unsigned
Panu Matilainen [Thu, 12 Jul 2007 10:43:40 +0000 (13:43 +0300)]
Remove unused variable (debugedit)
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()
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()
Panu Matilainen [Thu, 12 Jul 2007 10:37:32 +0000 (13:37 +0300)]
debugedit signedness fixes wrt strlen()
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..
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
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.
Panu Matilainen [Thu, 12 Jul 2007 09:30:26 +0000 (12:30 +0300)]
Use uint_32 for dirindexes everywhere
Panu Matilainen [Thu, 12 Jul 2007 08:55:45 +0000 (11:55 +0300)]
rpmioSlurp() related cleanups.
Derived from rpm5.org / Ralf S. Engelschall
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
Panu Matilainen [Thu, 12 Jul 2007 07:10:25 +0000 (10:10 +0300)]
Cast argv to rpm_execcon expected type
Panu Matilainen [Thu, 12 Jul 2007 07:00:43 +0000 (10:00 +0300)]
Silence yet another char ptr signedness warning
Panu Matilainen [Thu, 12 Jul 2007 06:22:38 +0000 (09:22 +0300)]
parseSpec() cookie should be const, make it so...
Panu Matilainen [Thu, 12 Jul 2007 06:20:09 +0000 (09:20 +0300)]
Some obvious "missing const" cases...
Panu Matilainen [Thu, 12 Jul 2007 06:18:00 +0000 (09:18 +0300)]
Avoid discarding const
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
Panu Matilainen [Wed, 11 Jul 2007 13:12:56 +0000 (16:12 +0300)]
Cast to expected type.
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
Panu Matilainen [Wed, 11 Jul 2007 13:00:51 +0000 (16:00 +0300)]
Cast to void** to silence hge() warning
Panu Matilainen [Wed, 11 Jul 2007 12:56:12 +0000 (15:56 +0300)]
b64decode() len paramenter is unsigned size type, use it...
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...
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 :)
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
Panu Matilainen [Wed, 11 Jul 2007 12:13:47 +0000 (15:13 +0300)]
Use correct formatting for scoreboard pointers
Panu Matilainen [Wed, 11 Jul 2007 11:48:38 +0000 (14:48 +0300)]
Cast to int to avoid gcc complaint from python enum registration.
Panu Matilainen [Wed, 11 Jul 2007 11:45:34 +0000 (14:45 +0300)]
Add missing include for mergesort
Panu Matilainen [Wed, 11 Jul 2007 11:31:54 +0000 (14:31 +0300)]
Char ptr signedness fixes to python bindings.
Panu Matilainen [Wed, 11 Jul 2007 11:27:48 +0000 (14:27 +0300)]
Correct type for python rpmrc lenght function
Panu Matilainen [Wed, 11 Jul 2007 11:23:07 +0000 (14:23 +0300)]
getRepackageHeaderFromTE() expects const char * as 4th argument
Panu Matilainen [Wed, 11 Jul 2007 11:02:12 +0000 (14:02 +0300)]
Ifdef unused http timeout setting to future..
Panu Matilainen [Wed, 11 Jul 2007 10:52:22 +0000 (13:52 +0300)]
One more domd5() buffer signedness fix.
Panu Matilainen [Wed, 11 Jul 2007 10:50:54 +0000 (13:50 +0300)]
Missing include for domd5
Panu Matilainen [Wed, 11 Jul 2007 10:48:43 +0000 (13:48 +0300)]
domd5() buffer signedness fixes.
Panu Matilainen [Wed, 11 Jul 2007 10:42:04 +0000 (13:42 +0300)]
rpmteIsSource() doesn't return pointers
Panu Matilainen [Wed, 11 Jul 2007 10:36:03 +0000 (13:36 +0300)]
Quiesce false gcc unused variable warning.
Panu Matilainen [Wed, 11 Jul 2007 10:33:32 +0000 (13:33 +0300)]
Add missing includes to local lua sources.
Panu Matilainen [Wed, 11 Jul 2007 10:20:45 +0000 (13:20 +0300)]
More ptr target signedness fixes...
Panu Matilainen [Wed, 11 Jul 2007 10:13:35 +0000 (13:13 +0300)]
Make offsets match what rpmdbAppendIterator() expects
Panu Matilainen [Wed, 11 Jul 2007 10:10:47 +0000 (13:10 +0300)]
...and more pointer signedness fixes...
Panu Matilainen [Wed, 11 Jul 2007 10:00:45 +0000 (13:00 +0300)]
More char ptr signedness fixes..
Panu Matilainen [Wed, 11 Jul 2007 09:54:35 +0000 (12:54 +0300)]
More char ptr signedness fixes.
Panu Matilainen [Wed, 11 Jul 2007 09:44:45 +0000 (12:44 +0300)]
Cast assignment to destination type to fix warnings.
Panu Matilainen [Wed, 11 Jul 2007 09:34:46 +0000 (12:34 +0300)]
Ifdef out currently unused rpm logging facility stuff.
Panu Matilainen [Wed, 11 Jul 2007 09:32:17 +0000 (12:32 +0300)]
Shut up fdUpdateDigest() differing signedness compiler warnings.
Derived from rpm5.org.
Panu Matilainen [Tue, 10 Jul 2007 12:25:32 +0000 (15:25 +0300)]
More python method pointer type fixes.
Panu Matilainen [Tue, 10 Jul 2007 12:20:34 +0000 (15:20 +0300)]
Cast to PyObject to avoid compiler whining
Panu Matilainen [Tue, 10 Jul 2007 12:19:04 +0000 (15:19 +0300)]
Fix bunch of compiler warnings from python bindings (method pointer types)
Panu Matilainen [Tue, 10 Jul 2007 11:02:29 +0000 (14:02 +0300)]
Add missing include to rpmcache
Panu Matilainen [Tue, 10 Jul 2007 10:52:49 +0000 (13:52 +0300)]
Remove meaningles statement to avoid compiler warning.
Panu Matilainen [Tue, 10 Jul 2007 10:46:32 +0000 (13:46 +0300)]
Remove two useless rpmtsSELinuxEnabled() calls.
Panu Matilainen [Tue, 10 Jul 2007 10:43:46 +0000 (13:43 +0300)]
Bunch of variable initializations to avoid 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.
Panu Matilainen [Tue, 10 Jul 2007 10:35:50 +0000 (13:35 +0300)]
Cast glob_t *dir methods to void* to fix 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.
Panu Matilainen [Tue, 10 Jul 2007 10:32:45 +0000 (13:32 +0300)]
Cast tid to time_t for ctime() to avoid compiler warning.
Panu Matilainen [Tue, 10 Jul 2007 10:23:56 +0000 (13:23 +0300)]
Fix a couple of compiler warnings
Panu Matilainen [Tue, 10 Jul 2007 09:15:43 +0000 (12:15 +0300)]
Remove const type-qualifiers from function return types everywhere.
They're meaningless in C and cause tonne of build warnings.
Panu Matilainen [Tue, 10 Jul 2007 08:39:40 +0000 (11:39 +0300)]
Cast to strlen expected type to avoid warning.
Panu Matilainen [Tue, 10 Jul 2007 08:39:11 +0000 (11:39 +0300)]
Msg buffer signedness change to avoid several compiler warnings.
Panu Matilainen [Tue, 10 Jul 2007 08:19:12 +0000 (11:19 +0300)]
Use correct size type for getpeername()
Panu Matilainen [Tue, 10 Jul 2007 08:00:04 +0000 (11:00 +0300)]
Remove / #ifdef out unused variables as appropriate.
Panu Matilainen [Tue, 10 Jul 2007 07:47:35 +0000 (10:47 +0300)]
#ifdef out unused pgpSecret* definitions to shut up compiler warnings.
Panu Matilainen [Tue, 10 Jul 2007 07:27:55 +0000 (10:27 +0300)]
Fix bunch of string formatting warnings.
Panu Matilainen [Mon, 9 Jul 2007 09:47:25 +0000 (12:47 +0300)]
Avoid closing scriptlet stdout by mistake.
Panu Matilainen [Mon, 9 Jul 2007 09:39:43 +0000 (12:39 +0300)]
Make docdir checking stricter (rhbz#246819)
Panu Matilainen [Mon, 9 Jul 2007 09:31:32 +0000 (12:31 +0300)]
Remove outdated comment in check-rpaths-worker
Panu Matilainen [Mon, 9 Jul 2007 08:47:48 +0000 (11:47 +0300)]
Fix ordering with --nodeps.
This adds unneeded second rpmalMakeIndex() call to normal path, the index
creation needs some kind of tracking mechanism to avoid this...
Panu Matilainen [Mon, 9 Jul 2007 08:23:58 +0000 (11:23 +0300)]
Permit packages with no payload format (rpm 3.x compat), ugh...
Panu Matilainen [Mon, 9 Jul 2007 08:01:33 +0000 (11:01 +0300)]
Fix include of misc.h, rpmpgp.h and rpmsq.h in C++.
Panu Matilainen [Fri, 6 Jul 2007 12:16:09 +0000 (15:16 +0300)]
Include symlinks in find-lang search (rhbz#246729)
Panu Matilainen [Thu, 5 Jul 2007 13:59:34 +0000 (16:59 +0300)]
Rip out popt.
Panu Matilainen [Thu, 5 Jul 2007 11:47:29 +0000 (14:47 +0300)]
Tags fixup.
- consistent tag naming
- remove false 4.4.2.1-rc2 tag
- use dots instead of underscores, hg has no silly limits wrt that...
Panu Matilainen [Wed, 4 Jul 2007 12:35:12 +0000 (15:35 +0300)]
Added tag 4.4.2.1-rc2 for changeset
da8803a1a1f0
Panu Matilainen [Wed, 4 Jul 2007 12:34:52 +0000 (15:34 +0300)]
Duh, really kill the broken tests.
Panu Matilainen [Wed, 4 Jul 2007 12:21:07 +0000 (15:21 +0300)]
Added tag 4.4.2.1-rc2 for changeset
2aa6758ed8fb
Panu Matilainen [Wed, 4 Jul 2007 12:18:43 +0000 (15:18 +0300)]
Preparing for 4.4.2.1-rc2
- update CHANGES and version
- update translations
Panu Matilainen [Wed, 4 Jul 2007 12:11:27 +0000 (15:11 +0300)]
New debugedit option to recompute build ID (rhbz#246404)
Patch from Roland McGrath.
Panu Matilainen [Wed, 4 Jul 2007 12:06:20 +0000 (15:06 +0300)]
Include additional buildroot sanity check scripts (rhbz#245639)
- check-buildroot for checing buildroot files for references to $RPM_BUILD_ROOT
- check-rpaths* for checking buildroot files for broken rpaths
Scripts by Enrico Scholz, Ville Skyttä.
Panu Matilainen [Tue, 3 Jul 2007 11:27:08 +0000 (14:27 +0300)]
Fix segfault on errors if neon transport is used (rhbz#220392)
Patch from rpm5.org / JBJ.
Panu Matilainen [Tue, 3 Jul 2007 11:13:13 +0000 (14:13 +0300)]
Pass --wildcards to tar on build (rhbz#206841)
Tar no longer accepts globbing by default as it's incompatible with
traditional implementations:
http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00001.html
Rpm needs to work with upstream tar really, the --wildcards option has been
supported since 2001 so older versions shouldn't suffer either.
Panu Matilainen [Tue, 3 Jul 2007 08:51:51 +0000 (11:51 +0300)]
Minor update to Polish translation (rhbz#243569)
From Piotr Drąg.
Panu Matilainen [Mon, 2 Jul 2007 12:02:15 +0000 (15:02 +0300)]
Plug some memory leaks.
Patches from rpm5.org / JBJ.