User Tools

Site Tools


rpm5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
rpm5 [2012-09-22 10:43]
baggins
rpm5 [2012-10-08 14:09]
baggins _noauto changes
Line 17: Line 17:
  
 ==== Fixing database problems ==== ==== 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: ​
  
 <​file>​cd /​var/​lib/​rpm <​file>​cd /​var/​lib/​rpm
Line 53: Line 53:
 ==== Build options ==== ==== 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 +  * ''​/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    * **Stack Smashing Protector** is also enabled by default, if you really MUST disable SSP then undefine **_ssp_cflags** macro 
Line 65: Line 65:
 <​file>​%include /​usr/​lib/​rpm/​macros.perl <​file>​%include /​usr/​lib/​rpm/​macros.perl
 </​file>​ </​file>​
-In rpm 5.x those macro files have been moved to /​usr/​lib/​rpm/​macros.d/​ directory, and must be loaded using %{load:} directive+In rpm 5.x those macro files have been moved to ''​/​usr/​lib/​rpm/​macros.d/​'' ​directory, and must be loaded using %{load:} directive. However the old statement still works, as it contains the same code to load the macros. ​
  
  
  
 <​file>​%{load:/​usr/​lib/​rpm/​macros.d/​perl} <​file>​%{load:/​usr/​lib/​rpm/​macros.d/​perl}
 +</​file>​
 +
 +==== Excluding dependencies ====
 +
 +'''​%%_noauto*%%'''​ macros have been changed to '''​%%__noauto*%%'''​ (notice double %%'​_'​%%).\\
 +Also regexp patterns changed slightly, and '​('​ must be escaped now, for example:
 +
 +<​file>​%define __noautoreq '​perl\\(something::​.*\\)'​
 </​file>​ </​file>​
  
rpm5.txt ยท Last modified: 2015-01-13 16:01 by glen