platform/upstream/rpm.git
15 years agoHandle hook unregistering itself
Panu Matilainen [Fri, 26 Jun 2009 13:24:55 +0000 (16:24 +0300)]
Handle hook unregistering itself
(cherry picked from commit d3956140c2757a5929d4517cf54e5d9c06e11355)

15 years agoFix rpm.unregister() Lua extension
Panu Matilainen [Fri, 26 Jun 2009 13:07:50 +0000 (16:07 +0300)]
Fix rpm.unregister() Lua extension
- hook data is userdata, not light userdata
(cherry picked from commit d1b399761ffe554f3f3c4ced187c3b8ec58233fb)

15 years agoBase64-encode %policy files to ensure it can be presented as strings
Panu Matilainen [Fri, 26 Jun 2009 09:31:57 +0000 (12:31 +0300)]
Base64-encode %policy files to ensure it can be presented as strings
- RPMTAG_POLICIES is a string array but there's no guarantee that
  something marked %policy is a plaintext file that can be represented
  as \0-terminated string, base64-encoding them fixes that. Baby steps
  towards making %policy remotely usable, related to RhBug:505066.
- Also remove unnecessary failure code setting, processMetadataFile()
  assumes failure already, and dont try to insert NULL strings in case
  b64encode() or pgpArmorWrap() fails
(cherry picked from commit edbc9ead961fcbeb1733b47405041b653b521bcb)

15 years agoSimplify logging a bit
Panu Matilainen [Wed, 24 Jun 2009 12:16:25 +0000 (15:16 +0300)]
Simplify logging a bit
- precalculate the message length, relying on C99 vsnprintf() semantics
- generate the log message and rest of the record in rpmlog() already,
  and just pass the record to lower level to do actual logging
- also something was wrong in the old version as valgrind complained
  about illegal reads, that is also cured here
(cherry picked from commit 271069f90046994b005a469c80c2e150a41af9f3)

