tools/librpm-tizen.git
16 years agoRegenerate preinstall.am
Panu Matilainen [Fri, 23 Nov 2007 07:06:45 +0000 (09:06 +0200)]
Regenerate preinstall.am

16 years agoMove makeTempFile() from misc.h to rpmfileutil.h
Panu Matilainen [Thu, 22 Nov 2007 14:28:30 +0000 (16:28 +0200)]
Move makeTempFile() from misc.h to rpmfileutil.h
- probably not very useful outside rpm but used all over the tree,
- rename to rpmMkTempFile() for namespacing since we're exporting it now

16 years agolibrpmdb doesn't need rpmio private headers anymore
Panu Matilainen [Fri, 23 Nov 2007 06:45:59 +0000 (08:45 +0200)]
librpmdb doesn't need rpmio private headers anymore

16 years agoCalculating file checksums aint legacy activity
Panu Matilainen [Thu, 22 Nov 2007 14:06:11 +0000 (16:06 +0200)]
Calculating file checksums aint legacy activity
- move the checksumming into librpmio
- rename domd5() to rpmDoDigest() with future expansion for specifying
  digest algorithm type (ignored for now)
- rearrange parameters to leave return types last
- one less rpmio_internal outside rpmio/, whee...
- used all over the rpm tree, and it knows about handling prelinked files
  so potentially useful for outside users, might as well export it
- new public header rpmfilutil.h for collecting this sort of stuff

16 years agoMove pgpDig typedefs to a more obvious place..
Panu Matilainen [Thu, 22 Nov 2007 12:48:07 +0000 (14:48 +0200)]
Move pgpDig typedefs to a more obvious place..

16 years agoMove the xstr*() string variants from rpmio.h to rpmstring.h
Panu Matilainen [Fri, 23 Nov 2007 06:32:08 +0000 (08:32 +0200)]
Move the xstr*() string variants from rpmio.h to rpmstring.h

16 years agoMove string helpers from lib/misc.h to rpmio/rpmstring.h
Panu Matilainen [Fri, 23 Nov 2007 06:21:23 +0000 (08:21 +0200)]
Move string helpers from lib/misc.h to rpmio/rpmstring.h
- splitString, freeSplitString, stripTrailingChar

16 years agoMove stringbuf into librpmio, rename header
Panu Matilainen [Fri, 23 Nov 2007 06:11:42 +0000 (08:11 +0200)]
Move stringbuf into librpmio, rename header
- rename header to more generic rpmstring.h for collecting misc string
  helper functions

16 years agoUse #include <x.h> syntax to include public headers.
Ralf Corsépius [Fri, 23 Nov 2007 05:46:19 +0000 (06:46 +0100)]
Use #include <x.h> syntax to include public headers.

16 years agoFix typo in preinstall.am generation.
Ralf Corsépius [Fri, 23 Nov 2007 05:28:09 +0000 (06:28 +0100)]
Fix typo in preinstall.am generation.

16 years agoRemove AM_CPPFLAGS += -I$(top_srcdir)/build.
Ralf Corsépius [Thu, 22 Nov 2007 17:13:53 +0000 (18:13 +0100)]
Remove AM_CPPFLAGS += -I$(top_srcdir)/build.
Remove AM_CPPFLAGS += -I$(top_srcdir)/lib.
Let librpmdb only depend on librpmio.

16 years agoRegenerate.
Ralf Corsépius [Thu, 22 Nov 2007 16:22:22 +0000 (17:22 +0100)]
Regenerate.

16 years agoFix preinstall.am handling for VPATH builds.
Ralf Corsépius [Thu, 22 Nov 2007 16:19:38 +0000 (17:19 +0100)]
Fix preinstall.am handling for VPATH builds.

16 years agoAdd -I$(top_builddir)/include/rpm to AM_CPPFLAGS.
Ralf Corsépius [Thu, 22 Nov 2007 15:45:25 +0000 (16:45 +0100)]
Add -I$(top_builddir)/include/rpm to AM_CPPFLAGS.

16 years agoAdd -I$(top_builddir)/include/rpm to AM_CPPFLAGS.
Ralf Corsépius [Thu, 22 Nov 2007 15:17:20 +0000 (16:17 +0100)]
Add -I$(top_builddir)/include/rpm to AM_CPPFLAGS.

