commit: 7c7f1bcbfbedf8181a40c6de460a15d9988de8cc Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jul 31 03:16:52 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jul 31 22:13:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c7f1bcb
sys-apps/man-db: [QA] call tmpfiles_process in pkg_postinst This is needed to actually apply the tmpfiles configuration we've installed in the ebuild. See tmpfiles.eclass documentation. Revbump because the new tmpfiles inherit adds a new dependency (virtual/tmpfiles). Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/man-db/{man-db-2.9.4.ebuild => man-db-2.9.4-r1.ebuild} | 4 +++- sys-apps/man-db/man-db-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys-apps/man-db/man-db-2.9.4.ebuild b/sys-apps/man-db/man-db-2.9.4-r1.ebuild similarity index 98% rename from sys-apps/man-db/man-db-2.9.4.ebuild rename to sys-apps/man-db/man-db-2.9.4-r1.ebuild index ee7a1ac42db..3bdd29d11b1 100644 --- a/sys-apps/man-db/man-db-2.9.4.ebuild +++ b/sys-apps/man-db/man-db-2.9.4-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit systemd prefix +inherit systemd prefix tmpfiles DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" HOMEPAGE="http://www.nongnu.org/man-db/" @@ -192,6 +192,8 @@ pkg_preinst() { } pkg_postinst() { + tmpfiles_process man-db.conf + if [[ $(ver_cut 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then einfo "Rebuilding man-db from scratch with new database format!" su man -s /bin/sh -c 'mandb --quiet --create' 2>/dev/null diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild index f5b96175573..66b83690c0b 100644 --- a/sys-apps/man-db/man-db-9999.ebuild +++ b/sys-apps/man-db/man-db-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit systemd prefix +inherit systemd prefix tmpfiles DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" HOMEPAGE="http://www.nongnu.org/man-db/" @@ -192,6 +192,8 @@ pkg_preinst() { } pkg_postinst() { + tmpfiles_process man-db.conf + if [[ $(ver_cut 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then einfo "Rebuilding man-db from scratch with new database format!" su man -s /bin/sh -c 'mandb --quiet --create' 2>/dev/null