15 years agoTeach %files to accept multiple filelists (ticket #70, rhbz#475359)
Jindrich Novy [Tue, 23 Jun 2009 09:05:06 +0000 (11:05 +0200)]
Teach %files to accept multiple filelists (ticket #70, rhbz#475359)
(cherry picked from commit b02893092594b868296c5b3f58ab631e368bae1a)

15 years agoCheck arg in argvJoin() before dereferencing
Jindrich Novy [Tue, 23 Jun 2009 08:55:54 +0000 (10:55 +0200)]
Check arg in argvJoin() before dereferencing
(cherry picked from commit 194b6a5c2ab37753a143cd4d710bd09ccc0502e2)

15 years agoFix some typos in javadeps usage message (ticket #72)
Panu Matilainen [Tue, 23 Jun 2009 06:56:04 +0000 (09:56 +0300)]
Fix some typos in javadeps usage message (ticket #72)
(cherry picked from commit 0975d1e2c04718e290f868c77613640c044ce4f7)

15 years agoAdd -h/--help to rpm2cpio (ticket #63)
Panu Matilainen [Thu, 18 Jun 2009 11:52:45 +0000 (14:52 +0300)]
Add -h/--help to rpm2cpio (ticket #63)
- patch originally from Debian, with slight adjustments to indentation
(cherry picked from commit 6b6e82f8e9c11aeecbd47038a0c637ff5c8f8a1f)

15 years agoPile of OSGi dependency generator fixes from Alphonse Van Assche (ticket #39)
Panu Matilainen [Thu, 18 Jun 2009 10:06:42 +0000 (13:06 +0300)]
Pile of OSGi dependency generator fixes from Alphonse Van Assche (ticket #39)
- use Temp perl module to provide temp dir
- re-enable deps solving in Require-Bundle, Import-Package, Export-Package
  OSGI properties
- remove uses bundle of Export-Package OSGI property
- use RPM '>=' as version operator to match OSGI '='
- remove all .0 at the end of the version string
- typo fixes
(cherry picked from commit 7417cd283a3641ee62b282ae36c5d2d7df349d04)

15 years agoFix invalid memory access from freeing dirName too early
Panu Matilainen [Wed, 17 Jun 2009 10:09:25 +0000 (13:09 +0300)]
Fix invalid memory access from freeing dirName too early
- if it doesn't crash, it can cause rpmdb provided file not seen in chroot,
  the other half of RhBug:506323
- streamline exit points to enable freeing allocated resources sanely
(cherry picked from commit 0055fecfde5404c5106ac0fc58052e9264da8592)

15 years agoFix Segfault for to be installed symlinks pointing to existing locations
Florian Festi [Tue, 16 Jun 2009 15:37:40 +0000 (17:37 +0200)]
Fix Segfault for to be installed symlinks pointing to existing locations
fixes rhbz#505777
(cherry picked from commit 1b9e6d7f48a68fd677c70d04c9a6bb4274cf7b9f)

15 years agoAdd debugedit support for DWARF-3 (RhBug:505774)
Panu Matilainen [Tue, 16 Jun 2009 10:52:43 +0000 (13:52 +0300)]
Add debugedit support for DWARF-3 (RhBug:505774)
- patch from Jakub Jelinek
(cherry picked from commit 71a7dd8b7a2df677214c18473eac661ea38fb649)

15 years agoFix out of source directory build (ticket #65)
Panu Matilainen [Fri, 12 Jun 2009 05:52:38 +0000 (08:52 +0300)]
Fix out of source directory build (ticket #65)
(cherry picked from commit 8d79668a137e93b5b15613b6f8769d72df831fea)

15 years agoAdd parentheses (as kindly suggested by new gcc...)
Panu Matilainen [Fri, 12 Jun 2009 05:33:29 +0000 (08:33 +0300)]
Add parentheses (as kindly suggested by new gcc...)
(cherry picked from commit a86291ff774ff10277da4452fc47fc9870ccc991)

15 years agoMake peace with newer git
Panu Matilainen [Fri, 12 Jun 2009 05:29:02 +0000 (08:29 +0300)]
Make peace with newer git
(cherry picked from commit 17d66c47b181d9300dfc3813e8dd86d31c7b99a6)

15 years agoUnbreak isLegacyPreReq()
Panu Matilainen [Fri, 5 Jun 2009 11:56:49 +0000 (14:56 +0300)]
Unbreak isLegacyPreReq()
- long long time ago the PREREQ bit was also turned on for scriptlet
  dependencies etc, this is no longer the case so the old mask doesn't work
- build part is not affected by the mask change as we never set
  PREREQ bit by ourselves
(cherry picked from commit b22fa73fea6873dfc3816433e130820a5d9f33da)

15 years agoUpdated mailing list information.
Rakesh Pandit [Tue, 2 Jun 2009 05:13:59 +0000 (10:43 +0530)]
Updated mailing list information.
(cherry picked from commit 2d2aaebce79d0fd48b9fe82f61356f9e8190e915)

15 years agodepMsg doesn't need _notpre() anymore
Panu Matilainen [Mon, 1 Jun 2009 12:32:26 +0000 (15:32 +0300)]
depMsg doesn't need _notpre() anymore
(cherry picked from commit 27d1f56f2945c59b39668685090977c6c2635431)

15 years agoMap PreReq into Requires(pre,preun) at build
Panu Matilainen [Mon, 1 Jun 2009 10:28:50 +0000 (13:28 +0300)]
Map PreReq into Requires(pre,preun) at build
- this gives a more reasonable mapping to former behavior of PreReq
  when cutting loops
(cherry picked from commit 95c9e817ef6ed2cda5629f0c5edb6f7b19c209cf)

15 years agoDeal with multiple scriptlet dependency bits in deptype format extension
Panu Matilainen [Mon, 1 Jun 2009 09:53:08 +0000 (12:53 +0300)]
Deal with multiple scriptlet dependency bits in deptype format extension
- rpmbuild permits Requires(post,postun) style notation which gets lumped
  into single dependency, report them all
(cherry picked from commit 9c7bcba82ac3bbf792d6b86bcb45c60405b0db00)

15 years agoBring back former value of RPMSENSE_PREREQ
Panu Matilainen [Mon, 1 Jun 2009 09:42:07 +0000 (12:42 +0300)]
Bring back former value of RPMSENSE_PREREQ
- packages using the legacy PreReq still widely exist distros having
  patched PREREQ back in, we'll want to be able to deal with the legacy
  packages best we can, and to do that we need to be able to test for
  the prereq bit
- this also fixes ordering brokenness introduced by commit
  502f88e0e67bb1df91e09a32a370b04bda36259e all the way from 2004:
  with RPMSENSE_PREREQ equalling RPMSENSE_ANY, all co-requisites are seen
  as pre-requisites due to isLegacyPrefix() returning bogons (RhBug:502269)
- previously RPMSENSE_SCRIPT_PRE etc were also marked RPMSENSE_PREREQ to
  permit legacy rpm versions to deal the fine grained scriptlet dependencies
  somehow, this we dont want anymore
(cherry picked from commit 67bd81fb25a2a57adc97172cf426c475aea41612)

15 years agoAvoid filtering out erase pre-requisites on install
Panu Matilainen [Mon, 1 Jun 2009 07:39:07 +0000 (10:39 +0300)]
Avoid filtering out erase pre-requisites on install
- Requires(pre,preun) etc are recorded as a single dependency entry,
  so filter out dependencies that are only install pre-requisites
(cherry picked from commit f243eb7d004394176c64ff24b5a461deb54d866b)

15 years agoBuild prereq is exactly the same as buildrequires
Panu Matilainen [Fri, 29 May 2009 08:03:33 +0000 (11:03 +0300)]
Build prereq is exactly the same as buildrequires
(cherry picked from commit 03e456de4a0ea7d574a7aeb3aa41937e1b7d18ee)

15 years agoFix calculation of hardlinked files (RhBug:503020)
Panu Matilainen [Fri, 29 May 2009 06:02:44 +0000 (09:02 +0300)]
Fix calculation of hardlinked files (RhBug:503020)
- regression from commit 899dfb58927ec6e91014773430824462f4d0002e,
  size of hardlinked file set is the size of one file of the set
- add isHardLink() internal helper to avoid a copy-paste code
(cherry picked from commit cdfd0934841d4eccc26d7da7c35b23e6e9f76a9c)

15 years agoDon't mess up problem altNEVR in python ts.check() (rhbz#501068)
Panu Matilainen [Tue, 19 May 2009 07:26:50 +0000 (10:26 +0300)]
Don't mess up problem altNEVR in python ts.check() (rhbz#501068)
- the use of strrchr() silently casts away the const from the problem
  set altNEVR string, which we then happily modify..
- similar to commit 62cc76e25cdfad78ac30bb28f626b474efdecddc
(cherry picked from commit 9322f737819a3d81088699b1d7fa667259245411)

15 years agoReally updated Portugese Brazilian translation (Igor Pires Soares)
Panu Matilainen [Tue, 12 May 2009 07:38:36 +0000 (10:38 +0300)]
Really updated Portugese Brazilian translation (Igor Pires Soares)
- commit 5384a45d5a2b3fb4e46c1c1748230fac4646233c is Spanish translation
  update from Domingo Becker, oops...

15 years agoUpdated Portugese Brazilian translation (Igor Pires Soares)
Panu Matilainen [Tue, 12 May 2009 07:31:41 +0000 (10:31 +0300)]
Updated Portugese Brazilian translation (Igor Pires Soares)

15 years agoMinor fix to Japanese translation (Masaki Furuta)
Panu Matilainen [Fri, 8 May 2009 12:22:25 +0000 (15:22 +0300)]
Minor fix to Japanese translation (Masaki Furuta)
(cherry picked from commit d295d14cd0fbce33ec778ef3b07a95269a4f8bfe)

15 years agoDont bother generation rpmds debug messages unless in debug mode
Panu Matilainen [Thu, 7 May 2009 11:31:57 +0000 (14:31 +0300)]
Dont bother generation rpmds debug messages unless in debug mode
- rpmdsNotify() which does nothing but generate RPMLOG_DEBUG messages
  gets called often enough that avoiding the unnecessary
  rpmlog() and strcmp() calls is easily visible in wallclock times
(cherry picked from commit acd93ee570990ba3f549947dfe67a7d362f7c70d)

15 years agoHide NSS peculiarities from API
Panu Matilainen [Thu, 23 Apr 2009 12:54:09 +0000 (15:54 +0300)]
Hide NSS peculiarities from API
- PKCS#11 standard requires modules to be re-initialized after fork(),
  arrange this to occur automatically.
- Most of the time child processes will exec() something else so dont
  bother shutting down NSS for every child, only lazily re-initialize
  as needed.
- This lets us initialize NSS early to force preloading of its dlopen()'ed
  libraries to avoid issues on chroot(), without causing problems to API
  users which fork() after initializing rpm (such as func, urpmi etc).
(cherry picked from commit 2ce7b56e621b097b76a2e5059def7d0e5a64d53b)

15 years agoFix --with-kde with KDE3 (rhbz#466009).
Ville Skyttä [Sun, 12 Apr 2009 18:39:50 +0000 (21:39 +0300)]
Fix --with-kde with KDE3 (rhbz#466009).
(cherry picked from commit acfe923bf21a4402a48b6e357a53a398b107f0b3)

15 years agoFix a few file permissions from "make install"
Panu Matilainen [Sat, 18 Apr 2009 11:31:48 +0000 (14:31 +0300)]
Fix a few file permissions from "make install"
- macros.perl, logrotate examples etc aren't scripts and shouldn't be
  executable. Ditto for python __init__.py
(cherry picked from commit 8a3e9a74e363f530ed2b7fee0672477f69c3c661)

15 years agoFix parsing of pubkey signature packets. Ick.
Panu Matilainen [Fri, 8 May 2009 12:01:15 +0000 (15:01 +0300)]
Fix parsing of pubkey signature packets. Ick.
- busted all the way from commit bcb226480d0b60a8667eade77d81c29de4c3d6c9
(cherry picked from commit 5023d0a4e84e2877e3c715b57bd362f95f12ef06)

15 years agoPreparing for rpm-4.7.0 final rpm-4.7.0
Panu Matilainen [Thu, 16 Apr 2009 08:16:58 +0000 (11:16 +0300)]
Preparing for rpm-4.7.0 final

15 years agoPad RSA signatures up to modulus size if necessary (rhbz#494049)
Panu Matilainen [Thu, 16 Apr 2009 08:08:25 +0000 (11:08 +0300)]
Pad RSA signatures up to modulus size if necessary (rhbz#494049)
- unfortunately can't be detected at initial allocation so extra
  copy is needed at verification time
- this is commit 4c39a9df93c962c69e23ff48789cb950a105a44b backported

15 years agoCheck for termination signals during signing / signature checking loop
Panu Matilainen [Tue, 14 Apr 2009 07:42:20 +0000 (10:42 +0300)]
Check for termination signals during signing / signature checking loop
(cherry picked from commit fb19a98fa0ca1c152e1bd22322f5fd1350a48eb6)

15 years agoError out at build on unsupported payload compressors (rhbz#495429)
Panu Matilainen [Mon, 13 Apr 2009 10:58:39 +0000 (13:58 +0300)]
Error out at build on unsupported payload compressors (rhbz#495429)
- only permit bzip2/lzma/xz payload compression if rpm built with the
  necessary libraries
(cherry picked from commit 0f967d157d3a02696898f848f4cd584e646b264f)

15 years agoUpdated Polish translation (Piotr Drąg)
Panu Matilainen [Thu, 9 Apr 2009 13:15:59 +0000 (16:15 +0300)]
Updated Polish translation (Piotr Drąg)

15 years agoPreparing for rpm-4.7.0-rc1 rpm-4.7.0-rc1
Panu Matilainen [Thu, 9 Apr 2009 11:28:32 +0000 (14:28 +0300)]
Preparing for rpm-4.7.0-rc1

15 years agoUpdated Spanish translation (Oscar Bacho)
Panu Matilainen [Thu, 9 Apr 2009 11:25:35 +0000 (14:25 +0300)]
Updated Spanish translation (Oscar Bacho)

15 years agoUpdated Serbian translations (Milos Komarcevic)
Panu Matilainen [Thu, 9 Apr 2009 11:24:51 +0000 (14:24 +0300)]
Updated Serbian translations (Milos Komarcevic)

15 years agoUpdated Catalan translation (Xavier Conde)
Panu Matilainen [Thu, 9 Apr 2009 11:22:05 +0000 (14:22 +0300)]
Updated Catalan translation (Xavier Conde)

15 years agoMake it clearer that PACKAGE_FILE logic applies to all -F, -U, and -i.
Ville Skyttä [Mon, 6 Apr 2009 20:08:15 +0000 (23:08 +0300)]
Make it clearer that PACKAGE_FILE logic applies to all -F, -U, and -i.
(cherry picked from commit 0f29cc7f2781cdcedab9c8a03786d45f14fc316b)

15 years agoRemove obsolete info about --buildarch and --buildos.
Ville Skyttä [Mon, 6 Apr 2009 20:00:56 +0000 (23:00 +0300)]
Remove obsolete info about --buildarch and --buildos.
(cherry picked from commit 48580a70bc7372d1227f07f3377f9c253e492385)

15 years agoFix PGP v4 fingerprint calculation (rhbz#493777)
Panu Matilainen [Thu, 9 Apr 2009 10:05:00 +0000 (13:05 +0300)]
Fix PGP v4 fingerprint calculation (rhbz#493777)
- patch from openSUSE / Michael Schroeder
(cherry picked from commit 7a8aecbc8651cab2bd945db8ffd749f9a165bdf1)

15 years agoDon't allow '~', '/' characters and ".." sequence in NVR (rhbz#493157)
Jindrich Novy [Mon, 6 Apr 2009 08:20:47 +0000 (10:20 +0200)]
Don't allow '~',  '/' characters and ".." sequence in NVR (rhbz#493157)
(cherry picked from commit 37a35d07211b612429fef6614888f5fa099dd27b)

15 years agoFixup Polish translation HEAD vs 4.7.x difference
Panu Matilainen [Fri, 3 Apr 2009 11:41:50 +0000 (14:41 +0300)]
Fixup Polish translation HEAD vs 4.7.x difference

15 years agoMake sure installed files have state (rhbz#492947)
Panu Matilainen [Fri, 3 Apr 2009 07:28:59 +0000 (10:28 +0300)]
Make sure installed files have state (rhbz#492947)
- rpmfsSetState() doesn't get called for skipped files like %ghost and
  %config(noreplace), causing incorrect file state ("no state") getting
  recorded in rpmdb, leading to inapproriate removal/rename on erase, ick
- For TR_ADDED, always default file states to RPMFILE_STATE_NORMAL, fsm
  changes it as necessary for skipped colors and such. Lazy alloc on
  rpmfsSetState() is not correct as rpmfsSetState() might not get called
  at all.
- originally broken by commit 8d6c4b8c95b59f5a71d90c582c2e98f5c7ed7b9d
(cherry picked from commit c40f6d5dcabfe0b68b830d96b01eaedac0b2d18d)

15 years agoUse -mtune instead of -mcpu (rhbz#493696)
Jindrich Novy [Thu, 2 Apr 2009 18:49:48 +0000 (20:49 +0200)]
Use -mtune instead of -mcpu (rhbz#493696)
(cherry picked from commit 4c23ebdb81d8e8a00ccf7e92d7e3788081b2f57d)

15 years agoPrefer more specific types over generic "text" in classification (rhbz#491349)
Panu Matilainen [Tue, 31 Mar 2009 10:14:08 +0000 (13:14 +0300)]
Prefer more specific types over generic "text" in classification (rhbz#491349)
(cherry picked from commit e38cbe5b4e7bfa9c7b10e3926093b6887d97d6a1)

15 years agoHandle XZ in %uncompress macro
Panu Matilainen [Fri, 27 Mar 2009 12:11:43 +0000 (14:11 +0200)]
Handle XZ in %uncompress macro
- should've been in commit 8078d0ba24662308b10d9eb0f0da978584b7e757
(cherry picked from commit 3d63df622037796279514a4da3ddc6807a102c1d)

15 years agoRip the macro default settings in rpmrc setDefaults()
Panu Matilainen [Fri, 27 Mar 2009 12:08:56 +0000 (14:08 +0200)]
Rip the macro default settings in rpmrc setDefaults()
- these get nuked and not reloaded on package builds
- rpm(build) needs a properly set up macros file in any case
(cherry picked from commit a3922760832ec4329f1426a54012b28cf387b5f5)

15 years agoAdd built-in %getconfdir macro for getting rpmConfigDir() value
Panu Matilainen [Fri, 27 Mar 2009 12:01:47 +0000 (14:01 +0200)]
Add built-in %getconfdir macro for getting rpmConfigDir() value
- define %_rpmconfigdir via %getconfdir in the main macro config, this
  avoids it getting lost on macro reloads as happens when building
  several packages at once
(cherry picked from commit 2d2bda29c159f16689c05fd4dda20a3f70597e1d)

15 years agoPlug minor memleak from default rc and macro file paths
Panu Matilainen [Fri, 27 Mar 2009 11:45:08 +0000 (13:45 +0200)]
Plug minor memleak from default rc and macro file paths
- build code can call these several times, only init once
(cherry picked from commit a5eeff6d42d6452a85942f89a6b3a1196ccc47bc)

15 years agoPlug minor memleak from rpmGetCwd() on build
Panu Matilainen [Fri, 27 Mar 2009 11:44:46 +0000 (13:44 +0200)]
Plug minor memleak from rpmGetCwd() on build
(cherry picked from commit b2e85dae836e9695e4ef3e83c819b3523ae81634)

15 years agoEliminate pointless xstrdup()'s, the strings are never modified
Panu Matilainen [Thu, 26 Mar 2009 13:31:10 +0000 (15:31 +0200)]
Eliminate pointless xstrdup()'s, the strings are never modified
(cherry picked from commit a17b3b68f2c2320cd81e285e02c05ab881ad07fd)

15 years agoprocess the "./" in file paths correctly (rhbz#491388)
Jindrich Novy [Wed, 25 Mar 2009 16:28:24 +0000 (17:28 +0100)]
process the "./" in file paths correctly (rhbz#491388)
(cherry picked from commit 4d31b0433f3f804f81955c32e63c93f31506e8ad)

15 years agoShow query/verify selection options just once in --help
Panu Matilainen [Thu, 19 Mar 2009 14:07:18 +0000 (16:07 +0200)]
Show query/verify selection options just once in --help
(cherry picked from commit 2e672f3fae9d8ff7ee64ae13cfa2fe65272c2ede)

15 years agoPython doesn't need libelf, nss or popt directly
Panu Matilainen [Thu, 19 Mar 2009 12:56:45 +0000 (14:56 +0200)]
Python doesn't need libelf, nss or popt directly
(cherry picked from commit 46f1247a276a66561b49f97364558bf8f89d2354)

15 years agolibrpmio doesn't need libmagic for anything
Panu Matilainen [Thu, 19 Mar 2009 12:41:43 +0000 (14:41 +0200)]
librpmio doesn't need libmagic for anything
(cherry picked from commit 1df4d34fb97cd25134a89c06386b55dc98aa92f6)

15 years agoMove leftover signature stuff from rpmlib.h to signature.h
Panu Matilainen [Tue, 17 Mar 2009 14:33:12 +0000 (16:33 +0200)]
Move leftover signature stuff from rpmlib.h to signature.h
- these aren't really usable or useful outside rpm, and even less so
  as all the rest of the signature stuff is in a private header too
(cherry picked from commit fd2658ec8434768f75a6b6d007f7df5415f44004)

15 years agoDon't try to parse %patch on spec query (rhbz#487855)
Panu Matilainen [Wed, 18 Mar 2009 12:53:34 +0000 (14:53 +0200)]
Don't try to parse %patch on spec query (rhbz#487855)
(cherry picked from commit 54b027535f95fea9088f2cd12ed765fddb20c5c1)

15 years agoDoxygen parameter name mismatch
Panu Matilainen [Wed, 18 Mar 2009 09:57:16 +0000 (11:57 +0200)]
Doxygen parameter name mismatch
(cherry picked from commit b187977fee788888007409465c7efa644d20ddef)

15 years agoAdd support for "lzma alone" compression format (lzdio)
Panu Matilainen [Wed, 18 Mar 2009 09:24:52 +0000 (11:24 +0200)]
Add support for "lzma alone" compression format (lzdio)
- "lzma alone" is superseeded by XZ but it's used by Suse and Mandriva
  distros so it's nice to have as it doesn't need much, only open differs
  from XZ
- rpmlib() dependency versions are an uuuuuuuugly mess here: Suse used
  "PayloadIsLzma = 4.4.2-1" so that's what we provide to be most compatible
  (hopefully). Built packages require "PayloadIsLzma <= 4.4.6-1" however
  to be compatible with Mandriva 2008.0. Did I already say it's ugly?
- Based on similar patch in Mandriva by Per Øyvind Karlsen, but avoiding
  unnecessary renames in rpmio
(cherry picked from commit fa0898552d3c52249bc41e8104eda02c1bbd3359)

15 years agoLZMA -> XZ renaming
Panu Matilainen [Wed, 18 Mar 2009 07:42:23 +0000 (09:42 +0200)]
LZMA -> XZ renaming
- what we support now in payloads is XZ, not the former LZMA format, rename
  user- and header-visible parts to match this
- rpmlib(PayloadIsXz) dependency versioned 5.2-1 to avoid unnecessary
  incompatibility with what rpm5 has and what Mandriva is already using
- only provide the rpmlib dependency if actually built with xz support
- rpmFileIsCompressed() attempts to guess the magicless old lzma format
  by file suffix, so it can handle both right now
(cherry picked from commit 8078d0ba24662308b10d9eb0f0da978584b7e757)

15 years agoFree all keys not only those on the first buckets
Florian Festi [Sat, 14 Mar 2009 18:12:43 +0000 (19:12 +0100)]
Free all keys not only those on the first buckets
 - Thanks to Alexey Tourbin for pointing that out!
(cherry picked from commit c769eb0244294c0a9ac002bd7ecd06bddc4cd3ae)

15 years agoCatch exceptions from python conversions in dbMatch()
Panu Matilainen [Fri, 13 Mar 2009 06:55:53 +0000 (08:55 +0200)]
Catch exceptions from python conversions in dbMatch()
- Prior to this, string conversion (eg on unicode object) could fall
  through to rpmtsInitIterator() with key of NULL, matching everything
  and only much later spitting out an obscure traceback. PyInt_FromLong()
  can fail too, causing us to look for bogons.
(cherry picked from commit 9317ebc83f611075874713a1099b1f5aa14c969c)

15 years agoSilence compiler whining on rpmsort and rpminject
Panu Matilainen [Thu, 12 Mar 2009 07:54:31 +0000 (09:54 +0200)]
Silence compiler whining on rpmsort and rpminject
(cherry picked from commit c1180e3c4334b850d50f618f59de09a9ea06a025)

15 years agoPlug a memleak in genCpioListAndHeader()
Panu Matilainen [Wed, 11 Mar 2009 19:43:44 +0000 (21:43 +0200)]
Plug a memleak in genCpioListAndHeader()
(cherry picked from commit 23d202e928d4af945765e501ee8fc7bd0614510e)

15 years agoNSS supports MD2, we might as well handle it too
Panu Matilainen [Wed, 11 Mar 2009 19:41:57 +0000 (21:41 +0200)]
NSS supports MD2, we might as well handle it too
- also getHashType() is a "pure" function, mark it as such
(cherry picked from commit 4cf26d30f8a066f855117d1661b23521e6eed647)

15 years agoFix memleak on signature checking failure
Panu Matilainen [Tue, 10 Mar 2009 09:03:08 +0000 (11:03 +0200)]
Fix memleak on signature checking failure
- early exit from header iteration loop could previously leak from unfreed
  buf and header iterator
(cherry picked from commit 05e16d415492f4925782e3fcf6ef155cbdf124c3)

15 years agoEliminate pointless {} block inflating indentation level
Panu Matilainen [Tue, 10 Mar 2009 09:01:32 +0000 (11:01 +0200)]
Eliminate pointless {} block inflating indentation level
- no functional changes
(cherry picked from commit 493913ed415acf8be26b13a785a9615ba5cb6981)

15 years agoDon't return data from headerGet() on regionSwab() failure
Panu Matilainen [Tue, 10 Mar 2009 08:17:13 +0000 (10:17 +0200)]
Don't return data from headerGet() on regionSwab() failure
- callers dont expect to free data if headerGet() returns failure,
  leaking memory
(cherry picked from commit 65f3e55d3592da8fb482b5344a28013029199115)

15 years agoPort XZ payload compression to xz-4.999.8 API
Jindrich Novy [Mon, 9 Mar 2009 19:19:37 +0000 (20:19 +0100)]
Port XZ payload compression to xz-4.999.8 API
- use SHA256 digests for archive error detection
- use 100MiB peak memory usage for decoding
- use better XZ detection in configure.ac
(cherry picked from commit 74c9a96c3c68de6376ee543d494a97c0f133bfaf)

15 years agoAdd test for _install_lang and status
Panu Matilainen [Mon, 9 Mar 2009 14:44:47 +0000 (16:44 +0200)]
Add test for _install_lang and status
(cherry picked from commit f70830356fd239d66e1aece81973ebc077acbe6e)

15 years agoRevert couple of checksum -> digest renames
Panu Matilainen [Thu, 19 Mar 2009 08:15:49 +0000 (10:15 +0200)]
Revert couple of checksum -> digest renames
- physical cpio header and elf header have checksums, not digests
  (from commit 7acdfded4a82e86a673418c3953aa6bf8106d313)
- doesn't affect functionality though
(cherry picked from commit 298c919c00ffbc6ea988545092b02af5384bd7a4)

15 years agoFix documentation and help for the md5 -> filedigest move
Jindrich Novy [Mon, 2 Mar 2009 09:29:05 +0000 (10:29 +0100)]
Fix documentation and help for the md5 -> filedigest move
- add aliases for obsolete {RPM}VERIFY_MD5 flags to
  not to break API
(cherry picked from commit c45cfb9c047b05ca29acb8d42186e97e17204e27)

15 years agoAdd md5->filedigest aliases (rhbz#487597)
Jindrich Novy [Fri, 27 Feb 2009 13:34:39 +0000 (14:34 +0100)]
Add md5->filedigest aliases (rhbz#487597)
- add %verify(nofiledigest) as %verify(nomd5) file attribute alias
- reference digests as digests not checksums
- make old md5 related symbols obsolete and use newer reference
- update man page accordingly
(cherry picked from commit 7acdfded4a82e86a673418c3953aa6bf8106d313)

15 years ago Polish translation update (Piotr Drąg)
Panu Matilainen [Wed, 1 Apr 2009 10:04:19 +0000 (13:04 +0300)]
 Polish translation update (Piotr Drąg)

15 years agoUnbreak %_install_langs handling (rhbz#489235)
Panu Matilainen [Mon, 9 Mar 2009 12:57:46 +0000 (14:57 +0200)]
Unbreak %_install_langs handling (rhbz#489235)
- using rpmfiFLangs() in skipFiles() broke the %_install_langs logic,
  causing all files to be skipped if install langs, eek
(cherry picked from commit cdcbd324fe41cd729434576200593c0fbda44a19)

15 years agoFix RPMTAG_FILESTATES in rpmdb
Panu Matilainen [Mon, 9 Mar 2009 12:48:47 +0000 (14:48 +0200)]
Fix RPMTAG_FILESTATES in rpmdb
- sizeof(rpmfileState) != sizeof(char), and char is what goes to headers
  resulting in some pretty weird states despite being correct on disk
- add rpm_fstate_t type for the header presentation of states and
  use where appropriate
(cherry picked from commit 2b4507d852ac8469608bef2ce8e219d76b0c543e)

15 years agoInitialize on declaration, cosmetics only...
Panu Matilainen [Sun, 8 Mar 2009 15:38:49 +0000 (17:38 +0200)]
Initialize on declaration, cosmetics only...

15 years agoDont bother retrieving colors unless actually needed
Panu Matilainen [Sun, 8 Mar 2009 15:36:39 +0000 (17:36 +0200)]
Dont bother retrieving colors unless actually needed

15 years agoDont bother retrieving ts problem set unless actually needed
Panu Matilainen [Sun, 8 Mar 2009 15:28:17 +0000 (17:28 +0200)]
Dont bother retrieving ts problem set unless actually needed

15 years agoDont bother retrieving altNEVR unless actually needed
Panu Matilainen [Sun, 8 Mar 2009 15:25:45 +0000 (17:25 +0200)]
Dont bother retrieving altNEVR unless actually needed

15 years agoLoad macros before creating directories (rhbz#489104)
Panu Matilainen [Sun, 8 Mar 2009 09:33:22 +0000 (11:33 +0200)]
Load macros before creating directories (rhbz#489104)
- %_sourcedir and friends can have things like %{name}, load macros
  before trying to create any directories when installing src.rpms
(cherry picked from commit ac7c3412278a03da6633758bca999827d4b59038)

15 years agoDocument libcap, libacl in INSTALL
Panu Matilainen [Fri, 6 Mar 2009 11:43:17 +0000 (13:43 +0200)]
Document libcap, libacl in INSTALL
(cherry picked from commit e9cc481202429ed06b2b0b14cb1b1065df6c8ba7)

15 years agoDont leak memory from hdrmd5ctx
Panu Matilainen [Wed, 4 Mar 2009 11:41:27 +0000 (13:41 +0200)]
Dont leak memory from hdrmd5ctx
(cherry picked from commit 5cb107b843797307e2a0d21018707bd893222fe5)

15 years agoHandle V4 signature trailer for RSA too (ticket #34)
Panu Matilainen [Wed, 4 Mar 2009 11:08:30 +0000 (13:08 +0200)]
Handle V4 signature trailer for RSA too (ticket #34)
(cherry picked from commit d50db40ceed7083467f7b548da7b2fbe96aaec61)

15 years agoAdd ISA bits for alpha (Oliver Falk)
Panu Matilainen [Tue, 3 Mar 2009 06:48:12 +0000 (08:48 +0200)]
Add ISA bits for alpha (Oliver Falk)
(cherry picked from commit d39a6c7de51c0d01ce69ee1f464b94ca70309751)

15 years agoMissing test material to tarballs, oops
Panu Matilainen [Thu, 26 Feb 2009 19:48:06 +0000 (21:48 +0200)]
Missing test material to tarballs, oops
(cherry picked from commit 299a7af7a8acc0fa4979d71dfaebe87658ee0c1d)

15 years agoPreparing for rpm 4.7.0-beta1 rpm-4.7.0-beta1
Panu Matilainen [Thu, 26 Feb 2009 15:17:52 +0000 (17:17 +0200)]
Preparing for rpm 4.7.0-beta1

15 years agoPermit python bytecompile to fail for now
Panu Matilainen [Thu, 26 Feb 2009 15:07:39 +0000 (17:07 +0200)]
Permit python bytecompile to fail for now
- various things like python templates in packages, jython code etc
  blow up on the syntax checking, only warn instead of failing the build
  until parametrized with a spec override possibility

15 years agoHonor --nomanifest on install too
Panu Matilainen [Thu, 26 Feb 2009 14:38:10 +0000 (16:38 +0200)]
Honor --nomanifest on install too
- bit of a kludge but works.. and fixes test case 39

15 years agoSwitch to libtool versioning, starting at 0:0:0
Panu Matilainen [Thu, 26 Feb 2009 14:09:51 +0000 (16:09 +0200)]
Switch to libtool versioning, starting at 0:0:0

15 years agoHandle empty argv passed to rpmdsDupArgv()
Panu Matilainen [Thu, 26 Feb 2009 08:49:38 +0000 (10:49 +0200)]
Handle empty argv passed to rpmdsDupArgv()
- same as 94552b96256c3620b4be407c501d0d926c081963, apt-rpm expects to
  pass empty version as NULL to rpmdsSingle()

15 years agoClean up runTransScripts() a bit
Panu Matilainen [Tue, 24 Feb 2009 12:24:40 +0000 (14:24 +0200)]
Clean up runTransScripts() a bit
- move progtag figuring out of the loop, and return with error code
  instead of asserting on invalid tag

15 years agoSingle point of exit from rpmtsRun()
Panu Matilainen [Tue, 24 Feb 2009 11:55:27 +0000 (13:55 +0200)]
Single point of exit from rpmtsRun()

15 years agoSplit initialization of flags etc out of rpmtsRun()
Panu Matilainen [Tue, 24 Feb 2009 11:41:18 +0000 (13:41 +0200)]
Split initialization of flags etc out of rpmtsRun()

15 years agoFormatting cosmetics only
Panu Matilainen [Tue, 24 Feb 2009 10:35:21 +0000 (12:35 +0200)]
Formatting cosmetics only