Commit Graph

80 Commits

Author SHA1 Message Date
Panu Matilainen 4c90c79e3f Unbreak --setperms (RhBug:881835)
- Fixes a regression introduced in rpm >= 4.10 caused by query format
  simplification (loss of zero padding support), in commit
  1f1e5e88a1.
- 'chmod' command doesn't need zero padding, just remove the formatting.
  In fact we shouldn't be passing the entire mode to it but just the
  permission bits, but fortunately chmod isn't too picky here.
2012-11-30 08:23:51 +02:00
Tim Landscheidt 1825e8863c Don't call "rpm --addsign" if rpmbuild didn't create RPMs.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2012-11-01 11:08:23 +02:00
Panu Matilainen cb2894b361 Show arch in --last output too (RhBug:768516) 2012-01-12 09:52:34 +02:00
Panu Matilainen 9e363dba03 Show all interpreter arguments on --scripts query (ticket #847)
- Previously any arguments to interpreter were invisible unless
  you happened to know that RPMTAG_FOOPROG are actually string
  arrays despite their type showing plain string, and queried
  as arrays. This makes all the arguments for all scriptlets
  supporting interpreter arguments visible on --scripts query
  and also serves as an example on how to properly query them.i
- Perhaps worth noting is the exact formatting of the query:
  "(using[ %{PRETRANSPROG}]" instead of the more typical style of
  "(using [%{PRETRANSPROG} ]" to avoid extra trailing blanks.
2011-09-12 12:28:58 +03:00
Panu Matilainen 527fa4a730 Show possible %verifyscript interpreter similarly to other scriptlets 2011-09-12 12:10:29 +03:00
Panu Matilainen d0198dac5a Use the new FOO_NEVRS extensions for --requires etc popt aliases
- Makes the popt foobar somewhat saner and fixes RhBug:717534 and
  RhBug:735801 while at it.
2011-09-06 16:12:15 +03:00
Panu Matilainen 9f3a0debb6 Fix rpmsign --key-id popt alias typo 2011-01-10 14:09:57 +02:00
Panu Matilainen 90440e2036 Remove absolute paths from our popt exec aliases now that we can
- poptExecPath() pointing to meaningful place allows removal of these.
- Make test-suite rely on the --initdb exec alias so we catch out
 if anything here breaks
2010-11-15 10:23:27 +02:00
Panu Matilainen ad0687bd57 Kill broken --rebuilddbpath popt alias
- It's been broken because of a typo for the last ten years and nobody
  noticed, doesn't seem like a particularly useful switch...
2010-11-09 15:57:02 +02:00
Panu Matilainen 7bc9cc79d1 Move --dbpath into common rpm popt options table
- This ensures its available in all our executables without adding
  umphteen copies into rpmpopt (after the cli splits, this was missing
  in eg rpmdb executable...)
2010-11-09 09:23:14 +02:00
Panu Matilainen f9a32ac3de Lose the remaining dbapi references in code + configuration
- Changing db_api to db_ver to force breakage on anything using the
  value, db_ver containing the BDB major version just to put something
  in the error messages where the dbapi version used to be.
2010-11-04 15:55:19 +02:00
Panu Matilainen 73de3a22f0 Add --requires etc popt aliases for rpmspec too
- In addition to the regular dependencies, add --buildrequires
  and --buildconflicts which are just --srpm --requires and
  --srpm --conflicts in reality
2010-10-12 15:39:52 +03:00
Panu Matilainen 0048c39479 Add cli switches to override signing key and digest algorithm 2010-10-04 16:04:47 +03:00
Panu Matilainen e8a1f5da3e Lift specfile query out of main rpm(query) into separate binary
- Avoids having to link /bin/rpm with librpmbuild and everything it
  might bring in (eg libmagic) which are not needed for core operation.
- Minimally preserve backwards compatibility with popt exec alias
2010-10-04 14:31:55 +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 3cbda9c03f Rip IAM_RPMK, ie --import and --checksig modes out of rpmqv.c + librpm
- Add popt exec aliases to rpmkeys for backwards compatibility
2010-09-03 16:32:43 +03:00
Panu Matilainen c382cd5373 Rrrriiip the addsign/resign/delsign bits out of rpmqv.c + friends
- Add popt exec aliases to rpmsign for backwards compatibility (dejavu...)
2010-09-03 15:12:12 +03:00
Panu Matilainen c22fff5b93 Eliminate silly and unused timecheck feature from (lib)rpmbuild
- This was broken for years without anybody complaining, should
  be safe to conclude nobody will miss it later either. And if
  somebody misses it, this is a job for rpmlint really.
2010-09-01 16:48:16 +03:00
Panu Matilainen 51a05e7a9f Remove signing support from (lib)rpmbuild
- Signing is better done in an environment completely separated from
  the process of actually building packages. This is how its generally
  done anyway by distros, this change just forces the issue.
- While signing on build seems handy and saves some io-churn, this
  is very insecure as your precious secret passphrase remains unencrypted
  in memory for the entire duration of the build where it's accessible
  to whatever happens to be building. This change doesn't
  affect fix the issue of unencrypted passphrase residing in memory
  and potentially getting swapped out, it only limits the exposure
  to the actual signing process which isn't subject to unknown scripts
  poking around.
- Minimally preserve rpmbuild's --sign functionality via popt --pipe hack
  to call rpm --addsign when build completes
2010-08-20 18:04:11 +03:00
Jindrich Novy 1610f79cef Add Epoch, Architecture and BugURL to rpm -qi and fix alignment (RhBug:575499) 2010-03-24 21:12:27 +01:00
Panu Matilainen b457e2200b Make --httpproxy and friends work again (RhBug:529214)
- macro fiddling to pass the macros set by --httpproxy etc popt aliases
  to the url helper
- ftp proxy and http proxy control the same thing (http proxy) now to
  keep things simple
- while at it, add %__urlhelper_localopts for local customization needs
  without having to override the entire __urlhelperopts macro
2009-10-22 10:37:49 +03:00
Panu Matilainen 3ec070c5d8 Output dependency type on --requires etc queries if verbose (RhBug:528342) 2009-10-12 11:03:14 +03:00
Panu Matilainen 68230da9ce Use %{_rpmconfigdir} throughout configuration macros and such 2008-11-22 18:09:48 +02:00
Panu Matilainen e7c604dadd Add --filecaps popt alias for looking at file capabilities
- doesn't need much as the capabilities are stored in human readable format
2008-10-29 12:09:27 +02:00
Panu Matilainen 636311912b Argh, the tag is LONGSIZE, not LARGESIZE 2008-06-26 17:52:31 +03:00
Panu Matilainen 5c46ebb7a9 Make --info work on large packages too 2008-06-26 16:37:06 +03:00
Panu Matilainen 7a02b41365 --buildpolicy is rpmbuild, not rpm, alias 2008-06-25 09:40:04 +03:00
Panu Matilainen 52bea969c7 Kill the million duplicate aliases in rpmpopt 2008-06-25 09:40:04 +03:00
Panu Matilainen 30be238164 Eliminate build-related aliases on "rpm"
- "rpm" for building packages hasn't worked in ~six years, time to clean
  up the junk from rpmpopt
2008-06-25 09:40:04 +03:00
Panu Matilainen 94df5d41de Eliminate already commented out build mode aliases for rpm
- these haven't been enabled in six years and not coming back...
2008-06-24 11:11:38 +03:00
Panu Matilainen 70282af4b3 Eliminate rpmb aliases from rpmpopt 2008-06-24 11:09:00 +03:00
Panu Matilainen 472167d7a8 Remove ancient RH-comment 2007-09-19 16:51:32 +03:00
Panu Matilainen a9d59cc2ad Remove --redhatprovides / --redhatrequires popt aliases
- highly vendor specific
- not even RH uses them anymore..
2007-09-19 16:49:41 +03:00
Ralf Corsépius f544c1b12b Cleanup. 2007-09-05 11:47:40 +02:00
Panu Matilainen c0bd72b026 Rip out unnecessary selinux babbage.
- rpm doesn't manage selinux contexts so it doesn't need to know about them
  other than when creating files
- implement --fscontext as popt alias since it's easy to do so...
2007-09-03 15:15:50 +03:00
Panu Matilainen 408d3df3f1 Rip out selinux file contexts from headers.
The SELinux file contexts can and do change, and local policies might be
in place, the contexts on the build system at build time have zero relevance
to anything and are just header bloat.
Remove --filecontexts alias while at it, not useful for anything anyway.
2007-09-03 10:20:10 +03:00
Panu Matilainen 4772050149 Show pre- and posttrans scripts in rpm -q --scripts query (susebz#253620)
Patch from Michal Marek.
2007-08-28 10:11:06 +03:00
Panu Matilainen 086dac456e Add --dupes popt alias for detecting duplicate packages in rpmdb from JBJ. 2007-06-05 09:45:58 +03:00
Panu Matilainen 9358ce594f Deal with bad lines in --setperms and --setugids.
Happens for example if a package is not installed (--pipe also captures stderr).

Patch from OpenSuSE.
2007-05-16 16:19:18 +03:00
jbj c94624a03c - sqlite3: update encode/decode from sqlite-2.8.16.
- add --xml popt alias for query modes.
- remove _rpmdb now that python2.[34] are commonly available.

CVS patchset: 7770
CVS date: 2005/02/16 19:05:36
2005-02-16 19:05:36 +00:00
jbj 5732d3daae - build against external/internal neon.
CVS patchset: 7692
CVS date: 2005/01/09 17:48:19
2005-01-09 17:48:19 +00:00
jbj 8ebeba6979 Remove pugly extra newline from --changelog.
CVS patchset: 7454
CVS date: 2004/10/13 05:47:55
2004-10-13 05:47:55 +00:00
jbj b106986999 - spelling corrections (#112728).
CVS patchset: 7047
CVS date: 2003/12/30 13:14:49
2003-12-30 13:14:49 +00:00
jbj bea918bb77 Add --filecontext, --fscontext, --recontext for 3 sources of security contexts.
CVS patchset: 6994
CVS date: 2003/12/22 07:47:45
2003-12-22 07:47:45 +00:00
jbj 79365b0a0d Add file to the splint sources too.
CVS patchset: 6026
CVS date: 2003/01/24 21:01:50
2003-01-24 21:01:50 +00:00
jbj 39cbc98d69 1st crack at colored installs.
CVS patchset: 5989
CVS date: 2002/12/31 01:23:03
2002-12-31 01:23:03 +00:00
jbj cb4b0b8ce1 - fix :armor query extension, tgpg mktmp handling (#80684).
- use rpmfiClass underneath --fileclass.

CVS patchset: 5985
CVS date: 2002/12/29 22:31:00
2002-12-29 22:31:00 +00:00
jbj b63b4a5d12 - simplify specfile query linkage loop.
- drill rpmts into parseSpec(), carrying Spec along.

CVS patchset: 5958
CVS date: 2002/12/22 02:11:05
2002-12-22 02:11:05 +00:00
jbj e7f55c20f5 - add -I/usr/include/nptl, Conflicts: kernel <= 2.4.19.
CVS patchset: 5950
CVS date: 2002/12/19 23:41:52
2002-12-19 23:41:52 +00:00
jbj b3bc3cb19d - add --file{class,provide,require} popt aliases and header extensions
CVS patchset: 5947
CVS date: 2002/12/18 22:54:00
2002-12-18 22:54:00 +00:00