16 years agoAdd header preinstallation.
Ralf Corsépius [Thu, 22 Nov 2007 14:54:42 +0000 (15:54 +0100)]
Add header preinstallation.

16 years agoInclude system.h
Ralf Corsépius [Thu, 22 Nov 2007 12:41:06 +0000 (13:41 +0100)]
Include system.h

16 years agoEliminate egrep (Abandoned by POSIX many years ago).
Ralf Corsépius [Thu, 22 Nov 2007 08:43:40 +0000 (09:43 +0100)]
Eliminate egrep (Abandoned by POSIX many years ago).

16 years agoAdd AC_USE_SYSTEM_EXTENSIONS.
Ralf Corsépius [Wed, 21 Nov 2007 15:51:57 +0000 (16:51 +0100)]
Add AC_USE_SYSTEM_EXTENSIONS.
Remove AC_AIX, AC_MINIX.
Do not add -D_GNU_SOURCE to CFLAGS.

16 years agos/build_cpu/host_cpu/
Ralf Corsépius [Wed, 21 Nov 2007 10:34:30 +0000 (11:34 +0100)]
s/build_cpu/host_cpu/

16 years agoLose rpmerr.h for good
Panu Matilainen [Mon, 19 Nov 2007 14:32:15 +0000 (16:32 +0200)]
Lose rpmerr.h for good

16 years agoReplace all RPMERR_* etc uses with corresponding RPMLOG_* levels
Panu Matilainen [Mon, 19 Nov 2007 14:25:24 +0000 (16:25 +0200)]
Replace all RPMERR_* etc uses with corresponding RPMLOG_* levels

16 years agoSplit digest-stuff out of rpmio_internal to separate header
Panu Matilainen [Fri, 16 Nov 2007 15:37:54 +0000 (17:37 +0200)]
Split digest-stuff out of rpmio_internal to separate header

16 years agoEliminate copy-paste fd digest stealing, stuff into rpmio_internal
Panu Matilainen [Fri, 16 Nov 2007 15:18:55 +0000 (17:18 +0200)]
Eliminate copy-paste fd digest stealing, stuff into rpmio_internal

16 years agoEliminate need for rpmio_internal.h in rpmdb.c
Panu Matilainen [Fri, 16 Nov 2007 12:16:56 +0000 (14:16 +0200)]
Eliminate need for rpmio_internal.h in rpmdb.c
- adds new pgpExtractPubkeyFingerprint() API function

Ported from rpm5.org work of Jeff Johnson

16 years agoDebugedit needs crypto initialization too..
Panu Matilainen [Thu, 15 Nov 2007 13:16:10 +0000 (15:16 +0200)]
Debugedit needs crypto initialization too..

16 years agoRemember to initialize crypto in various test programs..
Panu Matilainen [Thu, 15 Nov 2007 12:03:19 +0000 (14:03 +0200)]
Remember to initialize crypto in various test programs..

