Commit Graph

112 Commits

Author SHA1 Message Date
Panu Matilainen d009ac4828 Remove support for NSS
NSS is a behemoth of a library which drags in a whole runtime subsystem
of its own which is often at odds with normal Unix system behavior
(hello SIGPIPE). Now that we have nicer alternatives available there's
little reason to lug this baggage along. NSS was deprecated in rpm 4.16
(commit 0b9efb93fb).
2020-05-29 08:54:56 +03:00
Panu Matilainen 501fb4ef62 Move rpmvercmp() to librpmio
Adding a new header just for this seems a bit much but we'll be adding
stuff there shortly.

No functional changes as such, this is prerequisite for supporting
version comparison in expressions.
2020-05-27 14:14:00 +02:00
Panu Matilainen 7de982ac09 Drop the experimental LMDB backend
In the three years that LMDB support has been in the tree, and four
since upstream promised 1.0.0 in a couple of months, there have been
no upstream changes towards eliminating the key size limitations that
we need. And in the meanwhile it has become clearer that LMDB is not
the promised land it seemed on the outset, instead it has issues
like requiring the database size to be pre-determined (#902).

Drop support for LMDB, there's active development going on in the area
of database backends and we cannot afford to drag along an experimental
backend that is blocked on upstream design limitations and shows no signs
of moving forward. We can always bring it back if the upstream situation
changes.
2020-03-20 12:31:04 +02:00
Panu Matilainen 29dfabc27a All database backend sources may have translatable messages
...regardless of whether they currently have them or not (many do)
2019-10-18 16:16:10 +03:00
Panu Matilainen 66c3df005f Export the expression parsing functions and move to librpmio
Rename to rpmExprBool/Str() for namespace's sake, drop internal
visibility and move to librpmio for wider usability.
No functional changes here but needed for the next step.
2019-08-21 15:39:40 +03:00
Howard Johnson 4c2b3f25f6 Rename rpmqv.c to rpm.c, as it's the main source for the rpm command 2019-06-03 15:10:46 +03:00
Panu Matilainen 323d3e7962 Update POTFILES for the parseBuildInstallClean -> parseSimpleScript rename
Should've been in commit d6c4fff202
2018-11-20 10:57:55 +02:00
Panu Matilainen 9e16032b0b Move rpmsignfiles to librpmsign where it belongs
The signing library is separated from librpm and librpmbuild
specifically so it can have more exotic dependencies than is
desireable for librpm, ditto for plugin existence. However
rpmSignFiles() being in librpm drags that libimaevm dependency
to main rpm for no good reason at all. Move it where it belongs,
does not actually affect functionality.
2017-06-08 17:01:28 +03:00
Panu Matilainen 3441324355 Oops, rpmvs.c is missing from POTFILES 2017-05-16 08:46:42 +03:00
Panu Matilainen 6f186deb95 Plugins may contain translatable messages too 2017-03-10 12:22:26 +02:00
Panu Matilainen 97c78d1d48 Oops, update POTFILES, lib/legacy.c is no more
Should've been in commit ab24d7aa54
2016-11-03 10:03:51 +02:00
Piotr Drąg efc0385357 Sort po/POTFILES.in alphabetically
Also removes an unneeded comment.
2015-11-12 11:25:58 +01:00
Piotr Drąg 890b8711d1 Add missing files to po/POTFILES.in 2015-11-12 11:25:58 +01:00
Florian Festi e31016d3c6 Change po/POTFILES.in for lib/backend/dbconfig.c renamed to dbi.c 2015-07-22 21:17:11 +02:00
Panu Matilainen 713914bde1 Drop the experimental collection support
- The basic concept is not without merit but what was implemented here
  has been stuck in experimental state in middle of two sorta conflicting
  goals for four years now, and world has moved onward in the meanwhile.
  The sepolicy part is better handled in the new selinux plugin, and other
  action business belongs to packages (in the form of some trigger-like
  scripts or such) rather than rpm plugins.
- Deleted here, but the sepolicy plugin functionality still needs
  merging into the new selinux plugin...
- RPMTAG_COLLECTIONS left in place but tagged unimplemented as per policy
  to never actually remove tags
2014-06-17 16:27:24 +03:00
Panu Matilainen 935318220d rpm2archive missing from POTFILES 2014-04-07 13:17:23 +03:00
Panu Matilainen 071f5e91eb Consolidate the relocation goo into a source of its own
- This stuff doesn't belong in rpmfi, rpmte, psm or anywhere else either.
  Invent a new dark hole to shove it into...
- No functional changes as such, just shuffling things around.
2013-11-15 12:33:38 +02:00
Panu Matilainen beb0ef9b8e Oops, forgot to remove merge.c from POTFILES.in
- ...perhaps because it shouldn't have been there in the first place
  as there's absolutely nothing to translate in it. Oh well...
2013-03-19 15:32:28 +02:00
Panu Matilainen 06f603849a Oops, lib/misc.c is no more, remove from POTFILES.in 2011-03-25 14:56:16 +02:00
Panu Matilainen bc457015f6 Remove the now unused user/group caching code 2010-12-15 09:44:54 +02:00
Panu Matilainen 949d16b6db Oops, rpmspec.c missing from POTFILES.in 2010-11-15 08:55:56 +02:00
Panu Matilainen 9f2c1bd909 Move librpmsign to its own subdirectory in the sources 2010-10-22 15:00:49 +03:00
Panu Matilainen 9f68c7958f Rip IAM_RPMDB, ie --initdb, --rebuilddb etc modes out of rpmqv.c and librpm
- Add popt exec aliases to rpmdb for backwards compatibility
- Change test-suite to use 'rpmdb --initdb' instead of 'rpm --initdb'
  as popt exec aliases with absolute paths dont play very well
  with the test-suite, duh...
2010-09-03 17:13:10 +03:00
Panu Matilainen ada4dd18d5 Add a brand new rpmdb utility for rpmdb maintenance (dejavu again)
- rpmdb maintenance only requires privileges on the rpmdb directory,
  not elsewhere on the system. Splitting to separate tool allows
  finer grained SELinux policies and makes adding new db-specific
  switches saner.
2010-09-03 16:59:51 +03:00
Panu Matilainen dfbaa77152 Add a brand new rpmkeys utility for keyring operations
- Keyring operations (adding/viewing/removing keys and verifying
  packages against a given keyring) are different from main rpm operations
  in that they only need access to the rpm keyring, and no write access
  anywhere else in the system. At the moment the rpm keyring happens
  to be the rpmdb but that's just an implementation detail that is
  likely to change sooner or later. Besides paving way to separating
  the rpm keyring from the rpmdb, splitting this to a small, separate
  utility allows limiting its required access from SELinux POV etc.
- For now, this only implements what's already in rpm: --import and
  --checksig, remaining operations like listing and manipulating
  keyring contents is left as an exercise for another day...
2010-09-03 16:16:57 +03:00
Panu Matilainen df0b760e7e Add a brand new rpmsign utility for package signing
- Signing (and deleting) are different from everything else in rpm
  in that it needs very little of rpm's facilities. For example access
  to the rpmdb is not needed at all. Splitting this to a separate,
  small utility allows various possibilities, like severely limiting
  its access from SELinux POV, control of signature generation with
  cli arguments (the main rpm executable is already overcrowded with
  options). It's also the first step to allow reasonably splitting
  rpm signing to a separate package; not everybody needs to sign
  packages, yet signing support needs to drag in GPG and whatnot.
- Reimplement / refactor various librpm signature generation helpers
  into somewhat saner internal versions.
2010-09-03 15:11:59 +03:00
Panu Matilainen ed3860b8ef Split package signing out of rpmchecksig.c
- No functional changes, supposedly
2010-09-03 11:11:55 +03:00
Panu Matilainen c2496746ed Oops, forgot to update POTFILES.in on poptBT.c removal 2010-09-02 14:30:36 +03:00
Panu Matilainen 0f79048c66 Add newly added files to POTFILES.in too 2010-09-01 10:24:11 +03:00
Panu Matilainen b217529967 Add a convenience library for stuff common cli-bits into 2010-08-20 13:49:18 +03:00
Panu Matilainen 910fc93842 Merge build.[ch] into rpmbuild.c, doesn't make sense to separate anymore 2010-08-20 11:26:28 +03:00
Panu Matilainen f9cbeaca83 Begin splitting rpmbuild to separate sources
- Make a copy of the entire rpmqv.c source to rpmbuild.c and switch
  make to use the new copy. No functional changes. Making a copy first
  means we get much easier to follow patch-series on the changes
  that will follow.
2010-08-20 10:52:28 +03:00
Panu Matilainen 90a37c2f5c Add a simple API for dealing with chroot state changes
- Chroot is a process global state so it needs to be tracked globally.
  A process can (in theory) have several transaction sets, each with
  different roots (although only one can be active at any time), so
  associating the chroot state with transaction set (as currently done)
  is not right.
- "Reference count" chroot entering and exiting so callers dont need
  to track the state changes individually when they need to go
  in and out of chroot if not already done.
- This should probably go to librpmio eventually but as there are no
  needs outside librpm currently, keeping this internal so we're free
  to fiddle with the api if necessary
2010-05-31 13:35:54 +03:00
Panu Matilainen 0e04c09d48 Move the lone hashFunctionString() into misc.[ch], eliminate rpmhash.[ch]
- Besides there not being much point in having a separate source + header
  for a small single function, this fixes build on case-insensitive
  systems such as Mac OS X.
2010-05-21 15:36:03 +03:00
Panu Matilainen 001778e074 Oops, scriptlet related error messages had dropped out of potfiles 2010-03-29 16:14:50 +03:00
Panu Matilainen 37ed237fbe Split rpm problem type + its "methods" to separate source + header
- rpmps is just something that stores rpm problems, problems themselves
  are individual and opaque "objects", deserving their own module
2010-03-25 16:46:39 +02:00
Panu Matilainen c7c7c067c9 There's nothing to translate in fts.c, remove from POTFILES.in
- should've been in commit ad43e72d70, oh well
2010-03-19 19:58:31 +02:00
Panu Matilainen 37daae03c1 Kill off couple of dangling lib/fs.c references 2010-02-03 17:36:45 +02:00
Panu Matilainen 5b12a3b519 error.c was getting translated too, duh
- should've been in commit 5741334a85
2010-01-04 09:12:19 +02:00
Panu Matilainen 7e684c5630 Lose the now empty header_internal.c source 2009-12-22 12:34:19 +02:00
Panu Matilainen bb9878ed30 Rename hdrNVR.c to more obvious and generic headerutil.c
- no functional changes
- remove it from translation list, there's nothing here to translate...
2009-12-22 12:07:12 +02:00
Panu Matilainen a250601a8e Kick out one remaining sqlite reference (in the translations) 2009-12-09 11:18:21 +02:00
Panu Matilainen 57884ba0d3 Split ordering code to separate source file 2009-06-10 17:19:27 +03:00
Panu Matilainen b7492daf83 Add a few missing files to POTFILES.in (rhbz#466834) 2008-10-14 09:44:32 +03:00
Panu Matilainen 5129c291bd Remember to remove ugid.c from POTFILES 2008-07-04 18:18:55 +03:00
Panu Matilainen 6c1103fc80 Remove rpmcache from repository
- next to nobody even knew about it, much less used it...
- hardly useful now that solvedb is gone
2008-07-04 14:33:23 +03:00
Panu Matilainen 973ffa42db Include tagexts in potfiles
- nothing to translate there at the moment but..
2008-05-22 10:03:04 +03:00
Panu Matilainen e89d203361 headerfmt.c has translatable strings, add to POTFILES 2008-05-12 18:26:11 +03:00
Panu Matilainen 90e10708f8 Fixup paths and Makefiles for rpmdb/ elimination 2008-05-12 12:28:12 +03:00
Panu Matilainen 5d38313e7c Adjust potfiles from rpmlibprov removal, update... 2008-02-05 13:53:19 +02:00