42 Commits

Author SHA1 Message Date
96a5445b98 Drop bzdio support
There is no use in supporting bzip2 compressed payloads in rpmbuild nowadays.
2017-11-20 01:42:20 +00:00
Gleb Fotengauer-Malinovskiy
6e12c7d1f2 psm.c: write installed/removed package buildtime to syslog 2014-06-24 19:03:56 +04:00
Alexey Tourbin
9e15c26f3f removed support for repackaging and rollbacks (rpm.org) 2011-09-23 02:47:36 +04:00
Alexey Tourbin
e061586385 build/files.c (finalizePkg): calculate RPMTAG_SIZE after optimizations
Note that checkHardLinks function is now removed.  It was unclear
whether it was supposed to verify %lang attributes (returning non-zero
on error) or indicate if all hardlinks are packaged within the package.

It turns out that only a single package in our repo has
PartialHardlinkSets dependency:

$ cd /ALT/Sisyphus/files/x86_64/RPMS/
$ rpm -qp --qf '[%{NAME}\t%{REQUIRENAME}\n]' *.rpm |fgrep 'PartialHardlinkSets'
$ cd /ALT/Sisyphus/files/noarch/RPMS/
$ rpm -qp --qf '[%{NAME}\t%{REQUIRENAME}\n]' *.rpm |fgrep 'PartialHardlinkSets'
freeciv-common  rpmlib(PartialHardlinkSets)
$

This probably means that freeciv-common has hardlinks with different
%lang attributes (which probably was supposed to be an error).  So
the whole issue should be reconsidered.  A leave XXX marks in the
code and suggest new PartialHardlinkSets implementation (however,
the dependency is not being added yet).
2011-02-05 03:49:54 +03:00
Mikhail Efremov
f92be4b40e Added SELinux support
Mostly backported from rpm-4.8
2010-08-24 16:59:07 +00:00
Alexey Tourbin
79be480d0e 4.0.4-alt97.M50.16
- rpmio: Updated lzma compression routines for xz-5.0 API.
- Packaged /usr/bin/rpm2cpio.static.
2009-09-24 12:48:17 +04:00
Alexey Tourbin
0b739a3a9f psm.c, rpm2cpio.c: updated for xz decompression 2009-09-24 12:35:37 +04:00
Alexey Tourbin
31dc64497c 4.0.4-alt97.M50.12
- Removed _noDirTokens support (producing legacy filelist format).
- Disabled rpmlib(PayloadFilesHavePrefix), rpmlib(CompressedFileNames),
  and rpmlib(VersionedDependencies) dependencies.
- Disabled versioning for rpmlib(PayloadIsBzip2) and rpmlib(PayloadIsLzma)
  dependencies.
2009-06-17 06:43:27 +04:00
Alexey Tourbin
23317f11b7 removed _noDirTokens (producing legacy filelist format)
Some code (e.g. apt/genpkglist) explicitly relies on the fact that
header file list is represented with baseNames+dirNames+dirIndexes
arrays.  Thus, generating legacy headers might have issues, and should
be disabled.
2009-06-17 06:32:18 +04:00
258aa58b05 lib/psm.c (rpmVersionCompare): Handle omitted tags
Now it can handle headers with RPMTAG_VERSION/RPMTAG_RELEASE tags omitted.
2009-04-14 16:37:54 +00:00
e957d80905 lib/psm.c (rpmVersionCompare): Optimize code
RPMTAG_BUILDTIME and RPMTAG_EPOCH comparisons use the same algorithm.
Now they use the same code, too.
2009-04-14 16:37:53 +00:00
Alexey Tourbin
aebc9a42dd removed prehistoric multilib support 2009-03-10 14:27:38 +03:00
Alexey Tourbin
f9c067a1ad psm.[ch]: skip fuser and fgroup test/set for src.rpm
Previous change in loadFi() triggers the code which depends
on fi->fuser and fi->fgroup being NULL for source rpms.
Now I add explicit check for source rpms.

