summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r--meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch12
-rw-r--r--meta/recipes-devtools/rpm/rpm_5.4.0.bb5
2 files changed, 15 insertions, 2 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch b/meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch
new file mode 100644
index 0000000000..aafa416881
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch
@@ -0,0 +1,12 @@
1diff --git a/rpmdb/DB_CONFIG.in b/rpmdb/DB_CONFIG.in
2index 8b94c94..e0b4689 100644
3--- a/rpmdb/DB_CONFIG.in
4+++ b/rpmdb/DB_CONFIG.in
5@@ -4,6 +4,7 @@ set_data_dir .
6 set_create_dir .
7 set_lg_dir ./log
8 set_tmp_dir ./tmp
9+set_flags db_log_autoremove on
10
11 # -- thread_count must be >= 8
12 set_thread_count 64
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index f8fe836562..d14bce4b94 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -45,11 +45,12 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
45DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}" 45DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}"
46extrarpmdeps = "python perl" 46extrarpmdeps = "python perl"
47extrarpmdeps_virtclass-native = "file-native" 47extrarpmdeps_virtclass-native = "file-native"
48PR = "r23" 48PR = "r24"
49 49
50# rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed 50# rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed
51# in order to extract the distribution SRPM into a format we can extract... 51# in order to extract the distribution SRPM into a format we can extract...
52SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;extract=rpm-5.4.0.tar.gz \ 52SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;extract=rpm-5.4.0.tar.gz \
53 file://rpm-log-auto-rm.patch \
53 file://perfile_rpmdeps.sh \ 54 file://perfile_rpmdeps.sh \
54 file://rpm-autogen.patch \ 55 file://rpm-autogen.patch \
55 file://rpm-libsql-fix.patch \ 56 file://rpm-libsql-fix.patch \
@@ -192,6 +193,7 @@ FILES_${PN} = "${bindir}/rpm \
192 ${libdir}/rpm/bin/rpmrepo \ 193 ${libdir}/rpm/bin/rpmrepo \
193 ${libdir}/rpm/bin/rpmspecdump \ 194 ${libdir}/rpm/bin/rpmspecdump \
194 ${libdir}/rpm/bin/wget \ 195 ${libdir}/rpm/bin/wget \
196 /var/lib/rpm \
195 " 197 "
196 198
197# ${libdir}/rpm/magic 199# ${libdir}/rpm/magic
@@ -208,7 +210,6 @@ FILES_${PN}-dbg += "${libdir}/rpm/.debug \
208FILES_${PN}-common = "${bindir}/rpm2cpio \ 210FILES_${PN}-common = "${bindir}/rpm2cpio \
209 ${bindir}/gendiff \ 211 ${bindir}/gendiff \
210 /etc/rpm \ 212 /etc/rpm \
211 /var/lib/rpm \
212 /var/spool/repackage \ 213 /var/spool/repackage \
213 " 214 "
214 215