platform/upstream/rpm.git
16 years agoMove luaext include fiddling out of toplevel configure
Panu Matilainen [Tue, 14 Oct 2008 12:49:57 +0000 (15:49 +0300)]
Move luaext include fiddling out of toplevel configure

16 years agoAdd lua to pkgconfig private libs
Panu Matilainen [Tue, 14 Oct 2008 12:44:22 +0000 (15:44 +0300)]
Add lua to pkgconfig private libs

16 years agoReuse toplevel WITH_LUA_LIB setting instead of manual setting
Panu Matilainen [Tue, 14 Oct 2008 12:41:56 +0000 (15:41 +0300)]
Reuse toplevel WITH_LUA_LIB setting instead of manual setting

16 years agoSanitize libluaext linkage
Panu Matilainen [Tue, 14 Oct 2008 12:36:23 +0000 (15:36 +0300)]
Sanitize libluaext linkage

16 years agoFix build without Lua
Panu Matilainen [Tue, 14 Oct 2008 12:31:24 +0000 (15:31 +0300)]
Fix build without Lua

16 years agoTweak autogen a bit more
Panu Matilainen [Tue, 14 Oct 2008 11:46:33 +0000 (14:46 +0300)]
Tweak autogen a bit more
- lose hardcoded paths based on platform
- add --rpmconfigure that can be used if rpm is already present

16 years agoRip silly "usage" message from autogen
Panu Matilainen [Tue, 14 Oct 2008 11:24:30 +0000 (14:24 +0300)]
Rip silly "usage" message from autogen

16 years agoKick out ancient and unused LDFLAGS_STATIC configure.ac-hackery
Panu Matilainen [Tue, 14 Oct 2008 11:17:14 +0000 (14:17 +0300)]
Kick out ancient and unused LDFLAGS_STATIC configure.ac-hackery

16 years agoYank out ancient convertdb1
Panu Matilainen [Tue, 14 Oct 2008 10:34:14 +0000 (13:34 +0300)]
Yank out ancient convertdb1

16 years agoFix up some fuzz in finnish translation
Panu Matilainen [Tue, 14 Oct 2008 09:46:55 +0000 (12:46 +0300)]
Fix up some fuzz in finnish translation

16 years agoAdjust translations wrt the rpmps format changes
Panu Matilainen [Tue, 14 Oct 2008 09:39:25 +0000 (12:39 +0300)]
Adjust translations wrt the rpmps format changes

16 years agoUse PRIu64 for 64bit value formatting instead of casting
Panu Matilainen [Tue, 14 Oct 2008 09:25:01 +0000 (12:25 +0300)]
Use PRIu64 for 64bit value formatting instead of casting

16 years agoAvoid overflow on memcpy()
Panu Matilainen [Tue, 14 Oct 2008 09:17:01 +0000 (12:17 +0300)]
Avoid overflow on memcpy()

16 years agoNeed to mask the return type from rpmTagGetType() return value
Panu Matilainen [Tue, 14 Oct 2008 08:56:15 +0000 (11:56 +0300)]
Need to mask the return type from rpmTagGetType() return value

16 years agoError out on unknown data types in sqlite backend too
Panu Matilainen [Tue, 14 Oct 2008 08:55:05 +0000 (11:55 +0300)]
Error out on unknown data types in sqlite backend too

16 years agoUpdate translations for a change...
Panu Matilainen [Tue, 14 Oct 2008 06:44:58 +0000 (09:44 +0300)]
Update translations for a change...

