public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/gentoolkit/
Date: Sat, 12 Mar 2016 17:36:23 +0000 (UTC)	[thread overview]
Message-ID: <1457804179.0ae76143a26660f4b4a2b94fe7ab6c2f305aaf48.floppym@gentoo> (raw)

commit:     0ae76143a26660f4b4a2b94fe7ab6c2f305aaf48
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 12 16:40:29 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Mar 12 17:36:19 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ae76143

app-portage/gentoolkit: Create /var/cache/revdep-rebuild in pkg_postinst

This resolves a QA warning.

QA Notice: This ebuild installs into paths that should be created at runtime.
 To fix, simply do not install into these directories.  Instead, your package
 should create dirs on the fly at runtime as needed via init scripts/etc...

  var/cache
  var/cache/revdep-rebuild
  var/cache/revdep-rebuild/.keep_app-portage_gentoolkit-0

We already install a tmpfiles entry to recreate the directory on boot.

Package-Manager: portage-2.2.28_p57

 .../{gentoolkit-0.3.1.ebuild => gentoolkit-0.3.1-r1.ebuild}   | 11 +++++------
 app-portage/gentoolkit/gentoolkit-9999.ebuild                 | 11 +++++------
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/app-portage/gentoolkit/gentoolkit-0.3.1.ebuild b/app-portage/gentoolkit/gentoolkit-0.3.1-r1.ebuild
similarity index 93%
rename from app-portage/gentoolkit/gentoolkit-0.3.1.ebuild
rename to app-portage/gentoolkit/gentoolkit-0.3.1-r1.ebuild
index 7621d42..55d3f21 100644
--- a/app-portage/gentoolkit/gentoolkit-0.3.1.ebuild
+++ b/app-portage/gentoolkit/gentoolkit-0.3.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -38,11 +38,6 @@ python_prepare_all() {
 python_install_all() {
 	distutils-r1_python_install_all
 
-	# Create cache directory for revdep-rebuild
-	keepdir /var/cache/revdep-rebuild
-	use prefix || fowners root:0 /var/cache/revdep-rebuild
-	fperms 0700 /var/cache/revdep-rebuild
-
 	# remove on Gentoo Prefix platforms where it's broken anyway
 	if use prefix; then
 		elog "The revdep-rebuild command is removed, the preserve-libs"
@@ -55,6 +50,10 @@ python_install_all() {
 }
 
 pkg_postinst() {
+	# Create cache directory for revdep-rebuild
+	mkdir -p -m 0755 "${EROOT%/}"/var/cache
+	mkdir -p -m 0700 "${EROOT%/}"/var/cache/revdep-rebuild
+
 	# Only show the elog information on a new install
 	if [[ ! ${REPLACING_VERSIONS} ]]; then
 		elog

diff --git a/app-portage/gentoolkit/gentoolkit-9999.ebuild b/app-portage/gentoolkit/gentoolkit-9999.ebuild
index bba13e5..436c76f 100644
--- a/app-portage/gentoolkit/gentoolkit-9999.ebuild
+++ b/app-portage/gentoolkit/gentoolkit-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -39,11 +39,6 @@ python_prepare_all() {
 python_install_all() {
 	distutils-r1_python_install_all
 
-	# Create cache directory for revdep-rebuild
-	keepdir /var/cache/revdep-rebuild
-	use prefix || fowners root:0 /var/cache/revdep-rebuild
-	fperms 0700 /var/cache/revdep-rebuild
-
 	# remove on Gentoo Prefix platforms where it's broken anyway
 	if use prefix; then
 		elog "The revdep-rebuild command is removed, the preserve-libs"
@@ -56,6 +51,10 @@ python_install_all() {
 }
 
 pkg_postinst() {
+	# Create cache directory for revdep-rebuild
+	mkdir -p -m 0755 "${EROOT%/}"/var/cache
+	mkdir -p -m 0700 "${EROOT%/}"/var/cache/revdep-rebuild
+
 	# Only show the elog information on a new install
 	if [[ ! ${REPLACING_VERSIONS} ]]; then
 		elog


             reply	other threads:[~2016-03-12 17:36 UTC|newest]

Thread overview: 160+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-12 17:36 Mike Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-01  1:10 [gentoo-commits] repo/gentoo:master commit in: app-portage/gentoolkit/ Matt Turner
2024-10-22  1:34 Sam James
2024-09-10  8:10 Jakov Smolić
2024-09-10  2:32 Matt Turner
2024-07-09 14:50 Michał Górny
2024-07-09 14:50 Michał Górny
2024-06-02 21:16 Sam James
2024-05-08 21:44 Sam James
2024-04-25 20:40 Sam James
2024-03-29  4:18 Sam James
2024-03-12 21:46 Sam James
2024-01-19  6:38 Sam James
2024-01-18 21:01 Matt Turner
2024-01-18 21:01 Matt Turner
2024-01-09  0:06 Sam James
2023-12-28  3:53 Sam James
2023-12-23 17:29 Sam James
2023-12-12  8:01 Arthur Zamarin
2023-12-12  8:01 Arthur Zamarin
2023-12-12  8:01 Arthur Zamarin
2023-12-12  8:01 Arthur Zamarin
2023-12-12  8:01 Arthur Zamarin
2023-12-12  8:01 Arthur Zamarin
2023-12-12  8:01 Arthur Zamarin
2023-12-12  8:01 Arthur Zamarin
2023-10-20  0:58 Sam James
2023-10-12  5:04 Sam James
2023-10-03 15:45 Sam James
2023-10-03 15:44 Sam James
2023-08-29  0:39 Sam James
2023-08-27  0:09 Sam James
2023-08-21  5:23 Sam James
2023-03-20  3:51 Sam James
2023-03-20  3:51 Sam James
2022-12-03 12:13 Arthur Zamarin
2022-12-03 12:10 Sam James
2022-12-03 12:10 Sam James
2022-12-03 12:08 Arthur Zamarin
2022-07-12  7:45 Sam James
2022-07-12  0:36 Brian Dolbec
2022-07-10 19:20 Brian Dolbec
2022-05-05  7:10 WANG Xuerui
2022-05-05  7:10 WANG Xuerui
2021-08-17  0:56 Sam James
2021-08-07 20:26 Louis Sautier
2021-05-11 15:45 Sergei Trofimovich
2021-05-09  4:05 Sam James
2021-05-09  4:05 Sam James
2021-05-09  1:31 Sam James
2021-05-09  1:31 Sam James
2021-05-09  1:31 Sam James
2021-05-09  1:29 Sam James
2021-05-09  1:29 Sam James
2021-03-02  3:45 Matt Turner
2021-03-02  3:45 Matt Turner
2021-03-02  3:45 Matt Turner
2021-01-07 15:41 Fabian Groffen
2021-01-06 13:23 Fabian Groffen
2020-12-27 14:01 Fabian Groffen
2020-12-20 17:23 Matt Turner
2020-11-14  0:50 Zac Medico
2020-10-07  9:55 Georgy Yakovlev
2020-09-07  8:47 Sergei Trofimovich
2020-09-06  7:49 Sergei Trofimovich
2020-08-29 23:50 Sam James
2020-08-18 16:52 Agostino Sarubbo
2020-08-18 11:22 Agostino Sarubbo
2020-08-18 11:16 Agostino Sarubbo
2020-08-17 14:52 Agostino Sarubbo
2020-08-17 14:52 Agostino Sarubbo
2020-08-17  7:33 Sam James
2020-04-24  9:03 Michał Górny
2020-04-24  9:03 Michał Górny
2020-04-21 21:06 Sergei Trofimovich
2020-04-21 10:13 Mart Raudsepp
2020-04-20  9:52 Agostino Sarubbo
2020-04-20  9:50 Agostino Sarubbo
2020-04-20  9:48 Agostino Sarubbo
2020-04-20  9:46 Agostino Sarubbo
2020-04-20  9:45 Agostino Sarubbo
2020-04-20  9:29 Agostino Sarubbo
2020-04-19 23:55 Sergei Trofimovich
2020-03-12 16:56 Matt Turner
2020-02-26 12:38 Michał Górny
2020-01-26 15:29 Michał Górny
2020-01-26 15:29 Michał Górny
2020-01-26 15:29 Michał Górny
2019-12-16 14:38 Michał Górny
2019-10-11 22:32 Sergei Trofimovich
2019-10-11 20:44 Aaron Bauman
2019-10-06  5:50 Matt Turner
2019-10-04 21:53 Matt Turner
2019-10-03  8:09 Agostino Sarubbo
2019-10-02 18:53 Agostino Sarubbo
2019-09-29 21:00 Sergei Trofimovich
2019-09-29 20:54 Sergei Trofimovich
2019-09-29 19:26 Sergei Trofimovich
2019-09-29 10:47 Mikle Kolyada
2019-09-28 11:27 Sergei Trofimovich
2019-09-21  5:20 Matt Turner
2019-09-20  6:39 Sergei Trofimovich
2019-09-16 22:03 Sergei Trofimovich
2019-09-16 22:02 Sergei Trofimovich
2019-09-16 22:00 Sergei Trofimovich
2019-09-16  7:56 Agostino Sarubbo
2019-09-16  6:52 Agostino Sarubbo
2019-09-15  9:03 Agostino Sarubbo
2019-09-14  3:06 Aaron Bauman
2019-08-29 11:39 David Seifert
2019-08-19  5:07 Zac Medico
2019-05-18 10:02 Michał Górny
2019-05-11 23:56 Virgil Dupras
2019-05-11 23:56 Virgil Dupras
2019-05-11 20:28 Michał Górny
2019-05-04 14:28 Andreas K. Hüttel
2019-04-01  2:08 Virgil Dupras
2019-04-01  2:08 Virgil Dupras
2018-08-07 22:57 Zac Medico
2018-08-07 22:27 Patrice Clement
2018-08-02 15:41 Mike Pagano
2018-06-08  0:07 Mike Frysinger
2018-06-08  0:07 Mike Frysinger
2018-05-27 20:26 Mikle Kolyada
2018-05-26 10:20 Mart Raudsepp
2018-05-25  8:41 Sergei Trofimovich
2018-05-24 21:31 Mikle Kolyada
2018-01-30  7:32 Michał Górny
2018-01-30  7:32 Michał Górny
2018-01-30  7:32 Michał Górny
2018-01-10  4:18 Mike Frysinger
2017-12-12 21:15 Paul Varner
2017-10-17 19:07 Markus Meier
2017-10-12 21:19 Thomas Deutschmann
2017-10-11 18:07 Manuel Rüger
2017-10-08 19:32 Sergei Trofimovich
2017-10-06 10:30 Sergei Trofimovich
2017-10-05  8:05 Sergei Trofimovich
2017-09-02 15:04 Michael Palimaka
2017-06-05  2:01 Benda XU
2017-06-04 22:25 Sergei Trofimovich
2017-05-18 13:09 Michał Górny
2017-04-25  5:00 Jeroen Roovers
2017-03-22 21:33 Brian Dolbec
2017-03-22 18:25 Brian Dolbec
2017-03-17 10:42 Agostino Sarubbo
2017-03-17 10:26 Agostino Sarubbo
2017-03-16  7:28 Michael Weber
2017-02-24 23:14 Michael Weber
2016-12-29 19:12 Paul Varner
2016-12-18 10:58 Zac Medico
2016-12-17 13:26 Aaron Bauman
2016-10-02  8:04 Jeroen Roovers
2016-09-27 18:39 Markus Meier
2016-09-23 17:40 Tobias Klausmann
2016-08-10  8:48 Mike Frysinger
2016-07-08 17:44 Brian Dolbec
2016-06-06 15:54 Brian Dolbec
2015-12-16 18:00 Brian Dolbec
2015-10-15 20:22 Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1457804179.0ae76143a26660f4b4a2b94fe7ab6c2f305aaf48.floppym@gentoo \
    --to=floppym@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox