platform/upstream/rpm.git
15 years agoPreparing for 4.6.0-rc4, take two rpm-4.6.0-rc4
Panu Matilainen [Fri, 30 Jan 2009 09:32:10 +0000 (11:32 +0200)]
Preparing for 4.6.0-rc4, take two

15 years agoTry to play nice with OpenPKG (rpm5.org) packages (rhbz#478907)
Panu Matilainen [Fri, 30 Jan 2009 06:28:57 +0000 (08:28 +0200)]
Try to play nice with OpenPKG (rpm5.org) packages (rhbz#478907)
- rpm5.org writes populates lead with partially bogus data, but
  does have explicit RPMTAG_SOURCEPACKAGE for srpms, dont think of them
  as binaries
- switches around the lead check in 50a4ed783c300a92948f7933a3c726d4bd2d643d
  to look at source type explicitly and retrofit RPMTAG_SOURCEPACKAGE
  for srpms early, this lets binaries without RPMTAG_SOURCERPM
  (which is documented as "information only") and with explicit
  RPMTAG_SOURCEPACKAGE be identified correctly
(cherry picked from commit 64335052e35836168f18e190da464b8c2abe0373)

15 years agoUpdated Swedish translation (Göran Uddeborg)
Panu Matilainen [Fri, 30 Jan 2009 07:22:58 +0000 (09:22 +0200)]
Updated Swedish translation (Göran Uddeborg)

15 years agoDon't throw away modified config files on cross-hash upgrades (rhbz#479869)
Panu Matilainen [Wed, 28 Jan 2009 14:34:06 +0000 (16:34 +0200)]
Don't throw away modified config files on cross-hash upgrades (rhbz#479869)
- different digest types can't be compared, take a backup to avoid
  data loss
- Patch from Miloslav Trmac
(cherry picked from commit dbc1f4ccf66451568a0a6b6ffd4252475a30b341)

15 years agoAdd RPMTAG_SOURCERPM to gpg-pubkeys in rpmdb
Panu Matilainen [Tue, 27 Jan 2009 12:21:40 +0000 (14:21 +0200)]
Add RPMTAG_SOURCERPM to gpg-pubkeys in rpmdb
- ptooey, but otherwise gpg-pubkey "packages" are considered source packages,
  thanks to Ville Skyttä for pointing this out
(cherry picked from commit fe846402a45dc1ceadf3a7538071b40b0fd70a60)

15 years agoAdded ARMv7 architecture support
Alexandr D. Kanevskiy [Fri, 23 Jan 2009 22:18:34 +0000 (00:18 +0200)]
Added ARMv7 architecture support
(cherry picked from commit d55660aaf0dbf86a73e58479a47055c9e6e8bbab)

15 years agoUpdate dbi tag names for Filemd5s -> Filedigests change, oops..
Panu Matilainen [Fri, 23 Jan 2009 08:08:53 +0000 (10:08 +0200)]
Update dbi tag names for Filemd5s -> Filedigests change, oops..
(cherry picked from commit abe5f4abac7a282a15de5325954c3a09893769c9)

15 years agoReturn NULL instead of blowing up on invalid rpmpsGetProblem()
Panu Matilainen [Thu, 22 Jan 2009 10:09:45 +0000 (12:09 +0200)]
Return NULL instead of blowing up on invalid rpmpsGetProblem()
- thanks to Pixel for spotting
(cherry picked from commit 111efde99a42c8841fa50d682fd340c73c00268b)

15 years agorpmdsMerge() expects ds->N and ds->EVR as argv-style arrays (ticket #22)
Panu Matilainen [Tue, 20 Jan 2009 10:55:35 +0000 (12:55 +0200)]
rpmdsMerge() expects ds->N and ds->EVR as argv-style arrays (ticket #22)
- use rpmdsDupArgv() instead of cloning headerGet() behavior to fix this for
  rpmdsSingle() and rpmdsThis() generated dependency sets
- this is a regression from rpm 4.4.x, but for rpmdsNew() created sets
  rpmdsMerge() has never worked as headerGet() doesn't return NULL
  terminated arrays
(cherry picked from commit a46dd884ec348b3ce23b9f53302e6626a90ae631)

15 years agoPreparing from rpm 4.6.0-rc4
Panu Matilainen [Mon, 19 Jan 2009 13:10:11 +0000 (15:10 +0200)]
Preparing from rpm 4.6.0-rc4

15 years agoUpdate / clarify documentation on building API/hacking docs
Panu Matilainen [Mon, 19 Jan 2009 12:50:18 +0000 (14:50 +0200)]
Update / clarify documentation on building API/hacking docs
(cherry picked from commit 6bd713ab319514d655d0466330a246703a7c16ae)

15 years agoDon't segfault on "" rcfiles argument (spotted by Pixel)
Panu Matilainen [Mon, 19 Jan 2009 12:37:09 +0000 (14:37 +0200)]
Don't segfault on "" rcfiles argument (spotted by Pixel)
(cherry picked from commit 479a4a9d75a1973247f1a937228ec96479f88c31)

15 years agoUse temporary table for Depends DB in sqlite too (Olivier Thauvin)
Panu Matilainen [Mon, 19 Jan 2009 12:27:39 +0000 (14:27 +0200)]
Use temporary table for Depends DB in sqlite too (Olivier Thauvin)
(cherry picked from commit b4bb89603844699754695e9f1484779e758060f3)

15 years agoFix segfault if ts rootdir is NULL (Pixel)
Panu Matilainen [Mon, 19 Jan 2009 13:04:32 +0000 (15:04 +0200)]
Fix segfault if ts rootdir is NULL (Pixel)
- backport of 2a20195616ad366f060bea772342a99b96735205

15 years agoFix memleak from i18n strings if retrieved with HEADERGET_ALLOC
Panu Matilainen [Mon, 19 Jan 2009 12:21:45 +0000 (14:21 +0200)]
Fix memleak from i18n strings if retrieved with HEADERGET_ALLOC
(cherry picked from commit ffcd6a60fc38dfe0d10f22c6023df3e932996310)

15 years agoMake it possible to disable %pre- and %posttrans scriptlets (rhbz#475582)
Panu Matilainen [Sat, 17 Jan 2009 12:15:50 +0000 (14:15 +0200)]
Make it possible to disable %pre- and %posttrans scriptlets (rhbz#475582)
- rpmtransFlags_e is overcrowded, map to "regular" %pre and %post
  scriptlet behavior for now
- split up the transaction flags at some point to permit more precise
  control
(cherry picked from commit 0b2d7775c5e828652e45829f551352b93890bbc8)

15 years agoDon't try to create "" directories
Panu Matilainen [Fri, 9 Jan 2009 13:05:40 +0000 (15:05 +0200)]
Don't try to create "" directories
(cherry picked from commit 6e816c44dc70197477845de924b9d58f35d01e6c)

15 years agojavadeps format string fix from Pixel
Panu Matilainen [Fri, 9 Jan 2009 15:13:19 +0000 (17:13 +0200)]
javadeps format string fix from Pixel
(cherry picked from commit 83e5726aadf1ca9111f3cf61130b2be9e3ea4c29)

15 years agoFix buffer overflow on oversized filelist entries (susebz#397006)
Panu Matilainen [Fri, 9 Jan 2009 14:59:43 +0000 (16:59 +0200)]
Fix buffer overflow on oversized filelist entries (susebz#397006)
- original fix by Dirk Mueller
(cherry picked from commit 00d48deffecb109c1dcfff2ee9c9a27ca412a16f)

15 years agoActually check for dbenv->failchk() exit code
Panu Matilainen [Wed, 14 Jan 2009 08:52:41 +0000 (10:52 +0200)]
Actually check for dbenv->failchk() exit code
- failchk() can't resolve all cases, we shouldn't try to continue if it fails
(cherry picked from commit 11c6c2b00454c68dba6cd17600bb7f8e1acada99)

15 years agoUpdate docs wrt gpg path macro (rhbz#476201)
Panu Matilainen [Thu, 8 Jan 2009 13:04:58 +0000 (15:04 +0200)]
Update docs wrt gpg path macro (rhbz#476201)
(cherry picked from commit b7ba50c3a5ab54a142d6616f1f4029c475f23cf5)

15 years agoDon't bother translators with messages from unused utilities (rhbz#466834)
Panu Matilainen [Thu, 8 Jan 2009 11:57:59 +0000 (13:57 +0200)]
Don't bother translators with messages from unused utilities (rhbz#466834)
- these things dont even get built normally, translations hardly needed
(cherry picked from commit 685361038e87d321bd0f0d1451471df923ce667b)

15 years agoDelay NSS initialization until actually used
Panu Matilainen [Thu, 8 Jan 2009 11:17:22 +0000 (13:17 +0200)]
Delay NSS initialization until actually used
- since NSS is allergic (ie becomes non-functional) after forking, delay
  it's initialization until really needed, ie lazy init in rpmDigestInit()
- however as NSS init can fail if attempted in completely empty chroot,
  we force crypto init to happen at transaction set create time, forking
  past that is pretty much doomed anyway
- this is the other half of the fix for rhbz#476737, and similar case
  noticed by Pixel in Mandriva (due to urpm forking)
(cherry picked from commit 5ff05aec30ddceb0fc8f2ecd7797aa7bdc9bc96d)

15 years agoOnly touch _crypto_initialized if we actually change it
Panu Matilainen [Thu, 8 Jan 2009 11:03:55 +0000 (13:03 +0200)]
Only touch _crypto_initialized if we actually change it
(cherry picked from commit c895fb1541f5edbdc53eb6d70eb6157566e6e528)

15 years agoInclude isaname support for arm (Kedar Sovani)
Panu Matilainen [Thu, 8 Jan 2009 10:07:54 +0000 (12:07 +0200)]
Include isaname support for arm (Kedar Sovani)
(cherry picked from commit bb45458b6eb11149011a88d12b38f05569571c6a)

15 years agoDon't segfault in pgpPubkeyFingerprint() if rpmDigest* fails
Panu Matilainen [Thu, 8 Jan 2009 08:38:29 +0000 (10:38 +0200)]
Don't segfault in pgpPubkeyFingerprint() if rpmDigest* fails
- this can happen if NSS is not properly initialized, such as after
  forking
- partial fix to rhbz#476737 (as in "doesn't crash"), deeper issue is
  that NSS init needs to be done later than we do now
(cherry picked from commit 882e8df3d0b0d1f88db7550fcc83b821dc0ba93a)

15 years agoUpdated Polish translation (Piotr Drąg)
Panu Matilainen [Thu, 8 Jan 2009 07:16:36 +0000 (09:16 +0200)]
Updated Polish translation (Piotr Drąg)

15 years agoCheck chroot() result in psm too (Pixel)
Panu Matilainen [Thu, 18 Dec 2008 08:01:01 +0000 (10:01 +0200)]
Check chroot() result in psm too (Pixel)
- bail out early if it fails instead of blindly continuing and potentially
  messing in real root (chroot can fail for priviledged user too)
(cherry picked from commit 465841e8501762b36899b6f31b47968efbe74538)

15 years agoPermit --noscripts on verify (to disable %verifyscript execution)
Panu Matilainen [Thu, 18 Dec 2008 07:51:37 +0000 (09:51 +0200)]
Permit --noscripts on verify (to disable %verifyscript execution)
- this used to work but got broken by the rpmi/rpmq/... unification
(cherry picked from commit e0f57801c0cb035814509bdae13c3e859d471d59)

15 years agoCheck for termination signals during query loops
Panu Matilainen [Mon, 15 Dec 2008 08:26:45 +0000 (10:26 +0200)]
Check for termination signals during query loops
(cherry picked from commit 766821b8a30bc962c8c3b1e5542882110c197d68)

15 years agoPreparing for rpm 4.6.0-rc3 rpm-4.6.0-rc3
Panu Matilainen [Tue, 9 Dec 2008 13:02:08 +0000 (15:02 +0200)]
Preparing for rpm 4.6.0-rc3

15 years agoReturn nothing at all on empty array queryformats
Panu Matilainen [Tue, 9 Dec 2008 12:52:12 +0000 (14:52 +0200)]
Return nothing at all on empty array queryformats
- (none) might make some sense on non-existent tags elsewhere but
  it's plain annoying on arrays
(cherry picked from commit b838d10e0cf3d747ac0ce5b756688e6677dbc513)

15 years agoOops, missing wrappers for C++ in headers (ticket #12)
Panu Matilainen [Tue, 9 Dec 2008 07:51:17 +0000 (09:51 +0200)]
Oops, missing wrappers for C++ in headers (ticket #12)
(cherry picked from commit bafed0d85c12a2e709dd1a50c817361659bfbd11)

15 years agoWork around broken packages which dont have RPMTAG_SOURCERPM
Panu Matilainen [Mon, 8 Dec 2008 17:51:10 +0000 (19:51 +0200)]
Work around broken packages which dont have RPMTAG_SOURCERPM
- check the lead type and headerIsSource() agree on the type and if not,
  fix it up based on the information in lead
(cherry picked from commit 50a4ed783c300a92948f7933a3c726d4bd2d643d)

15 years agoAdd function to retrieve type from rpmlead
Panu Matilainen [Mon, 8 Dec 2008 17:50:07 +0000 (19:50 +0200)]
Add function to retrieve type from rpmlead
- for some messed up packages there's no other reliable way to determine
  source vs binary than looking at the lead :-/
(cherry picked from commit 826969f2c7307e7292f192fd10625d863d656723)

15 years agoFix segfault on packages without separate scriptlet program tags (rhbz#475214)
Panu Matilainen [Mon, 8 Dec 2008 16:46:02 +0000 (18:46 +0200)]
Fix segfault on packages without separate scriptlet program tags (rhbz#475214)
(cherry picked from commit 0eb0e79a80e20723d0ebe58996bc3f30a3feabe7)

15 years agoFix pkg-config provide generation on interdependent .pc's (rhbz#473814)
Panu Matilainen [Fri, 5 Dec 2008 19:44:43 +0000 (21:44 +0200)]
Fix pkg-config provide generation on interdependent .pc's (rhbz#473814)
- based on Arjan van de Ven's and Dan Nicholson's suggestions
(cherry picked from commit ab02fb183a441b6a30c863aebf49be992cd431fe)

15 years agoAvoid "template" which is a reserved word in C++
Panu Matilainen [Fri, 5 Dec 2008 19:17:16 +0000 (21:17 +0200)]
Avoid "template" which is a reserved word in C++
(cherry picked from commit 9799e69263d94ba1aca61795645c750bcd497ee5)

15 years agoTighten up setting and checking of buildroot (ticket #10)
Panu Matilainen [Fri, 5 Dec 2008 11:38:30 +0000 (13:38 +0200)]
Tighten up setting and checking of buildroot (ticket #10)
- expand, set and verify buildroot just once for after main package preamble
  is parsed to avoid sub-packages from overriding it
- spec can still mess with %buildroot by defining it to something else
  after preamble but that's another issue...
(cherry picked from commit cc74d50a6dadfa30914844e6c4c0513287bf7f68)

15 years agoPay more attention to tag extension return codes
Panu Matilainen [Thu, 4 Dec 2008 19:55:52 +0000 (21:55 +0200)]
Pay more attention to tag extension return codes
- behave like headerGet() does and return failure if there's no data
  to return
- some cases where we used to return nothing previously now return (none)
  in query, but the former behavior was inconsistent between tags
- not sure if (none) is really wanted for a return of no value always,
  but at least it's consistent now
(cherry picked from commit e232344a496798e4ca143630a127d8ead086eb7c)

15 years agoFix triggerconds return when no data is there (rhbz#474550)
Panu Matilainen [Thu, 4 Dec 2008 17:10:41 +0000 (19:10 +0200)]
Fix triggerconds return when no data is there (rhbz#474550)
(cherry picked from commit 1f61d628fdd07a11aa7a84dc15a74150865e575f)

15 years agoAvoid rpmtd abuse to report "(none)" when no data is found
Panu Matilainen [Thu, 4 Dec 2008 17:04:14 +0000 (19:04 +0200)]
Avoid rpmtd abuse to report "(none)" when no data is found
- simplifies things quite a bit and avoids having to deal with
  numeric data suddenly appearing as string elsewhere
(cherry picked from commit 144463a82d493981281dda24cdbb4b785f7bbab1)

15 years agoFix python header retrieval return type for non-existent tags (rhbz#473239)
Panu Matilainen [Thu, 4 Dec 2008 08:23:40 +0000 (10:23 +0200)]
Fix python header retrieval return type for non-existent tags (rhbz#473239)
- array / not array return needs to be honored even when tag doesn't exist,
  wtf have I been thinking, duh!
(cherry picked from commit ba87a938b77c7ab9ffa4cca1255a877600ba2305)

15 years agoInclude rpmfileutil.h from rpmmacro.h so that
Jindrich Novy [Mon, 1 Dec 2008 11:16:56 +0000 (12:16 +0100)]
Include rpmfileutil.h from rpmmacro.h so that
prototype for rpmGenPath() is included (rhbz#473420)
- unbreaks net-snmp
(cherry picked from commit 0b80d38f32b438d81d47fc61074b1f163518d68f)

15 years agoPreparing for 4.6.0-rc2 rpm-4.6.0-rc2
Panu Matilainen [Sat, 29 Nov 2008 13:28:50 +0000 (15:28 +0200)]
Preparing for 4.6.0-rc2

15 years agoRead default popt aliases again (rhbz#473167)
Panu Matilainen [Sat, 29 Nov 2008 12:38:07 +0000 (14:38 +0200)]
Read default popt aliases again (rhbz#473167)
- makes testsuite depend on local aliases but using default popt config
  is widely documented and needs to work, testsuite needs a better method
  of disabling it if necessary
- backported from commit 0372f7d8b4ea14f8248fa287fe43eaf04e93a638

15 years agoUnify dbiIndexSet allocations, allocate in power-of-two sizes
Panu Matilainen [Sat, 29 Nov 2008 11:52:32 +0000 (13:52 +0200)]
Unify dbiIndexSet allocations, allocate in power-of-two sizes
- allocating in even sized chunks helps avoiding crazy memory fragmentation
  when resizing a lot (rhbz#472507)
- HEAD doesn't really need, rpm 4.6.x does, but doesn't hurt either...
(cherry picked from commit 604a54277ed21f1fd983c205ad7d36feb3950ce1)

15 years agoUse proper type (unsigned) for index set offset/count
Panu Matilainen [Sat, 29 Nov 2008 10:04:46 +0000 (12:04 +0200)]
Use proper type (unsigned) for index set offset/count
(cherry picked from commit 881f14d277eefc70d65bf48b1837f0219572f397)

15 years agoFix build tree creation with relative paths for %_topdir and friends
Panu Matilainen [Fri, 21 Nov 2008 08:04:41 +0000 (10:04 +0200)]
Fix build tree creation with relative paths for %_topdir and friends
- rpmtsRootDir() gives "/" even if root not actually set which makes sense
  for most operations but not when we're creating build directories

15 years agoPermit relative paths in rpmioMkpath() and rpmMkdirs()
Panu Matilainen [Fri, 21 Nov 2008 07:50:53 +0000 (09:50 +0200)]
Permit relative paths in rpmioMkpath() and rpmMkdirs()
(cherry picked from commit 5e58eeb2d7d0fa301785e5299b3f92da9aa64dc2)

15 years agoRestore SIGPIPE to default action for scriptlets (rhbz#471591)
Panu Matilainen [Wed, 19 Nov 2008 06:16:03 +0000 (08:16 +0200)]
Restore SIGPIPE to default action for scriptlets (rhbz#471591)
(cherry picked from commit 140f0c8c8339524968e9ca595fabe9a28b38f49f)

15 years agoUpdated Brazilian Portugese translation from Igor Pires Soares
Panu Matilainen [Wed, 19 Nov 2008 06:10:21 +0000 (08:10 +0200)]
Updated Brazilian Portugese translation from Igor Pires Soares
(cherry picked from commit 2ca4430dd7d9c295b97cd2362a91dfe3f8819ab3)

15 years agoAdd AC_CONFIG_MACRO_DIR for the new libtool
Jindrich Novy [Tue, 18 Nov 2008 10:23:26 +0000 (11:23 +0100)]
Add AC_CONFIG_MACRO_DIR for the new libtool
(cherry picked from commit 73c17671de0bf017c9600504f11a1cdf79d0ce26)

15 years agoCalculate total file size correctly in build (mdvbz#45820, rhbz#247374)
Panu Matilainen [Mon, 17 Nov 2008 11:39:22 +0000 (13:39 +0200)]
Calculate total file size correctly in build (mdvbz#45820, rhbz#247374)
- delay total size calculation until the real file list is known, ie
  in genCpioListAndHeaders() where duplicates and excludes have been
  weeded out
(cherry picked from commit 899dfb58927ec6e91014773430824462f4d0002e)

15 years agoMake depflagsFormat() accept any numeric type
Panu Matilainen [Mon, 17 Nov 2008 10:44:57 +0000 (12:44 +0200)]
Make depflagsFormat() accept any numeric type
(cherry picked from commit 74ed5372f681a31987ba931d72ed5d8ae96f52d0)

15 years agoSimplify xmlFormat() by taking advantage of rpmtdClass()
Panu Matilainen [Mon, 17 Nov 2008 10:42:53 +0000 (12:42 +0200)]
Simplify xmlFormat() by taking advantage of rpmtdClass()
(cherry picked from commit 05a3d00162fe343002e378e42f6458139093ba52)

15 years agoMake fflagsFormat() accept any numeric type
Panu Matilainen [Mon, 17 Nov 2008 10:41:24 +0000 (12:41 +0200)]
Make fflagsFormat() accept any numeric type
(cherry picked from commit 8ef09ba46c4698ac5a00b496c9ab4a9596bfa31e)

15 years agoMake permsFormat() work with any numeric type
Panu Matilainen [Mon, 17 Nov 2008 10:39:13 +0000 (12:39 +0200)]
Make permsFormat() work with any numeric type
(cherry picked from commit 53dcad2f9d5e13e246775c3b052c025406100a0d)

15 years agoMake triggertypeFormat() work for any numeric type
Panu Matilainen [Mon, 17 Nov 2008 10:37:42 +0000 (12:37 +0200)]
Make triggertypeFormat() work for any numeric type
(cherry picked from commit 5580fe23d50b82971c3f0fb12bc613ac64fcdfb0)

15 years agoMake shescapeFormat() to accept any numeric type
Panu Matilainen [Mon, 17 Nov 2008 10:34:22 +0000 (12:34 +0200)]
Make shescapeFormat() to accept any numeric type
(cherry picked from commit f31b790c31d017b9fbe75d1af822c8b438c0cd84)

15 years agoTake advantage of rpmtdGetNumber() for date format specifiers
Panu Matilainen [Mon, 17 Nov 2008 10:29:01 +0000 (12:29 +0200)]
Take advantage of rpmtdGetNumber() for date format specifiers
- dateFormat() and dayFormat() now work for any numeric type
(cherry picked from commit 2b3380aa3455cd6aa3a86491c33c15648360f6fd)

15 years agoTake advantage of rpmtdGetNumber() for numeric format specifiers
Panu Matilainen [Mon, 17 Nov 2008 10:23:19 +0000 (12:23 +0200)]
Take advantage of rpmtdGetNumber() for numeric format specifiers
- octalFormat() and hexFormat() now work for any number, not just int32,
  fixing rhbz#471820
- use a common helper-function for both formats, they only differ by o/x
(cherry picked from commit ee6c147a239feb6a5587758b19192f274bd0a529)

15 years agoSimplify stringFormat() by using rpmtdGetNumber()
Panu Matilainen [Mon, 17 Nov 2008 10:16:51 +0000 (12:16 +0200)]
Simplify stringFormat() by using rpmtdGetNumber()
(cherry picked from commit d97e357560ad9111b95da9bf2126a7bde3b4bac1)

15 years agoAdd rpmtdGetNumber() for getting numeric values from tag container
Panu Matilainen [Mon, 17 Nov 2008 10:04:08 +0000 (12:04 +0200)]
Add rpmtdGetNumber() for getting numeric values from tag container
- returns the value (as opposed to pointer to, like the rpmtdGetUint32()
  and the like do) of any numeric type as uint64_t (largest supported
  integer type so everything can be converted to it)
- handy when you don't really care what the internal presentation is
- there's no rpmtdGetNextNumber() as there's no meaningful way to return
  end-of-iteration here
(cherry picked from commit 2db2c376b322bd2940b15600357e9f22d8a55e0c)

15 years agoIntroduce rpm tag "classes"
Panu Matilainen [Mon, 17 Nov 2008 09:31:00 +0000 (11:31 +0200)]
Introduce rpm tag "classes"
- rpm tag data can be either numeric, strings or binary data, each with
  their own "subclasses" (different sized integers etc), add new
  enumeration for these
- add rpmTagGetClass(), rpmtdClass() public functions for retrieving the
  base class of tag and container
- useful for getting a basic idea how to handle tag/container data
(cherry picked from commit ed5306b0be4b8b0df205b066d2646b4e1dd93545)

15 years agoImprove finger print hash function to avoid degeneration of hash tables
Florian Festi [Thu, 16 Oct 2008 10:07:44 +0000 (12:07 +0200)]
Improve finger print hash function to avoid degeneration of hash tables
(cherry picked from commit 48554042f434fd75452e752f1156a652ffe71c8b)

15 years agoFilter out mtime difference of shared files on verify (rhbz#426672, #444661)
Panu Matilainen [Thu, 13 Nov 2008 11:22:03 +0000 (13:22 +0200)]
Filter out mtime difference of shared files on verify (rhbz#426672, #444661)
- Since we permit shared files to differ by mtime on installation, it makes
  no sense to consider them as verification failure either. This has been
  especially bad on multilib where timestamp differences make verify warning
  lights look like Las Vegas at night. If file mtime on disk and header
  differs, check if it's owned by more than one package and if so, ignore
  the timestamp difference.
(cherry picked from commit 9646a117c916022067fd07e4f6a7e25c5c9814de)

15 years agoFix segfault on relocation (rhbz#468319)
Panu Matilainen [Tue, 4 Nov 2008 11:33:27 +0000 (13:33 +0200)]
Fix segfault on relocation (rhbz#468319)
- a bogus free() / thinko
(cherry picked from commit e07d37aebc1ab6213507375b8916f5259cf4dc0f)

15 years agoAvoid leaking C99 options into stock %{__cc} macro
Panu Matilainen [Tue, 4 Nov 2008 09:36:01 +0000 (11:36 +0200)]
Avoid leaking C99 options into stock %{__cc} macro
(cherry picked from commit 9a509e9f1acc27fdce547a47513e9d083a17b6d4)

15 years agoEnsure PATH_MAX is defined (ticket #3) Adam Tkac
Panu Matilainen [Mon, 3 Nov 2008 12:13:45 +0000 (14:13 +0200)]
Ensure PATH_MAX is defined (ticket #3) Adam Tkac
- POSIX doesn't require PATH_MAX to be defined as constant, and Hurd
  doesn't define it...
- deal with it just once in system.h for now, the proper fix is to get
  rid of needing it at all (ie add a mallocing realpath() clone to librpmio)
- patch from Adam Tkac
(cherry picked from commit 759b73a4293e56209e922bf58d7028234e854338)

15 years agoDrop unnecessary trailing slash in pkgconfig includedir
Panu Matilainen [Fri, 31 Oct 2008 15:45:43 +0000 (17:45 +0200)]
Drop unnecessary trailing slash in pkgconfig includedir
(cherry picked from commit b7678c0a40898debdf7396c84967411efbfaf345)

15 years agoAdjust for file output change (rhbz#468129)
Panu Matilainen [Fri, 31 Oct 2008 08:17:07 +0000 (10:17 +0200)]
Adjust for file output change (rhbz#468129)
- file util used reported file details along with mime type, newer ones don't
(cherry picked from commit 81660b26bc8e2c03f55cf928955f7ed84e00785a)

15 years agoIncrease IEEE-compliance of floating point code for SH platform
Jindrich Novy [Wed, 22 Oct 2008 07:28:38 +0000 (09:28 +0200)]
Increase IEEE-compliance of floating point code for SH platform
- thanks to CHIKAMA Masaki
(cherry picked from commit be651d98769ec95c0fcc2dee015a40c68b83271a)

15 years agoApply patch for sh arch from CHIKAMA Masaki
Jindrich Novy [Wed, 22 Oct 2008 07:22:05 +0000 (09:22 +0200)]
Apply patch for sh arch from CHIKAMA Masaki
(cherry picked from commit 02274eecfc98a83b53b091d2fd889cf7f9393b29)

15 years agoUpdated Serbian translations from Miloš Komarčević
Panu Matilainen [Fri, 24 Oct 2008 05:05:00 +0000 (08:05 +0300)]
Updated Serbian translations from Miloš Komarčević
(cherry picked from commit 6a8c221ce6a890d6b23daed92669eb90e80ec2af)

15 years agoMake noarch subpackages actually work
Panu Matilainen [Thu, 23 Oct 2008 04:47:25 +0000 (07:47 +0300)]
Make noarch subpackages actually work
- noarch subpackages get their arch tag from parsePreamble() already,
  don't stomp over it later in parseSpec()
(cherry picked from commit a4825e488d44e01803c377ebc4fc054adcf42b3a)

15 years agoSkip adding identical NEVR to transaction on install too (rhbz#467822)
Panu Matilainen [Wed, 22 Oct 2008 06:58:10 +0000 (09:58 +0300)]
Skip adding identical NEVR to transaction on install too (rhbz#467822)
- Installing several different versions of the same package in single
  transactions is permitted for "pure" installs, whereas on upgrade only
  one version is allowed. Identical NEVR got correctly checked and filtered
  out on upgrade but on install identical NEVR was not catched. Check
  for equal and newer separately...
(cherry picked from commit bb74348bfb7ddfd333d94f855eabcc8658f0e9e6)

15 years agoFix memleak in rpmtsAddInstallElement()
Panu Matilainen [Wed, 22 Oct 2008 06:25:30 +0000 (09:25 +0300)]
Fix memleak in rpmtsAddInstallElement()
- previously any of the "skipping/replacing already added" checks matching
  would leak memory due to early jump to exit
(cherry picked from commit cf89739282feadb36ef50d0b8d8c4e293cd0c24c)

15 years agoPermit tab as whitespace between macro arguments (rhbz#467567)
Panu Matilainen [Sat, 18 Oct 2008 22:53:03 +0000 (01:53 +0300)]
Permit tab as whitespace between macro arguments (rhbz#467567)
- another dumb regression from macro handling cleanups

15 years agoPreparing for 4.6.0-rc1 rpm-4.6.0-rc1
Panu Matilainen [Thu, 16 Oct 2008 13:59:54 +0000 (16:59 +0300)]
Preparing for 4.6.0-rc1

15 years agoUpdated German translation from Fabian Affolter
Panu Matilainen [Thu, 16 Oct 2008 13:11:15 +0000 (16:11 +0300)]
Updated German translation from Fabian Affolter

15 years agoUpdated Polish translation from Piotr Drąg
Panu Matilainen [Thu, 16 Oct 2008 13:08:18 +0000 (16:08 +0300)]
Updated Polish translation from Piotr Drąg

15 years agoAdd configure detection for SuSE too
Panu Matilainen [Tue, 14 Oct 2008 13:32:58 +0000 (16:32 +0300)]
Add configure detection for SuSE too
- distro detection in configure is pretty futile but while we still have it...

15 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

15 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

15 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

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

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

15 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

15 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

15 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

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

15 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

15 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

15 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

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

15 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

15 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

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

15 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)