public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/tp_smapi/
Date: Wed, 12 Oct 2016 13:51:08 +0000 (UTC)	[thread overview]
Message-ID: <1476280251.36873496dfc4f29ccbee6742863fb56519739797.mjo@gentoo> (raw)

commit:     36873496dfc4f29ccbee6742863fb56519739797
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 12 13:07:42 2016 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Oct 12 13:50:51 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36873496

app-laptop/tp_smapi: new revision that doesn't call pkg_pretend() directly.

Gentoo-Bug: 596622

Package-Manager: portage-2.3.0

 .../{tp_smapi-0.42.ebuild => tp_smapi-0.42-r1.ebuild}        | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/app-laptop/tp_smapi/tp_smapi-0.42.ebuild b/app-laptop/tp_smapi/tp_smapi-0.42-r1.ebuild
similarity index 85%
rename from app-laptop/tp_smapi/tp_smapi-0.42.ebuild
rename to app-laptop/tp_smapi/tp_smapi-0.42-r1.ebuild
index ed4b4a5..8f67166 100644
--- a/app-laptop/tp_smapi/tp_smapi-0.42.ebuild
+++ b/app-laptop/tp_smapi/tp_smapi-0.42-r1.ebuild
@@ -21,7 +21,11 @@ IUSE="hdaps"
 DEPEND="sys-apps/dmidecode"
 RDEPEND="${DEPEND}"
 
-pkg_pretend() {
+# This code is factored out of both pkg_pretend() and pkg_setup()
+# because the PMS states that ebuilds may not call phase functions
+# directly (see the "List of functions" section). This was bug #596616
+# and #596622.
+tp_smapi_pkg_pretend() {
 	linux-mod_pkg_setup
 
 	MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)"
@@ -43,9 +47,13 @@ pkg_pretend() {
 	fi
 }
 
+pkg_pretend() {
+	tp_smapi_pkg_pretend
+}
+
 pkg_setup() {
 	# run again as pkg_pretend is not var safe
-	pkg_pretend
+	tp_smapi_pkg_pretend
 }
 
 src_compile() {


             reply	other threads:[~2016-10-12 13:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-12 13:51 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-02 11:26 [gentoo-commits] repo/gentoo:master commit in: app-laptop/tp_smapi/ Michael Orlitzky
2024-03-02 11:26 Michael Orlitzky
2023-12-22  3:32 Michael Orlitzky
2023-06-18 19:22 Michael Orlitzky
2022-07-27 22:10 Mike Pagano
2022-07-27 22:10 Mike Pagano
2019-08-28 14:34 David Seifert
2019-03-02 21:35 Michael Orlitzky
2019-03-02 20:49 Thomas Deutschmann
2019-03-02 15:24 Mikle Kolyada
2017-07-23 13:49 Michael Orlitzky
2016-12-20  1:08 Michael Orlitzky
2016-08-06  3:07 Michael Orlitzky
2016-04-26 16:51 Austin English
2015-12-23 15:38 Sebastian Pipping
2015-12-20 21:47 Sebastian Pipping

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=1476280251.36873496dfc4f29ccbee6742863fb56519739797.mjo@gentoo \
    --to=mjo@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