public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/pkg_pretend/
@ 2013-07-25  8:28 Justin Lecher
  0 siblings, 0 replies; 3+ messages in thread
From: Justin Lecher @ 2013-07-25  8:28 UTC (permalink / raw
  To: gentoo-commits

commit:     c71bffa07227ab76732ec9afff4a926f0c55a64a
Author:     Thomas D <whissi <AT> whissi <DOT> de>
AuthorDate: Thu Jul 25 07:49:04 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Jul 25 07:49:04 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/devmanual.git;a=commit;h=c71bffa0

pkg_pretend sample used deprecated error message format

Since linux-info.eclass's revision 1.35, which fixed bug #113142, ERROR_* is the preferred format for error message variable names.

---
 ebuild-writing/functions/pkg_pretend/text.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebuild-writing/functions/pkg_pretend/text.xml b/ebuild-writing/functions/pkg_pretend/text.xml
index 9f051f7..0279145 100644
--- a/ebuild-writing/functions/pkg_pretend/text.xml
+++ b/ebuild-writing/functions/pkg_pretend/text.xml
@@ -53,7 +53,7 @@ pkg_pretend() {
 		if [[ -e "${ROOT}"/usr/src/linux/.config ]] ; then
 			if kernel_is lt 2 6 30 ; then
 				CONFIG_CHECK="FUSE_FS"
-				FUSE_FS_ERROR="this is an unrealistic testcase..."
+				ERROR_FUSE_FS="this is an unrealistic testcase..."
 				check_extra_config
 			fi
 		fi


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/pkg_pretend/
@ 2015-03-30 18:21 Markos Chandras
  0 siblings, 0 replies; 3+ messages in thread
From: Markos Chandras @ 2015-03-30 18:21 UTC (permalink / raw
  To: gentoo-commits

commit:     e06fbb1a1067eb1971cecd6c99feaa683d138fae
Author:     Thomas D <whissi <AT> whissi <DOT> de>
AuthorDate: Wed Mar 25 21:25:03 2015 +0000
Commit:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
CommitDate: Wed Mar 25 21:25:03 2015 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e06fbb1a

pkg_pretend: Binary packages also call this function

Proof: Create a dummy ebuild with

  pkg_pretend() {
          echo "Calling pkg_pretend()..."
  }

Now create the binary package:

  # emerge --buildpkgonly app-misc/testpkg::my-overlay

  These are the packages that would be built, in order:

  Calculating dependencies... done!
  [ebuild  N    *] app-misc/testpkg-0.0.1::my-overlay  0 KiB

  Total: 1 package (1 new), Size of downloads: 0 KiB

  >>> Verifying ebuild manifests
  >>> Running pre-merge checks for app-misc/testpkg-0.0.1
  Calling pkg_pretend()...

  [...]

When you now install the binary package, pkg_pretend() will be called again:

  # emerge --usepkg=y -a1 app-misc/testpkg::my-overlay

  These are the packages that would be merged, in order:

  Calculating dependencies... done!
  [binary  N    *] app-misc/testpkg-0.0.1::my-overlay  0 KiB

  Total: 1 package (1 new, 1 binary), Size of downloads: 0 KiB

  Would you like to merge these packages? [Yes/No] y
  >>> Running pre-merge checks for app-misc/testpkg-0.0.1
   * testpkg-0.0.1.tbz2 MD5 SHA1 size ;-) ...              [ ok ]
  Calling pkg_pretend()...

  [...]

 ebuild-writing/functions/pkg_pretend/text.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebuild-writing/functions/pkg_pretend/text.xml b/ebuild-writing/functions/pkg_pretend/text.xml
index 0279145..61d213d 100644
--- a/ebuild-writing/functions/pkg_pretend/text.xml
+++ b/ebuild-writing/functions/pkg_pretend/text.xml
@@ -23,7 +23,7 @@
   </tr>
   <tr>
     <th>Called for</th>
-    <ti>ebuild</ti>
+    <ti>ebuild, binary</ti>
   </tr>
   <tr>
     <th>EAPI</th>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/pkg_pretend/
@ 2016-02-23  7:17 Ulrich Müller
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Müller @ 2016-02-23  7:17 UTC (permalink / raw
  To: gentoo-commits

commit:     6ed89df3a9330ca41d03dbfea052e2ba0116514d
Author:     Vicente Jimenez Aguilar <googuy <AT> gmail <DOT> com>
AuthorDate: Mon Feb 22 16:14:23 2016 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Feb 23 07:14:42 2016 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=6ed89df3

ebuild-writing/functions/pkg_pretend: EAPI for pkg_pretend is 4 not 3

EAPI is 4 not 3, as documented in Package Manager Specification

 ebuild-writing/functions/pkg_pretend/text.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebuild-writing/functions/pkg_pretend/text.xml b/ebuild-writing/functions/pkg_pretend/text.xml
index 61d213d..f3a78f6 100644
--- a/ebuild-writing/functions/pkg_pretend/text.xml
+++ b/ebuild-writing/functions/pkg_pretend/text.xml
@@ -27,7 +27,7 @@
   </tr>
   <tr>
     <th>EAPI</th>
-    <ti>3</ti>
+    <ti>4</ti>
   </tr>
 </table>
 </body>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-23  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23  7:17 [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/pkg_pretend/ Ulrich Müller
  -- strict thread matches above, loose matches on Subject: below --
2015-03-30 18:21 Markos Chandras
2013-07-25  8:28 Justin Lecher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox