~ubuntu-branches/ubuntu/precise/rpm/precise-proposed

« back to all changes in this revision

Viewing changes to debian/patches/rpmdb-in-home.patch

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2010-06-28 11:12:30 UTC
  • mfrom: (17.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100628111230-8ggjjhgpvrnr3ybx
Tags: 4.8.1-5
Fix compilation on hurd and kfreebsd (Closes: #587366).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Subject: Move default rpmdb path to user home
 
2
From: Michal Čihař <nijel@debian.org>
 
3
 
 
4
We don't want to use system database, because we don't want users to install
 
5
rpm packages on Debian.
 
6
 
 
7
--- a/macros.in
 
8
+++ b/macros.in
 
9
@@ -155,7 +155,7 @@
 
10
 %_bzip2bin             %{__bzip2}
 
11
 
 
12
 #      The location of the rpm database file(s).
 
13
-%_dbpath               %{_var}/lib/rpm
 
14
+%_dbpath               %(echo $HOME/.rpmdb)
 
15
 
 
16
 #      The location of the rpm database file(s) after "rpm --rebuilddb".
 
17
 %_dbpath_rebuild       %{_dbpath}