Gentoo Archives: gentoo-dev

From: Marcelo Fontenele S Santos <msantos@×××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Misc questions on ebuilds
Date: Sun, 16 Jun 2002 13:41:18
Message-Id: 200206161541.04319.msantos@pobox.com
In Reply to: Re: [gentoo-dev] Misc questions on ebuilds by Brandon Low
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Saturday 15 June 2002 00:56, Brandon Low wrote:
5 > Have you used the "lintool" script that comes with gentoolkit? It is a
6 > nice tool which checks for most common ebuilding mistakes...
7 >
8 > On Fri, 06/14/02 at 22:21:59 -0500, Keith Gross wrote:
9 > > I'm trying to improve the ebuilds I've been writing by reviewing the
10 > > existing ebuilds but there seems they very widely. Everything from
11 > > simple somewhat crude examples that looksomething like my efforts to
12 > > other that are much larger and elaborate.
13
14 Hi,
15
16 I have some questions about lintool.
17
18 In the lintool man page it says that it checks for conformance with the ebuild
19 style guide. I found a Gentoo Linux Developers HOWTO and the Eclass (OOP-like
20 ebuild) HOWTO but no Style Guide. Where is it?
21
22 I also don't know what those errors mean:
23 - - Testing for malformed headers
24 - - Testing for presence of env vars
25
26 What is a malformed header?
27 Or a wellformed?
28 Is the one in skel.ebuild correct?
29
30 What is the error in using an env var inside an ebuild?
31 How can/can't one be used?
32
33 If you run lintool on skel.ebuild it gives:
34
35 /usr/portage/skel.ebuild : Not
36 OK
37
38 - -------------------------------------------------------------------------------
39 Summary for all 1 ebuild(s) checked #
40 errors/warns
41 - -------------------------------------------------------------------------------
42 Testing for illegal space characters, weird backslash formatting : 0 / 0
43 Testing for malformed headers : 0 / 1
44 Testing for occurence of deprecated try : 0 / 0
45 Testing for superfluous A=${P}.tar.gz : 0 / 0
46 Testing for empty DEPEND : 0 / 1
47 Testing for empty HOMEPAGE : 0 / 0
48 Testing for empty DESCRIPTION : 0 / 0
49 Testing for presence of env vars : 1 / 1
50 Testing for sane USE flag usage : 0 / 0
51
52 Total number of ebuilds with errors : 1 (100%)
53 Total number of ebuilds with warnings : 1 (100%)
54
55 Thanks,
56 - --
57 Marcelo Fontenele S Santos<msantos@×××××.com>
58
59 ICQ# 2103731
60 -----BEGIN PGP SIGNATURE-----
61 Version: GnuPG v1.0.7 (GNU/Linux)
62
63 iD8DBQE9DNu0CBYGr8x5oV8RAl54AJ0RIoZIWwewBsUcd1h62Hjge3PrewCdHitS
64 7+TW6Yw1t0X8G0X2r+uffeA=
65 =CcxG
66 -----END PGP SIGNATURE-----