Panu Matilainen [Mon, 6 Aug 2007 12:46:11 +0000 (15:46 +0300)]
rpm is not a cross-tool...
The patch below removes AC_CANONICAL_TARGET from configure.ac and
changes $target to $host.
Background: AC_CANONICAL_TARGET is supposed to take the target of a
cross-tool, not the target of cross-compiling a package
(== a configure script's --host).
Patch from Ralf Corsepius
Panu Matilainen [Mon, 6 Aug 2007 11:47:43 +0000 (14:47 +0300)]
Couple of ARM-related typo fixes from Lennert Buytenhek.
Panu Matilainen [Mon, 6 Aug 2007 11:47:10 +0000 (14:47 +0300)]
Detect and use -gnueabi instead of -gnu on ARM as necessary.
Patch from Lennert Buytenhek.
Panu Matilainen [Mon, 6 Aug 2007 11:24:29 +0000 (14:24 +0300)]
Use PACKAGE_BUGREPORT in rpmrc.c's error messages.
Background: autoconf supplies a define (PACKAGE_BUGREPORT) which can be
used to provide an email-address for bug reporting. So far, rpmrc.c
sources used a hard-coded addresses instead.
This had caused i18n'ed strings (po/*) to contain different email
addresses for bug reporting. The patch changes this behavior into a the
i18n'ed strings to use the address as a string.
From Ralf Corsepius.
Panu Matilainen [Mon, 6 Aug 2007 10:31:23 +0000 (13:31 +0300)]
Remove dead tficl code..
Panu Matilainen [Mon, 6 Aug 2007 09:58:45 +0000 (12:58 +0300)]
Fix --dump usage description in the manpage.
Patch from Yu Zhiguo.
Panu Matilainen [Mon, 6 Aug 2007 09:04:05 +0000 (12:04 +0300)]
Allow building without python-devel.
The patch below adds a check for presence of Python.h to configure.ac
and applies automake-conditionals to switch off building rpm's python
bindings if Python.h can't be found.
Patch from Ralf Corsepius.
Panu Matilainen [Mon, 6 Aug 2007 09:02:54 +0000 (12:02 +0300)]
Automake cleanups from Ralf Corsepius.
* $(mkinstalldirs) in Makefile.ams is an anachronism.
Modern Makefile.ams should use $(MKDIR_P) instead.
* There is one direct call to "mkdir -p" inside of the toplevel
Makefile.am - mkdir -p is non-portable. Portable Makefile.ams should use
MKDIR_P instead.
Panu Matilainen [Mon, 6 Aug 2007 09:01:31 +0000 (12:01 +0300)]
Minor bug fixes to test programs to make them buildable again.
Patch from Ralf Corsepius.
Panu Matilainen [Mon, 6 Aug 2007 08:46:51 +0000 (11:46 +0300)]
Updated Brazilian Portugese translation from Igor Pires Soares.
Panu Matilainen [Sun, 5 Aug 2007 08:30:55 +0000 (11:30 +0300)]
Automake cleanups.
- Replace INCLUDES with AM_CPPFLAGS
(INCLUDES has been replaced by AM_CPPFLAGS and is deprecated in
modern automakes for several years)
- Require autoconf-2.61 and automake-1.10
(already required by autogen.sh)
- update mkinstalldirs with the version from automake-1.10
(The version in rpm is ancient and known to be bugged)
Patch from Ralf Corsepius
Panu Matilainen [Tue, 31 Jul 2007 09:06:34 +0000 (12:06 +0300)]
Extract pkgconfig and libtool dependencies automatically.
Ported from rpm5.org work of Jeff Johnson.
Panu Matilainen [Mon, 30 Jul 2007 10:43:22 +0000 (13:43 +0300)]
Fixing fallout from MARK64 removal..
Panu Matilainen [Mon, 30 Jul 2007 08:58:31 +0000 (11:58 +0300)]
Update internal BDB to version 4.6.18.
Panu Matilainen [Thu, 26 Jul 2007 07:50:06 +0000 (10:50 +0300)]
Get python to honor prefix on install
Panu Matilainen [Wed, 25 Jul 2007 14:10:57 +0000 (17:10 +0300)]
Set libdir /usr/lib vs lib64 directly, drop MARK64 stuff
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
Panu Matilainen [Wed, 25 Jul 2007 14:04:15 +0000 (17:04 +0300)]
Flatten python makefiles, path tweaks
Panu Matilainen [Wed, 25 Jul 2007 12:36:58 +0000 (15:36 +0300)]
Add initial rpm.pc pkg-config support.
Panu Matilainen [Tue, 24 Jul 2007 12:19:39 +0000 (15:19 +0300)]
Update translations..
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
Panu Matilainen [Tue, 24 Jul 2007 12:17:04 +0000 (15:17 +0300)]
Add linit.h to liblua sources (distcheck sanity)
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
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..
Panu Matilainen [Tue, 24 Jul 2007 11:14:27 +0000 (14:14 +0300)]
Fool bdb make system to "work" with distcheck
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.
Panu Matilainen [Tue, 24 Jul 2007 10:10:31 +0000 (13:10 +0300)]
Python install path fiddling to appease with distcheck
Panu Matilainen [Tue, 24 Jul 2007 08:55:37 +0000 (11:55 +0300)]
Use python distutils for determining include etc paths
Panu Matilainen [Tue, 24 Jul 2007 07:19:55 +0000 (10:19 +0300)]
Kill of one more rpmfile reference
Panu Matilainen [Tue, 24 Jul 2007 07:13:28 +0000 (10:13 +0300)]
Expect neon headers to live in neon/ 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
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...
Panu Matilainen [Mon, 23 Jul 2007 10:12:14 +0000 (13:12 +0300)]
Always create ChangeLog from scratch on make dist.
Panu Matilainen [Mon, 23 Jul 2007 07:43:47 +0000 (10:43 +0300)]
Update scriptlet names to match current reality (rhbz#248128)
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.
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ä.
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.
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)
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.
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)
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...
Panu Matilainen [Mon, 16 Jul 2007 13:48:14 +0000 (16:48 +0300)]
Update internal BDB to version 4.5.20
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..