16 years agoInitialize NSS early (rhbz#382091)
Panu Matilainen [Thu, 15 Nov 2007 09:08:53 +0000 (11:08 +0200)]
Initialize NSS early (rhbz#382091)
- add new rpmInitCrypto() API for directly initializing any crypto
- call it from rpmReadConfig() to ensure it's always initialized early on

16 years agoFix base64 decoder related crash (rhbz#380911)
Panu Matilainen [Wed, 14 Nov 2007 19:52:42 +0000 (21:52 +0200)]
Fix base64 decoder related crash (rhbz#380911)

The base64 decoder code incorrectly assumed that char is a signed type.
Patch from Tomas Mraz

16 years agoFix rpm -K segfaulting on corrupted header
Panu Matilainen [Tue, 13 Nov 2007 11:11:54 +0000 (13:11 +0200)]
Fix rpm -K segfaulting on corrupted header
(http://qa.mandriva.com/show_bug.cgi?id=#33735)

Patch from Pascal Rigaux

16 years agoMake "rpmbuild -bb --quiet" quiet as should be
Panu Matilainen [Tue, 13 Nov 2007 11:09:01 +0000 (13:09 +0200)]
Make "rpmbuild -bb --quiet" quiet as should be
(without this patch, the option is simply ignored in rpmcliAllPoptTable)

Also rhbz#124300

Patch from Pascal Rigaux

16 years agoFix build without O2
Panu Matilainen [Tue, 13 Nov 2007 11:03:38 +0000 (13:03 +0200)]
Fix build without O2

HAVE_LOCALE_H is used by system.h, ensure it is defined properly
(the issue only occurs when compiling without __OPTIMIZE__ (ie -O2)
 otherwise libintl.h do include locale.h)

Patch from Pascal Rigaux

16 years agoAlign rpm -V output
Panu Matilainen [Tue, 13 Nov 2007 11:00:52 +0000 (13:00 +0200)]
Align rpm -V output
Patch from Pascal Rigaux

16 years agoUse dgettext() instead of just gettext()
Panu Matilainen [Tue, 13 Nov 2007 10:57:49 +0000 (12:57 +0200)]
Use dgettext() instead of just gettext()
Patch from Pascal Rigaux

16 years agoFix free on invalid pointer after displaying "Unable to open temp file"
Panu Matilainen [Tue, 13 Nov 2007 10:47:22 +0000 (12:47 +0200)]
Fix free on invalid pointer after displaying "Unable to open temp file"
Patch from Pascal Rigaux

16 years agoMinimal protection for rpmsqElem internals
Panu Matilainen [Thu, 8 Nov 2007 13:59:45 +0000 (15:59 +0200)]
Minimal protection for rpmsqElem internals

16 years agoRemove unnecessary psm.h include
Panu Matilainen [Thu, 8 Nov 2007 13:56:11 +0000 (15:56 +0200)]
Remove unnecessary psm.h include

16 years agoDead code removal
Panu Matilainen [Thu, 8 Nov 2007 12:17:17 +0000 (14:17 +0200)]
Dead code removal

16 years agoUse _target_* macros for build restriction checking
Panu Matilainen [Thu, 8 Nov 2007 12:09:31 +0000 (14:09 +0200)]
Use _target_* macros for build restriction checking
- avoid using deprecated rpmrc rpmGet*Info()
- plug a small memory leak (remember to free the values too)
- potential linux vs Linux as the os name implications but as isMemberInEntry()
  ignores case anyway, shouldn't matter

16 years agoDisable -Wstrict-prototypes for now due to noise from NSPR headers
Panu Matilainen [Thu, 8 Nov 2007 10:57:02 +0000 (12:57 +0200)]
Disable -Wstrict-prototypes for now due to noise from NSPR headers

16 years agoKludge around mktemp() uses to shut up build warnings
Panu Matilainen [Thu, 8 Nov 2007 10:54:05 +0000 (12:54 +0200)]
Kludge around mktemp() uses to shut up build warnings

16 years agoRemove dead & unused RPMTAG_ARCHIVESIZE addition code
Panu Matilainen [Thu, 8 Nov 2007 10:34:53 +0000 (12:34 +0200)]
Remove dead & unused RPMTAG_ARCHIVESIZE addition code
- rpm >= 4.1 uses RPMTAG_PAYLOADSIZE and translates RPMTAG_ARCHIVESIZE to
  it automatically

16 years agoKill off deprecated and unused rpmGetMachine() entirely
Panu Matilainen [Thu, 8 Nov 2007 10:26:46 +0000 (12:26 +0200)]
Kill off deprecated and unused rpmGetMachine() entirely

16 years agoRemove rpmSetMachine() from API
Panu Matilainen [Thu, 8 Nov 2007 10:22:14 +0000 (12:22 +0200)]
Remove rpmSetMachine() from API

16 years agoRemove dead rpmrc-related code from spec parsing
Panu Matilainen [Thu, 8 Nov 2007 10:16:48 +0000 (12:16 +0200)]
Remove dead rpmrc-related code from spec parsing

16 years agoRemove useless "var" parameter from setup helpers
Panu Matilainen [Thu, 8 Nov 2007 08:33:47 +0000 (10:33 +0200)]
Remove useless "var" parameter from setup helpers
Additionally rename setVarDefault to addMacroDefault which it really is

16 years agoKill off unused rpmSetVar() and freeRpmVar()
Panu Matilainen [Thu, 8 Nov 2007 08:32:10 +0000 (10:32 +0200)]
Kill off unused rpmSetVar() and freeRpmVar()

16 years agoRemove rpmGetVar, rpmSetVar from API
Panu Matilainen [Thu, 8 Nov 2007 08:24:58 +0000 (10:24 +0200)]
Remove rpmGetVar, rpmSetVar from API

16 years agoEliminate dead code
Panu Matilainen [Wed, 7 Nov 2007 11:47:42 +0000 (13:47 +0200)]
Eliminate dead code

16 years agoEliminate rpmlead use from legacy retrofitting.
Panu Matilainen [Wed, 7 Nov 2007 11:21:06 +0000 (13:21 +0200)]
Eliminate rpmlead use from legacy retrofitting.

16 years agoOnly do legacy retrofitting on packages that need it.
Panu Matilainen [Wed, 7 Nov 2007 11:12:20 +0000 (13:12 +0200)]
Only do legacy retrofitting on packages that need it.

Packages not having RPMTAG_DIRNAMES (ie compressed filenames) is
used for checking, packages not having it are either built with rpm <= 3.x
or with --nodirtokens, retrofitting in the latter case doesn't really
hurt that much for the obscure case...

16 years agoDocument rpmio_internal.h uses outside rpmio/
Panu Matilainen [Wed, 7 Nov 2007 09:57:12 +0000 (11:57 +0200)]
Document rpmio_internal.h uses outside rpmio/

16 years agoMove tufdio under rpmio/ where it belongs..
Panu Matilainen [Wed, 7 Nov 2007 09:41:06 +0000 (11:41 +0200)]
Move tufdio under rpmio/ where it belongs..

16 years agoSilence bogus gcc warning
Panu Matilainen [Wed, 7 Nov 2007 09:02:41 +0000 (11:02 +0200)]
Silence bogus gcc warning

16 years agoRemove unused variable
Panu Matilainen [Wed, 7 Nov 2007 09:01:40 +0000 (11:01 +0200)]
Remove unused variable

16 years agoSilence bunch of compiler warnings from test programs
Panu Matilainen [Wed, 7 Nov 2007 09:00:51 +0000 (11:00 +0200)]
Silence bunch of compiler warnings from test programs

16 years agoRemove bunch of unnecessary misc.h includes, document others
Panu Matilainen [Wed, 7 Nov 2007 08:17:10 +0000 (10:17 +0200)]
Remove bunch of unnecessary misc.h includes, document others

16 years agoRemove .splintrc's in the tree
Panu Matilainen [Wed, 7 Nov 2007 07:01:38 +0000 (09:01 +0200)]
Remove .splintrc's in the tree

16 years agoMerge
Peter Jones [Fri, 2 Nov 2007 13:25:33 +0000 (09:25 -0400)]
Merge

16 years ago- Fix segfault in %{lua:...}'s rpm_print
Peter Jones [Fri, 2 Nov 2007 13:23:05 +0000 (09:23 -0400)]
- Fix segfault in %{lua:...}'s rpm_print
- Don't automatically print a newline in rpm_print

16 years agoEliminate rpmfcToken struct internals from the API
Panu Matilainen [Fri, 2 Nov 2007 10:11:33 +0000 (12:11 +0200)]
Eliminate rpmfcToken struct internals from the API

16 years agoEliminate macro struct internals from the API
Panu Matilainen [Fri, 2 Nov 2007 08:40:45 +0000 (10:40 +0200)]
Eliminate macro struct internals from the API

16 years agoMeh, actually add the base64 files..
Panu Matilainen [Fri, 2 Nov 2007 08:24:42 +0000 (10:24 +0200)]
Meh, actually add the base64 files..

16 years agoRemove tinv
Panu Matilainen [Fri, 2 Nov 2007 08:18:23 +0000 (10:18 +0200)]
Remove tinv

16 years agoDocument NSS requirement, revise obsolete comment in macros.in
Panu Matilainen [Fri, 2 Nov 2007 08:16:16 +0000 (10:16 +0200)]
Document NSS requirement, revise obsolete comment in macros.in

16 years agoResurrect tax from NSS switchover
Panu Matilainen [Fri, 2 Nov 2007 08:11:54 +0000 (10:11 +0200)]
Resurrect tax from NSS switchover

16 years agoUse NSS instead of beecrypt for encryption (Tomas Mraz)
Panu Matilainen [Fri, 2 Nov 2007 08:02:40 +0000 (10:02 +0200)]
Use NSS instead of beecrypt for encryption (Tomas Mraz)

16 years agoInclude "legacy.h" not <rpmdb/legacy.h>
Panu Matilainen [Thu, 1 Nov 2007 10:26:05 +0000 (12:26 +0200)]
Include "legacy.h" not <rpmdb/legacy.h>

16 years agoRemove two unnecessary legacy.h includes
Panu Matilainen [Thu, 1 Nov 2007 10:25:41 +0000 (12:25 +0200)]
Remove two unnecessary legacy.h includes

16 years agoDocument RPMFI_INTERNAL uses
Panu Matilainen [Wed, 31 Oct 2007 10:48:43 +0000 (12:48 +0200)]
Document RPMFI_INTERNAL uses

16 years agoDocument _RPMTE_INTERNAL needs
Panu Matilainen [Wed, 31 Oct 2007 10:39:23 +0000 (12:39 +0200)]
Document _RPMTE_INTERNAL needs

16 years agoSplit out rpmts_internal.h from rpmts.h
Panu Matilainen [Wed, 31 Oct 2007 10:08:01 +0000 (12:08 +0200)]
Split out rpmts_internal.h from rpmts.h

16 years agoDisable python available package mechanism for now at least.
Panu Matilainen [Wed, 31 Oct 2007 09:57:04 +0000 (11:57 +0200)]
Disable python available package mechanism for now at least.
- need saner available mechanism to resurrect, OTOH nothing appears to
  use it anymore
- last remaining RPMTS_INTERNAL offender...

16 years agoAdd rpmtsPrintSuggests() method for now, use instead of ts internals mucking
Panu Matilainen [Wed, 31 Oct 2007 08:37:18 +0000 (10:37 +0200)]
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

16 years agoKill ts->goal, instead set NOSUGGEST flag on erase
Panu Matilainen [Wed, 31 Oct 2007 08:15:05 +0000 (10:15 +0200)]
Kill ts->goal, instead set NOSUGGEST flag on erase
- it aint quite the same thing but will suffice for now...

16 years agomerge suckage.
Ralf Corsépius [Tue, 30 Oct 2007 14:52:52 +0000 (15:52 +0100)]
merge suckage.

16 years agoReplace AC_CHECK_FUNCS by AC_REPLACE_FUNCS for basename, getcwd, getwd, putenv, realp...
Ralf Corsépius [Tue, 30 Oct 2007 14:51:53 +0000 (15:51 +0100)]
Replace AC_CHECK_FUNCS by AC_REPLACE_FUNCS for basename, getcwd, getwd, putenv, realpath, setenv, stpcpy, stpncpy, strcspn, strdup, strtol, strtoul, strspn, strstr.

16 years agoAdd rpmtsCleanProblems() method for rpmgi needs
Panu Matilainen [Tue, 30 Oct 2007 14:48:38 +0000 (16:48 +0200)]
Add rpmtsCleanProblems() method for rpmgi needs

16 years agomerge.
Ralf Corsépius [Tue, 30 Oct 2007 14:25:41 +0000 (15:25 +0100)]
merge.

16 years agoRemove memcmp.c.
Ralf Corsépius [Tue, 30 Oct 2007 14:24:10 +0000 (15:24 +0100)]
Remove memcmp.c.

16 years agoErm... rpmdsFlags are int32_t type, not char*
Panu Matilainen [Tue, 30 Oct 2007 13:53:44 +0000 (15:53 +0200)]
Erm... rpmdsFlags are int32_t type, not char*

16 years agoSplit transaction score stuff to separate private header
Panu Matilainen [Tue, 30 Oct 2007 13:50:35 +0000 (15:50 +0200)]
Split transaction score stuff to separate private header

16 years agoNo callback, no repackaging info - tough...
Panu Matilainen [Tue, 30 Oct 2007 13:15:19 +0000 (15:15 +0200)]
No callback, no repackaging info - tough...

16 years agoUse rpmtsRootDir() instead of ts->rootDir + url guess-games in psm
Panu Matilainen [Tue, 30 Oct 2007 12:31:42 +0000 (14:31 +0200)]
Use rpmtsRootDir() instead of ts->rootDir + url guess-games in psm

16 years agomerge.
Ralf Corsépius [Tue, 30 Oct 2007 11:17:16 +0000 (12:17 +0100)]
merge.

16 years agoDon't build stubs.c.
Ralf Corsépius [Tue, 30 Oct 2007 11:16:21 +0000 (12:16 +0100)]
Don't build stubs.c.
Link against ../misc/libmisc.la.

16 years agoBuild libmisc.la.
Ralf Corsépius [Tue, 30 Oct 2007 11:15:34 +0000 (12:15 +0100)]
Build libmisc.la.
Use @LTLIBOBJS@.

16 years agoAdd -I$(top_builddir)/rpmdb to AM_CPPFLAGS.
Ralf Corsépius [Tue, 30 Oct 2007 11:14:23 +0000 (12:14 +0100)]
Add -I$(top_builddir)/rpmdb to AM_CPPFLAGS.

16 years agorpmds is now fully opaque, eliminate _RPMDS_INTERNAL games
Panu Matilainen [Tue, 30 Oct 2007 11:11:13 +0000 (13:11 +0200)]
rpmds is now fully opaque, eliminate _RPMDS_INTERNAL games

16 years agoWhole lotta trouble to avoid rpmds internals access in rpmfc
Panu Matilainen [Tue, 30 Oct 2007 11:07:59 +0000 (13:07 +0200)]
Whole lotta trouble to avoid rpmds internals access in rpmfc

16 years agoAvoid rpmte internals access in rpmtsNotify()
Panu Matilainen [Tue, 30 Oct 2007 10:25:15 +0000 (12:25 +0200)]
Avoid rpmte internals access in rpmtsNotify()

16 years agoUse rpmteKey() instead of te internals
Panu Matilainen [Tue, 30 Oct 2007 10:12:54 +0000 (12:12 +0200)]
Use rpmteKey() instead of te internals

16 years agoRemove unnecessary rpmShowProgress duplicate prototype
Panu Matilainen [Tue, 30 Oct 2007 09:54:22 +0000 (11:54 +0200)]
Remove unnecessary rpmShowProgress duplicate prototype

16 years agoRemove rpmdb/tsql.c.
Ralf Corsépius [Tue, 30 Oct 2007 03:06:24 +0000 (04:06 +0100)]
Remove rpmdb/tsql.c.

16 years agoInclude <assert.h>.
Ralf Corsépius [Tue, 30 Oct 2007 02:27:07 +0000 (03:27 +0100)]
Include <assert.h>.

16 years agoRemove URLMAGIC, URLSANE.
Ralf Corsépius [Tue, 30 Oct 2007 01:57:14 +0000 (02:57 +0100)]
Remove URLMAGIC, URLSANE.
Remove include <assert.h>.

16 years agoAdd URLMAGIC, URLSANE.
Ralf Corsépius [Tue, 30 Oct 2007 01:56:34 +0000 (02:56 +0100)]
Add URLMAGIC, URLSANE.
Remove URLDBG (unused).
Include <assert.h>.

16 years agoFix typo.
Ralf Corsépius [Mon, 29 Oct 2007 12:37:50 +0000 (13:37 +0100)]
Fix typo.

16 years agoSplit out rpmgi_internal.h from rpmgi.h
Ralf Corsépius [Mon, 29 Oct 2007 12:34:53 +0000 (13:34 +0100)]
Split out rpmgi_internal.h from rpmgi.h

16 years agoAdd SKIPSPACE, SKIPNONSPACE.
Ralf Corsépius [Mon, 29 Oct 2007 11:24:15 +0000 (12:24 +0100)]
Add SKIPSPACE, SKIPNONSPACE.