PLDWWW: RPM5

baggins baggins at pld-linux.org
Mon Sep 17 13:59:32 CEST 2012


Author: baggins   Date: Mon Sep 17 11:59:32 2012 GMT
Module: PLDWWW   URL: http://www.pld-linux.org/RPM5?action=diff&rev2=3&rev1=2
---- Log message:


---- Page affected: RPM5

---- Diffs:

================================================================
  
  === Fixing database problems ===
  
- You can't just do '''''"rm -rf /var/lib/rpm/_ _db*"''''' to fix problems anymore, also '''''--rebuilddb''''' is largely obsolete in rpm-5.3.x and isn't likely to "fix" anything. Instead:
+ You can't just do '`rm -rf /var/lib/rpm/__db`' to fix problems anymore, also '''--rebuilddb''' is largely obsolete in rpm-5.3.x and isn't likely to "fix" anything. Instead:
  {{{
  cd /var/lib/rpm
  dbX.Y_recover -ev
@@ -16, +16 @@

  
  === Querying database ===
  
- The semantics of rpm query option '''''-f''''' ('''''--file''''') has changed in rpm 5.x;
+ The semantics of rpm query option '''-f''' ('''--file''') has changed in rpm 5.x;
- '''''rpm -q -f <file-with-path>''''' will '''not''' resolve all symlinks in queried file's path.
+ '`rpm -q -f <file-with-path>`' will '''not''' resolve all symlinks in queried file's path.
  So the query (assuming ''/usr/src/linux'' is a symlink to ''/usr/src/linux-A.B.C-R''):
  {{{
  rpm -q -f /usr/src/linux/include/linux/fs.h
  }}}
  That returned ''kernel-headers-A.B.C-R.arch.rpm'' with old rpm, will return nothing with rpm 5.x.
- Yo have to do '''readlink -f''' first, or change to symlinked directory and do relative path query.
+ You have to do '`readlink -f`' first, or change to symlinked directory and do relative path query.
  
  == Packaging changes ==
  
@@ -32, +32 @@

  === Build options ===
  
   * /var/tmp is now used when TMPDIR environment variable is not set, the reason for this change is to avoid future problems if/when systemd forces it's way of /tmp as tmpfs
-  * '''''-Wformat -Werror=format-security''''' options are added to compiler flags, more information about it can be found on [http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments Mandriva Wiki]
+  * '''-Wformat -Werror=format-security''' options are added to compiler flags, more information about it can be found on [http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments Mandriva Wiki]
   * '''Stack Smashing Protector''' is also enabled by default, if you really MUST disable SSP then undefine '''_ssp_cflags''' macro
  
  === Loading additional macros in .spec files ===


More information about the pld-cvs-commit mailing list