Commit Graph

51 Commits

Author SHA1 Message Date
Panu Matilainen 8e3b5bfc89 Push archivePos from rpmfi to fsm
- archive position is only meaningful in fsm context anyway
2008-11-11 18:16:22 +02:00
Panu Matilainen 97ab15cc9e Add fsm and rpmfi machinery for file capabilities
- new rpmfiFCaps() API to retrieve the info from rpmfi set
- fsm internals quite similar to selinux handling
- plenty of #ifdef's, another possibility would be adding cap_foo dummies to
  system.h like for selinux
2008-10-29 11:49:38 +02:00
Panu Matilainen 7681f80e25 Mark various fsm* bits internal
- build code uses fsmSetup() and fsmTearDown(), those need to remain
  visible for now
2008-10-09 15:35:36 +03:00
Panu Matilainen 2093f7cceb Plug leaks in selinux context handling in fsm 2008-07-03 17:14:45 +03:00
Panu Matilainen 161395648f Use 64bit type internally for package archive size & offset
- cpio "new" ascii format limits individual files to UINT32_MAX, no such
  limit on the entire archive though
- RPMSIGTAG_PAYLOADSIZE is 32bit type atm, assert that the archive size
  fits to UINT32_MAX despite internal presentation being larger
- FD_t limits the real archive to rpm_off_t still
2008-06-09 12:29:07 +03:00
Panu Matilainen 09d8cbafff Unexport file state machine internals
- fsmGetTs(), fsmGetFi(), fileStageString(), fileActionString(),
  fsmMapPath(), fsmMapAttrs() and fsmStage() aren't needed outside fsm,
  make 'em static to avoid leaking to symbol space
2008-06-03 14:26:34 +03:00
Panu Matilainen ae5667cf06 Lose unused fdigests array from rpmfi struct
- only used in rpmfiNew() where it's converted to binary from the header
  hex presentation and free'd immediately, a local variable will do just as
  well
- some useless references in fsm and psm, kill'em too
2008-06-02 09:50:48 +03:00
Panu Matilainen 4aa7ab6422 Teach fsm internals to honor rpmfi digest type 2008-06-02 09:50:48 +03:00
Panu Matilainen f771b641d3 Rename rpmfi and fsm checksum md5-sum fields to refer to digest
- no functional changes
- groundwork for supporting other than md5 checksums
2008-06-02 09:50:48 +03:00
Panu Matilainen e886043a10 Add rpm_off_t type for file size types, use where spotted
- preliminaries for bumping up the max size, use rpm-specific type
  as off_t size varies, header data needs fixed size
2008-02-04 11:27:00 +02:00
Panu Matilainen 8bdd462b50 Make fsm failedFile non-const like it really is
- callers need to free it so const is wrong
- cast away the hardlink-hackery in fsm instead
2007-12-18 10:10:03 +02:00
Panu Matilainen 6966c5d8ac Stick cpioMapFlags to fsm.h, they're only used by fsm.c
- allows FSM* typedefs to move to where they belong
2007-12-17 13:39:14 +02:00
Panu Matilainen 8268570f48 Hide fsmIterator_s struct details, not needed outside fsm.c 2007-12-17 13:20:05 +02:00
Panu Matilainen c3353c2af4 Stuff hardLink_s inside fsm.c, add pointer typedef to fsm.h
- nothing outside fsm.c needs except for the declaration in fsm_s
2007-12-17 13:15:53 +02:00
Panu Matilainen 9ce13e09ef Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Panu Matilainen 361a8e697b Move file action enums to rpmfi where they logically belong 2007-12-02 22:50:55 +02:00
Ralf Corsépius 60939d6985 Expand private include file names to be relative to $(top_srcdir) 2007-11-23 11:39:29 +01:00
Panu Matilainen c0149602a6 Rename public fileAction* type to rpmFileAction for namespacing 2007-09-20 16:19:25 +03:00
Ralf Corsépius ebef4f211c Remove splint tags. 2007-09-11 19:07:39 +02:00
Panu Matilainen 049674696d Remove const type-qualifiers from function return types everywhere.
They're meaningless in C and cause tonne of build warnings.
2007-07-10 12:15:43 +03:00
jbj 210183cc69 Add lsetfilecon to install modes.
CVS patchset: 7006
CVS date: 2003/12/25 23:00:44
2003-12-25 23:00:44 +00:00
jbj 9c5529608e - don't use error string after gzclose (Dmitry V. Levin).
Spliddles for rpmio, drill h_errno all the way through.

CVS patchset: 6826
CVS date: 2003/05/08 20:39:29
2003-05-08 20:39:29 +00:00
jbj 95f01d39a5 Splint clean.
CVS patchset: 6729
CVS date: 2003/04/02 21:16:26
2003-04-02 21:16:26 +00:00
jbj 97ec1053c9 - unify signal handling in librpmio, use condvar to deliver signal.
CVS patchset: 6707
CVS date: 2003/03/19 16:05:49
2003-03-19 16:05:49 +00:00
jbj 6cb657b9d2 Sanity.
CVS patchset: 6705
CVS date: 2003/03/19 03:00:02
2003-03-19 03:00:02 +00:00
jbj 7e716b70fb splint fiddles.
CVS patchset: 6023
CVS date: 2003/01/23 20:23:24
2003-01-23 20:23:24 +00:00
jbj ae8428475c - add --with-efence to configure, check install/upgrade with efence.
- beecrypt: short hex string conversion overflows target buffer.
- mark "successors only" packages in transaction.
- reap scriptlets with SIGCHLD handler.
- rename PSM_t to rpmpsm, add methods and refcounts to manage.
- remove %%configure/%%makeinstall from arch-os/macros, default is OK.
- don't export MALLOC_CHECK_ to scriptlets.
- squeaky clean memory leak checking.
- always malloc rpmfi structure, refcounts are correct in rpmtsRun().
- skip redundant /sbin/ldconfig scripts on upgrade (if possible).

