From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4416D138334 for ; Sun, 6 Jan 2019 15:12:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F400AE0B4E; Sun, 6 Jan 2019 15:11:58 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCF63E0B4E for ; Sun, 6 Jan 2019 15:11:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 12884335C6F for ; Sun, 6 Jan 2019 15:11:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D192F508 for ; Sun, 6 Jan 2019 15:11:54 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1546787501.59d4f75abd7dc6b691a95b5447133922ff09ea3f.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/man-db/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/man-db/man-db-9999.ebuild X-VCS-Directories: sys-apps/man-db/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 59d4f75abd7dc6b691a95b5447133922ff09ea3f X-VCS-Branch: master Date: Sun, 6 Jan 2019 15:11:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a4eaf8ca-5ea3-41da-bca2-2ca01cde16d6 X-Archives-Hash: 1b7aead59e7942e5914ce3c89a59c6d7 commit: 59d4f75abd7dc6b691a95b5447133922ff09ea3f Author: Lars Wendler gentoo org> AuthorDate: Sun Jan 6 15:10:21 2019 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sun Jan 6 15:11:41 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d4f75a sys-apps/man-db: Synced live ebuild. Attempt to fix root privilege escalation. Bug: https://bugs.gentoo.org/662438 Bug: https://bugs.gentoo.org/666404 Package-Manager: Portage-2.3.54, Repoman-2.3.12 Signed-off-by: Lars Wendler gentoo.org> sys-apps/man-db/man-db-9999.ebuild | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild index 670cbc0de53..c6db5d3398e 100644 --- a/sys-apps/man-db/man-db-9999.ebuild +++ b/sys-apps/man-db/man-db-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit ltprune user versionator +inherit user eapi7-ver DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" HOMEPAGE="http://www.nongnu.org/man-db/" @@ -17,7 +17,7 @@ fi LICENSE="GPL-3" SLOT="0" -IUSE="berkdb +gdbm +manpager nls seccomp selinux static-libs zlib" +IUSE="berkdb +gdbm +manpager nls +seccomp selinux static-libs zlib" CDEPEND=" !sys-apps/man @@ -57,9 +57,8 @@ pkg_setup() { src_configure() { export ac_cv_lib_z_gzopen=$(usex zlib) local myeconfargs=( - --docdir='$(datarootdir)'/doc/${PF} --with-systemdtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d - --enable-setuid + --disable-setuid #662438 --enable-cache-owner=man --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 1x 2x 3x 4x 5x 6x 7x 8x" $(use_enable nls) @@ -78,10 +77,10 @@ src_configure() { src_install() { default dodoc docs/{HACKING,TODO} - prune_libtool_files + find "${ED}" -name "*.la" -delete || die exeinto /etc/cron.daily - newexe "${FILESDIR}"/man-db.cron man-db #289884 + newexe "${FILESDIR}"/man-db.cron-r1 man-db #289884 } pkg_preinst() { @@ -115,8 +114,8 @@ pkg_preinst() { } pkg_postinst() { - if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then + if [[ $(ver_cut 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then einfo "Rebuilding man-db from scratch with new database format!" - mandb --quiet --create + su man -s /bin/sh -c 'mandb --quiet --create' 2>/dev/null fi }