16 years agoAdd a few missing files to POTFILES.in (rhbz#466834)
Panu Matilainen [Tue, 14 Oct 2008 06:44:32 +0000 (09:44 +0300)]
Add a few missing files to POTFILES.in (rhbz#466834)

16 years agoMake sure dbiTags are loaded on db rebuild & remove
Panu Matilainen [Mon, 13 Oct 2008 11:45:45 +0000 (14:45 +0300)]
Make sure dbiTags are loaded on db rebuild & remove
- rpmdbMoveDatabase() and rpmdbRemoveDatabase() don't operate on an open
  database so there's no guarantee that dbiTags are loaded when they are
  called unless explicitly requested

16 years agoHonor default nopromote setting everywhere in rpmds (rhbz#466503)
Panu Matilainen [Mon, 13 Oct 2008 10:25:17 +0000 (13:25 +0300)]
Honor default nopromote setting everywhere in rpmds (rhbz#466503)
- Of four different ways to create a dependency set, only rpmdsNew()
  explicitly set ds->nopromote to the expected value from global
  _rpmds_nopromote defaulting to on. All others fell back to legacy
  "epoch promotion" behavior inherited from xcalloc()...

16 years agoYank out legacy.h, make the conversion functions static
Panu Matilainen [Fri, 10 Oct 2008 12:59:38 +0000 (15:59 +0300)]
Yank out legacy.h, make the conversion functions static

16 years agoConvert in-tree users to headerConvert()
Panu Matilainen [Fri, 10 Oct 2008 12:54:53 +0000 (15:54 +0300)]
Convert in-tree users to headerConvert()

16 years agoAdd headerConvert() "proxy" for performing various conversions on header data
Panu Matilainen [Fri, 10 Oct 2008 12:53:12 +0000 (15:53 +0300)]
Add headerConvert() "proxy" for performing various conversions on header data

16 years agoAnd out goes rpmMkdirPath()
Panu Matilainen [Fri, 10 Oct 2008 11:43:39 +0000 (14:43 +0300)]
And out goes rpmMkdirPath()

16 years agoUse rpmMkdirs() to create the entire build tree in buildForTarget()
Panu Matilainen [Fri, 10 Oct 2008 11:42:34 +0000 (14:42 +0300)]
Use rpmMkdirs() to create the entire build tree in buildForTarget()
- also move the build tree generation earlier to have it automatically
  created for tarbuilds too

16 years agoUse rpmMkdirs() instead of rpmMkdirPath() in rpmInstallSourcePackage()
Panu Matilainen [Fri, 10 Oct 2008 11:37:57 +0000 (14:37 +0300)]
Use rpmMkdirs() instead of rpmMkdirPath() in rpmInstallSourcePackage()

16 years agoAdd rpmMkdirs() to librpmio
Panu Matilainen [Fri, 10 Oct 2008 11:28:41 +0000 (14:28 +0300)]
Add rpmMkdirs() to librpmio
- allows creating bunch of directories including parents at once

16 years agoGet db vectors out of exported ABI
Panu Matilainen [Thu, 9 Oct 2008 16:53:05 +0000 (19:53 +0300)]
Get db vectors out of exported ABI

16 years agorstrcasecmp() and rstrncasecmp() are "pure" functions
Panu Matilainen [Thu, 9 Oct 2008 13:17:53 +0000 (16:17 +0300)]
rstrcasecmp() and rstrncasecmp() are "pure" functions

16 years agoMark risalpha() and friends as "const functions"
Panu Matilainen [Thu, 9 Oct 2008 13:14:23 +0000 (16:14 +0300)]
Mark risalpha() and friends as "const functions"
- they only process integers that are fed to them and no outside data

16 years agoRemove silly double definition of headerGetLangs()
Panu Matilainen [Thu, 9 Oct 2008 12:59:26 +0000 (15:59 +0300)]
Remove silly double definition of headerGetLangs()

16 years agoMark htonll() as internal
Panu Matilainen [Thu, 9 Oct 2008 12:57:30 +0000 (15:57 +0300)]
Mark htonll() as internal

16 years agoMark cpio functions internal
Panu Matilainen [Thu, 9 Oct 2008 12:52:34 +0000 (15:52 +0300)]
Mark cpio functions internal
- cpioStrerror() is used by build code so that remains visible, ugh

16 years agoMark fingerprinting stuff internal
Panu Matilainen [Thu, 9 Oct 2008 12:48:46 +0000 (15:48 +0300)]
Mark fingerprinting stuff internal

16 years agoMark hash table functions as internal
Panu Matilainen [Thu, 9 Oct 2008 12:47:09 +0000 (15:47 +0300)]
Mark hash table functions as internal
- we're not a hash-library afterall..

16 years agoMark rpmdb internals as internals, including the "mergesort" gem
Panu Matilainen [Thu, 9 Oct 2008 12:43:00 +0000 (15:43 +0300)]
Mark rpmdb internals as internals, including the "mergesort" gem

16 years agoMark psm functions as internal
Panu Matilainen [Thu, 9 Oct 2008 12:37:59 +0000 (15:37 +0300)]
Mark psm functions as internal

16 years agoMark various fsm* bits internal
Panu Matilainen [Thu, 9 Oct 2008 12:35:36 +0000 (15:35 +0300)]
Mark various fsm* bits internal
- build code uses fsmSetup() and fsmTearDown(), those need to remain
  visible for now

16 years agoMark uidToUname() and friends as internal
Panu Matilainen [Thu, 9 Oct 2008 12:32:04 +0000 (15:32 +0300)]
Mark uidToUname() and friends as internal

16 years agoAdd RPM_GNUC_INTERNAL macro
Panu Matilainen [Thu, 9 Oct 2008 12:21:15 +0000 (15:21 +0300)]
Add RPM_GNUC_INTERNAL macro
- allows portable use of __attribute__((visibility("hidden")))

16 years agoUnknown tag is an error
Panu Matilainen [Wed, 8 Oct 2008 15:26:58 +0000 (18:26 +0300)]
Unknown tag is an error

16 years agomake %find_lang --with-kde work (rhbz#466009)
Jindrich Novy [Tue, 7 Oct 2008 20:06:28 +0000 (22:06 +0200)]
make %find_lang --with-kde work (rhbz#466009)
- patch from Rex Dieter

16 years agoMalformed query query items (pkid's and such) are errors
Panu Matilainen [Mon, 6 Oct 2008 15:50:30 +0000 (18:50 +0300)]
Malformed query query items (pkid's and such) are errors

16 years agoMake "not an rpm or manifest" message an error, not just notice
Panu Matilainen [Mon, 6 Oct 2008 15:49:33 +0000 (18:49 +0300)]
Make "not an rpm or manifest" message an error, not just notice

16 years agoConsistent log level for "unverifiable signature" message
Panu Matilainen [Mon, 6 Oct 2008 15:41:09 +0000 (18:41 +0300)]
Consistent log level for "unverifiable signature" message
- all the other ones in package are RPMLOG_ERR

16 years agoFailure to rebuild database is worth at least a warning
Panu Matilainen [Sat, 4 Oct 2008 12:16:38 +0000 (15:16 +0300)]
Failure to rebuild database is worth at least a warning

16 years agoRestore permissions of a signed rpm to that of the original (rhbz#465586)
Panu Matilainen [Sat, 4 Oct 2008 08:19:26 +0000 (11:19 +0300)]
Restore permissions of a signed rpm to that of the original (rhbz#465586)

16 years agoSimilar semantics for <lua> scriptlets
Panu Matilainen [Fri, 3 Oct 2008 10:00:33 +0000 (13:00 +0300)]
Similar semantics for <lua> scriptlets
- missing <lua> support is always an error
- otherwise permit non-pre scriptlets to fail

16 years agoAlways perform callback notify of lua scriptlet errors too
Panu Matilainen [Fri, 3 Oct 2008 09:49:29 +0000 (12:49 +0300)]
Always perform callback notify of lua scriptlet errors too

16 years agoRemove unnecessary {} block + indentation, no functional changes
Panu Matilainen [Fri, 3 Oct 2008 09:13:21 +0000 (12:13 +0300)]
Remove unnecessary {} block + indentation, no functional changes

16 years agoFilter out error exit codes from non-pre scriptlets (rhbz#216221, #rhbz465409)
Panu Matilainen [Fri, 3 Oct 2008 09:04:19 +0000 (12:04 +0300)]
Filter out error exit codes from non-pre scriptlets (rhbz#216221, #rhbz465409)
- typos and thinkos in scriptlets often cause duplicates to be left around
  for no good reason
- treat non-zero exit codes from scriptlets as just warnings instead of
  errors
- ... except that %pre and %preun are sometimes used for preventing
  install/uninstall of a package, preserve the traditional behavior for them
- abuse rpmtsNotify() "total" value for signaling warning/error to callback

16 years agoEmit RPMCALLBACK_SCRIPT_ERROR notification on all scriptlet failures
Panu Matilainen [Fri, 3 Oct 2008 08:41:41 +0000 (11:41 +0300)]
Emit RPMCALLBACK_SCRIPT_ERROR notification on all scriptlet failures
- previously the fork() failures and such would not be notified at all
- discard the not-so-useful differing exit codes (signal, exit status and
  whatnot) from commit 179ebc1745b51eb9821dd783c9df475ac539532d

16 years agoAssume failure in psm runScript()
Panu Matilainen [Fri, 3 Oct 2008 08:38:08 +0000 (11:38 +0300)]
Assume failure in psm runScript()

16 years agoLog message on all scriptlet failures.
Panu Matilainen [Fri, 3 Oct 2008 08:34:41 +0000 (11:34 +0300)]
Log message on all scriptlet failures.

16 years agoUpdated German translation (Fabian Affolter)
Panu Matilainen [Thu, 2 Oct 2008 09:43:02 +0000 (12:43 +0300)]
Updated German translation (Fabian Affolter)

16 years agoKick out yet another ancient artifact
Panu Matilainen [Wed, 1 Oct 2008 14:05:35 +0000 (17:05 +0300)]
Kick out yet another ancient artifact
- --usecatalog hasn't done anything in 10 years if ever afaict...

16 years agoWe have easier ways to catenate strings...
Panu Matilainen [Wed, 1 Oct 2008 13:28:47 +0000 (16:28 +0300)]
We have easier ways to catenate strings...

16 years agoTweaks to how ISA-macros are generated (rhbz#464754)
Panu Matilainen [Wed, 1 Oct 2008 07:06:27 +0000 (10:06 +0300)]
Tweaks to how ISA-macros are generated (rhbz#464754)
- for ppc and sparc, move the check for 64bit version first and use a
  wildcards to cover more field automatically

16 years agoUse safer xrealloc() instead of realloc()
Jindrich Novy [Thu, 25 Sep 2008 17:44:29 +0000 (19:44 +0200)]
Use safer xrealloc() instead of realloc()

16 years agoAvoid segfault in rpmLeadNew() if calloc() fails
Jindrich Novy [Thu, 25 Sep 2008 17:32:27 +0000 (19:32 +0200)]
Avoid segfault in rpmLeadNew() if calloc() fails

16 years agoUse safer xstrdup() instead of strdup() wherever possible
Jindrich Novy [Thu, 25 Sep 2008 17:30:47 +0000 (19:30 +0200)]
Use safer xstrdup() instead of strdup() wherever possible

16 years agoFix up fuzz in Finnish translation
Panu Matilainen [Thu, 25 Sep 2008 16:16:14 +0000 (19:16 +0300)]
Fix up fuzz in Finnish translation

16 years agoExtra ')' in error message
Panu Matilainen [Thu, 25 Sep 2008 16:10:02 +0000 (19:10 +0300)]
Extra ')' in error message

16 years agoDon't go onto wild zombie rampage if python callback tracebacks (rhbz#463447)
Panu Matilainen [Thu, 25 Sep 2008 11:58:05 +0000 (14:58 +0300)]
Don't go onto wild zombie rampage if python callback tracebacks (rhbz#463447)
- If a callback tracebacks, the python program that called us in the first
  place is as good as dead already. Clean up what we can, throw an error
  message and just die, no good is going to come out of blindly continuing.

16 years agoUpdate Brasilian Portuguese translation (rhbz#463748)
Jindrich Novy [Wed, 24 Sep 2008 17:49:09 +0000 (19:49 +0200)]
Update Brasilian Portuguese translation (rhbz#463748)

16 years agoDon't treat %patch numberless if -P parameter is present
Jindrich Novy [Wed, 24 Sep 2008 16:39:43 +0000 (18:39 +0200)]
Don't treat %patch numberless if -P parameter is present

16 years agoKick out useless and ancient junk genCpioListAndHeader()
Panu Matilainen [Mon, 22 Sep 2008 11:30:37 +0000 (14:30 +0300)]
Kick out useless and ancient junk genCpioListAndHeader()
- scareMem is not used for anything here
- xmalloc() + xcalloc() cannot return NULL, don't bother checking

16 years agoFix error messages in processScriptFiles()
Jindrich Novy [Mon, 22 Sep 2008 10:10:36 +0000 (12:10 +0200)]
Fix error messages in processScriptFiles()

16 years agoDrop rpmfcFileDep() to simplify things
Jindrich Novy [Thu, 18 Sep 2008 13:18:53 +0000 (15:18 +0200)]
Drop rpmfcFileDep() to simplify things

16 years agoMove type regression test back to asserts
Jindrich Novy [Thu, 18 Sep 2008 12:57:52 +0000 (14:57 +0200)]
Move type regression test back to asserts
- no need to bother with message translations in this case

16 years agoUse proper codes for logging via rpmlog().
Jindrich Novy [Thu, 18 Sep 2008 12:56:15 +0000 (14:56 +0200)]
Use proper codes for logging via rpmlog().

16 years agoForce error return if headerLoad() fails
Panu Matilainen [Thu, 18 Sep 2008 11:31:47 +0000 (14:31 +0300)]
Force error return if headerLoad() fails

16 years agoDocument manifest behavior for install options too (rhbz#461354)
Panu Matilainen [Thu, 18 Sep 2008 10:24:25 +0000 (13:24 +0300)]
Document manifest behavior for install options too (rhbz#461354)

16 years agoKick out references to "Red Hat Linux" out of the manpages, duh :)
Panu Matilainen [Thu, 18 Sep 2008 10:05:19 +0000 (13:05 +0300)]
Kick out references to "Red Hat Linux" out of the manpages, duh :)
- RHL hasn't existed in years and rpm isn't specific to RH anyway...

16 years agoUpdate man-page wrt supported query formatter types
Panu Matilainen [Thu, 18 Sep 2008 09:38:04 +0000 (12:38 +0300)]
Update man-page wrt supported query formatter types

16 years agoDon't segfault on unknown format specifiers
Panu Matilainen [Thu, 18 Sep 2008 09:36:31 +0000 (12:36 +0300)]
Don't segfault on unknown format specifiers

16 years agoAdd error message on query of unsupported files (rhbz#461362)
Panu Matilainen [Thu, 18 Sep 2008 09:15:43 +0000 (12:15 +0300)]
Add error message on query of unsupported files (rhbz#461362)

16 years agoRemove pointless non-NULL check
Panu Matilainen [Thu, 18 Sep 2008 08:39:42 +0000 (11:39 +0300)]
Remove pointless non-NULL check
- rpmfiNew() cannot return NULL, and even if it did, we'd be out of here
  by the way of rpmfiFC(fi) returning zero before this...

16 years agoSave some screen estate by initializing on declaration..
Panu Matilainen [Thu, 18 Sep 2008 08:29:58 +0000 (11:29 +0300)]
Save some screen estate by initializing on declaration..

16 years agoMore informative output on ambiguous erase (rhbz#164743)
Panu Matilainen [Thu, 18 Sep 2008 07:26:39 +0000 (10:26 +0300)]
More informative output on ambiguous erase (rhbz#164743)

16 years agoFix rpmErase() exit code when arch is specified (rhbz#462631)
Panu Matilainen [Thu, 18 Sep 2008 07:04:51 +0000 (10:04 +0300)]
Fix rpmErase() exit code when arch is specified (rhbz#462631)
- essentially the same bug as rhbz#124016 but for erase code
- rpmdbIteratorCount() isn't realiable on RPMDBI_LABEL, we need to walk
  the iterator to know if there were actual matches

16 years agoKick out double definitions of --(no)dirtokens options
Panu Matilainen [Tue, 16 Sep 2008 09:08:18 +0000 (12:08 +0300)]
Kick out double definitions of --(no)dirtokens options
- mistakenly added in commit 2f7c913723baa8135201fa930678d9e3d4138f2c

16 years agoResurrect --nodirtokens build option
Panu Matilainen [Tue, 16 Sep 2008 09:03:26 +0000 (12:03 +0300)]
Resurrect --nodirtokens build option
- this gets somewhat hysterical: we create the filelist as uncompressed,
  then compress it for rpmfi which only understands compressed filelist,
  and if nodirtokens is used, expand the list again after initializing
  rpmfi for cpio/fsm...

16 years agoAvoid asserts and output error instead (rhbz#448939, rhbz#456100)
Jindrich Novy [Mon, 15 Sep 2008 14:42:01 +0000 (16:42 +0200)]
Avoid asserts and output error instead (rhbz#448939, rhbz#456100)

16 years agoUse proper return codes in rpmfc.c
Jindrich Novy [Mon, 15 Sep 2008 14:37:32 +0000 (16:37 +0200)]
Use proper return codes in rpmfc.c

16 years agoUse proper return codes in files.c
Jindrich Novy [Mon, 15 Sep 2008 14:35:30 +0000 (16:35 +0200)]
Use proper return codes in files.c
- don't go on if processPackageFiles() or rpmfcGenerateDepends() fails

16 years agoheaderAddEntry() is deprecated, use headerPutString() instead
Panu Matilainen [Fri, 12 Sep 2008 12:22:02 +0000 (15:22 +0300)]
headerAddEntry() is deprecated, use headerPutString() instead

16 years agoMake sure RPMTAG_GROUP is always present in packages
Panu Matilainen [Fri, 12 Sep 2008 11:56:41 +0000 (14:56 +0300)]
Make sure RPMTAG_GROUP is always present in packages
- Many things (including LSB and various 3rd party applications) expect
  group tag to be present even if they don't actually use it for anything.
  rpmbuild doesn't consider it mandatory in specs anymore though, so stick
  "Unspecified" in there to avoid breaking things in case spec didn't set it.

16 years agoFix indentation
Panu Matilainen [Fri, 12 Sep 2008 08:38:07 +0000 (11:38 +0300)]
Fix indentation

16 years agoMacro argument handling regression regression (rhbz#461180)
Panu Matilainen [Thu, 11 Sep 2008 13:56:50 +0000 (16:56 +0300)]
Macro argument handling regression regression (rhbz#461180)
- commit f366011c42e4cf13d3acdd1af45127f0a1baec3a is too simplistic and
  broke other stuff in turn...

16 years agoDon't generate broken cpio in case of hardlink pointing on softlink
Jindrich Novy [Wed, 10 Sep 2008 13:04:57 +0000 (15:04 +0200)]
Don't generate broken cpio in case of hardlink pointing on softlink
- thanks to Pixel

16 years agoFail hard if patch isn't found (rhbz#461347)
Jindrich Novy [Sat, 6 Sep 2008 13:30:40 +0000 (15:30 +0200)]
Fail hard if patch isn't found (rhbz#461347)

16 years agoAdd Dutch translation to LINGUAS
Jindrich Novy [Thu, 4 Sep 2008 04:34:47 +0000 (06:34 +0200)]
Add Dutch translation to LINGUAS

16 years agoAdd initial Dutch translation (rhbz#461060)
Jindrich Novy [Thu, 4 Sep 2008 04:34:11 +0000 (06:34 +0200)]
Add initial Dutch translation (rhbz#461060)

16 years agoUpdated German translation from Fabian Affolter
Panu Matilainen [Tue, 2 Sep 2008 12:25:17 +0000 (15:25 +0300)]
Updated German translation from Fabian Affolter

16 years ago--repackage is gone, remove references from French manual too
Panu Matilainen [Tue, 2 Sep 2008 11:33:55 +0000 (14:33 +0300)]
--repackage is gone, remove references from French manual too

16 years agoUpdated French translation from man-pages-fr
Panu Matilainen [Tue, 2 Sep 2008 11:28:35 +0000 (14:28 +0300)]
Updated French translation from man-pages-fr

16 years agoFix --dump usage description in Japanese manpage translation.
Panu Matilainen [Tue, 2 Sep 2008 07:18:41 +0000 (10:18 +0300)]
Fix --dump usage description in Japanese manpage translation.
Patch from Masahiro Matsuya.

16 years agoAvoid dumb casts
Panu Matilainen [Wed, 20 Aug 2008 09:01:38 +0000 (12:01 +0300)]
Avoid dumb casts
- switch-case on rpmTag enum makes gcc go crazy without a default case

16 years agoCreate directory structure for rpmbuild prior to build if it doesn't exist
Jindrich Novy [Mon, 1 Sep 2008 12:35:34 +0000 (14:35 +0200)]
Create directory structure for rpmbuild prior to build if it doesn't exist
- creates all needed directories that rpmbuild uses for input and output

16 years agoCreate _topdir if it doesn't exist when installing SRPM
Jindrich Novy [Mon, 1 Sep 2008 12:31:33 +0000 (14:31 +0200)]
Create _topdir if it doesn't exist when installing SRPM
- otherwise creating _sourcedir and _specdir fails