CVS patchset: 5645
CVS date: 2002/08/19 22:27:44
2002-08-19 22:27:44 +00:00
jbj 241fad1287 Propagate splint-3.0.1.7 close(2) internalState annotation throughout.
CVS patchset: 5542
CVS date: 2002/07/08 14:21:26
2002-07-08 14:21:26 +00:00
jbj db4e72211e Sanity.
CVS patchset: 5477
CVS date: 2002/06/09 22:15:16
2002-06-09 22:15:16 +00:00
jbj 2126e4ad09 - Grand Renaming of rpm data types.
CVS patchset: 5439
CVS date: 2002/05/19 18:42:25
2002-05-19 18:42:25 +00:00
jbj b45c27e2ab doxygen cleanup.
CVS patchset: 5379
CVS date: 2002/04/08 18:56:01
2002-04-08 18:56:01 +00:00
jbj 3e0d0877ff - permit subset installs for %lang colored hardlink file sets.
CVS patchset: 5252
CVS date: 2002/01/11 23:03:22
2002-01-11 23:03:22 +00:00
jbj a3b362c466 - solaris: translate i86pc to i386 (#57182).
- fix: %GNUconfigure breaks with single quotes (#57264).
- fix: typo in find-requires.
- tru64 compiler message cleanup.
- add buildarch lines for hppa (#57728).

CVS patchset: 5228
CVS date: 2001/12/20 16:28:46
2001-12-20 16:28:46 +00:00
jbj ceed8357c7 - convert file md5sum's to binary on the fly, reducing memory footprint.
CVS patchset: 5192
CVS date: 2001/11/18 17:49:21
2001-11-18 17:49:21 +00:00
jbj 966fabbc44 - memory indices for dependency check are typedef'd and abstract'd.
- no-brainer refcounts for fi object, debug the mess.
- dump the header early in transaction, recreate fi before installing.

CVS patchset: 5137
CVS date: 2001/10/28 22:17:47
2001-10-28 22:17:47 +00:00
jbj c1d367a094 - transaction sets cerated in cli main.
- no-brainer refcounts for ts object.

CVS patchset: 5136
CVS date: 2001/10/27 22:31:10
2001-10-27 22:31:10 +00:00
jbj d57a29baac Converging on lclint-3.0.17 strict level.
CVS patchset: 5118
CVS date: 2001/10/17 16:43:36
2001-10-17 16:43:36 +00:00
jbj 72471f2e54 Explicit branchstate annotations.
CVS patchset: 5113
CVS date: 2001/10/15 17:53:34
2001-10-15 17:53:34 +00:00
jbj d8dc44f363 lclint fiddles to annotate globals.
CVS patchset: 5106
CVS date: 2001/10/15 03:22:10
2001-10-15 03:22:10 +00:00
jbj 92556605af - legacy: drop brokenMD5 support (rrpm-2.3.3 to rpm-2.3.8 on sparc).
- eliminate DYING code.

CVS patchset: 5082
CVS date: 2001/09/25 20:51:34
2001-09-25 20:51:34 +00:00
jbj b533de2b27 Yet another patial harlink set fix.
CVS patchset: 4903
CVS date: 2001/06/25 20:01:42
2001-06-25 20:01:42 +00:00
jbj 4ae69250a2 - fix typos in linux.{req,prov}.
CVS patchset: 4834
CVS date: 2001/06/05 19:26:22
2001-06-05 19:26:22 +00:00
jbj 750d54d8a3 lclint fiddles.
CVS patchset: 4833
CVS date: 2001/06/04 13:55:58
2001-06-04 13:55:58 +00:00
jbj 8f75bbc17d - enough lclint annotations and fiddles already.
CVS patchset: 4741
CVS date: 2001/05/05 19:28:32
2001-05-05 19:28:32 +00:00
jbj d78e027808 - still more boring lclint annotations and fiddles.
CVS patchset: 4738
CVS date: 2001/05/03 21:00:18
2001-05-03 21:00:18 +00:00
jbj f75a3f71ab Doxygen annotations for config files.
Doxygen annotations for rpmdep section.
Add manifests for install modes.

CVS patchset: 4675
CVS date: 2001/04/10 12:36:45
2001-04-10 12:36:45 +00:00
jbj acbbbb19f7 Move fileActionString to fsm.c where it belongs.
Open repackage output fd in PSM_INIT, not PSM_PROCESS.
Factor common chroot calls to beginning of PSM_PRE and end of PSM_POST.
Factor common rpmdbCountPackages to top of PSM_INIT.

CVS patchset: 4602
CVS date: 2001/03/03 20:41:37
2001-03-03 20:41:37 +00:00
jbj d955c25e48 More functionality in psmStage.
CVS patchset: 4591
CVS date: 2001/03/01 18:28:11
2001-03-01 18:28:11 +00:00
jbj 15941e5fea Move more args into PSM_t.
CVS patchset: 4586
CVS date: 2001/02/28 13:59:29
2001-02-28 13:59:29 +00:00
jbj 2be9ecf0eb 1st stab at --repackage.
CVS patchset: 4545
CVS date: 2001/02/11 22:02:29
2001-02-11 22:02:29 +00:00