Update: also turn off suid/sgid bits for src.rpm.
(cherry picked from commit 070b65040eab0f221c5f79796358986e698cd2ef)
2009-03-08 20:12:41 +03:00
Alexey Tourbin
75978600ab s/relocateable/relocatable/ (jbj) 2009-03-08 20:12:18 +03:00
Alexey Tourbin
32c0658171 lib/transaction.c (filecmp): require st_mode and uid/gid match for overlapping files; do not require md5 match for %ghost files
(cherry picked from commit 1f439402e04acfea1bb3393b13771c6486601c91)
2009-03-08 20:06:45 +03:00
Alexey Tourbin
75e60a90bb lib/psm.c: in syslog messages, discriminate between no epoch and zero epoch
(cherry picked from commit e60ab8fa21243bd7741e198c9942924849e90d59)
2009-03-08 20:06:17 +03:00
62d33b6587 psm.c (psmTriggerPosttrans): Handle unset "transaction file info" pointer properly (ALT#18079)
rpmRunTransactions() may call psmTriggerPosttrans() without transaction file info.
We have to handle this case gracefully.

Reported by Artem Zolochevskiy.
2008-12-02 22:28:38 +00:00
e350f7fcf1 psm.c (saveTriggerFiles): Fix missing sentinel in rpmGetPath() call
(cherry picked from commit dc9343e541c8ded7364e3624990bce3c976ef5b4)
2008-11-13 03:47:30 +03:00
Alexey Tourbin
2de9c0ce48 psm.c (psmTriggerPosttrans): try to increase "Running %s" message verbosity (for apt-get) 2008-11-13 00:41:02 +03:00
Alexey Tourbin
699a24ad65 psm.c (psmTriggerPosttrans): downgrade database lock, for e.g. update-menus 2008-11-12 06:01:08 +03:00
Alexey Tourbin
bffe630760 psm.c (psmTriggerPosttrans): missing sentinel in rpmGetPath() call 2008-11-12 06:00:27 +03:00
Alexey Tourbin
bd1897e46c psm.c (psmTriggerPosttrans): do not set RPM_INSTALL_ARG1 and RPM_INSTALL_ARG2 2008-11-12 05:10:51 +03:00
Alexey Tourbin
5fffe7272e psm.c (saveTriggerFiles): don't write filenames with '\n' character 2008-11-12 05:10:11 +03:00
Alexey Tourbin
4ada155008 implemented posttrans filetriggers, vaguely based on Mandriva patch 2008-11-12 05:10:11 +03:00
Alexey Tourbin
9814453966 backported LZMA payload compression from SuSE 2008-05-24 13:47:41 +04:00
8787ee5d55 Fixed "type qualifiers ignored on function return type" issue. 2006-05-15 02:48:59 +04:00
6e6ebb00f1 define _upgrade_honor_buildtime to 1 by default, add --ignorebuildtime to disable 2005-10-18 10:43:12 +00:00
540f2aec95 loadFi: fixed potential NULL dereference 2005-10-17 23:50:09 +00:00
f8470fffbe Set umask 022 for install scripts and triggers execution. 2005-10-17 22:57:59 +00:00
3fa4258878 Backported epoch handling fix in psmStage() and rpmRunTransactions().
Fix package upgrades by introducing digest comparison.
Optionally honor buildtime during package upgrades.
2005-10-17 13:23:09 +00:00
6a14cbc258 fixed rpmExpand usage 2005-09-29 17:10:24 +00:00
eab59fe8a3 runScript: signal (SIGPIPE, SIG_DFL) - executed scripts exepcts default SIGPIPE handler 2004-02-03 20:36:08 +00:00
dc16524f2d do syslog only when geteuid() == 0 2003-07-09 13:45:10 +00:00
d60fb06db2 reverted to prev version of chroot fix 2002-10-04 16:42:29 +00:00
80c96f59f4 do not try to chroot into "/", part 2 2002-10-03 17:11:50 +00:00
394a569a16 do not try to chroot into "/" 2002-10-03 17:02:02 +00:00
569410371a used MkdirP 2002-08-29 15:00:42 +00:00
6cc64fa4ea updated code to snapshot 2002-06-15 of 4_0 branch 2002-08-03 16:35:14 +00:00
0d589754c9 export RPM_INSTALL_ARG{1,2} variables in runScript() 2002-06-13 10:01:20 +00:00
54ba4fa9bc sync with rpm4 branch 2002-03-25 23:51:37 +00:00
dee952c2f8 sync with rpm4 branch: include local headers 2002-03-25 22:02:39 +00:00
82a4763c66 Initial revision 2002-03-25 20:16:26 +00:00