diff options
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 097fa1227a..b84c0441b4 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -454,6 +454,38 @@ EOF | |||
454 | 454 | ||
455 | chmod 0755 ${WORKDIR}/scriptlet_wrapper | 455 | chmod 0755 ${WORKDIR}/scriptlet_wrapper |
456 | 456 | ||
457 | # Configure RPM... we enforce these settings! | ||
458 | mkdir -p ${target_rootfs}${rpmlibdir} | ||
459 | mkdir -p ${target_rootfs}${rpmlibdir}/log | ||
460 | # After change the __db.* cache size, log file will not be generated automatically, | ||
461 | # that will raise some warnings, so touch a bare log for rpm write into it. | ||
462 | touch ${target_rootfs}${rpmlibdir}/log/log.0000000001 | ||
463 | cat > ${target_rootfs}${rpmlibdir}/DB_CONFIG << EOF | ||
464 | # ================ Environment | ||
465 | set_data_dir . | ||
466 | set_create_dir . | ||
467 | set_lg_dir ./log | ||
468 | set_tmp_dir ./tmp | ||
469 | set_flags db_log_autoremove on | ||
470 | |||
471 | # -- thread_count must be >= 8 | ||
472 | set_thread_count 64 | ||
473 | |||
474 | # ================ Logging | ||
475 | |||
476 | # ================ Memory Pool | ||
477 | set_cachesize 0 1048576 0 | ||
478 | set_mp_mmapsize 268435456 | ||
479 | |||
480 | # ================ Locking | ||
481 | set_lk_max_locks 16384 | ||
482 | set_lk_max_lockers 16384 | ||
483 | set_lk_max_objects 16384 | ||
484 | mutex_set_max 163840 | ||
485 | |||
486 | # ================ Replication | ||
487 | EOF | ||
488 | |||
457 | # RPM is special. It can't handle dependencies and preinstall scripts correctly. Its | 489 | # RPM is special. It can't handle dependencies and preinstall scripts correctly. Its |
458 | # probably a feature. The only way to convince rpm to actually run the preinstall scripts | 490 | # probably a feature. The only way to convince rpm to actually run the preinstall scripts |
459 | # for base-passwd and shadow first before installing packages that depend on these packages | 491 | # for base-passwd and shadow first before installing packages that depend on these packages |