1 |
betelgeuse 10/04/24 09:44:47 |
2 |
|
3 |
Modified: end-quiz.txt |
4 |
Log: |
5 |
Add documentation references to the end quiz. |
6 |
|
7 |
Revision Changes Path |
8 |
1.14 xml/htdocs/proj/en/devrel/quiz/end-quiz.txt |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/quiz/end-quiz.txt?rev=1.14&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/quiz/end-quiz.txt?rev=1.14&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/quiz/end-quiz.txt?r1=1.13&r2=1.14 |
13 |
|
14 |
Index: end-quiz.txt |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/devrel/quiz/end-quiz.txt,v |
17 |
retrieving revision 1.13 |
18 |
retrieving revision 1.14 |
19 |
diff -u -r1.13 -r1.14 |
20 |
--- end-quiz.txt 23 Mar 2010 14:40:12 -0000 1.13 |
21 |
+++ end-quiz.txt 24 Apr 2010 09:44:47 -0000 1.14 |
22 |
@@ -14,19 +14,29 @@ |
23 |
SRC_URI="http://foomatic.example.com/download/foomatic-1.3-7b.tar.bz2" |
24 |
S=${WORKDIR}/foomatic-1.3-7b |
25 |
|
26 |
+docs: devmanual |
27 |
+ |
28 |
2. You have a patch for foomatic which enables SSL support that is optional |
29 |
at build time. Assuming that foomatic uses an autotools based build system |
30 |
provide most probable changes required in an EAPI="0" ebuild. What should |
31 |
be done for the ebuild in case it uses EAPI="2"? |
32 |
|
33 |
+docs: devmanual |
34 |
+ |
35 |
3. What's the difference between local and global scope in an ebuild? |
36 |
|
37 |
+docs: handbook |
38 |
+ |
39 |
4. Why should an external application (for example sed/grep) not be |
40 |
called in global scope? What alternative methods can be used? |
41 |
|
42 |
+docs: devmanual |
43 |
+ |
44 |
5. What is wrong with using $(somecommand) or `somecommand` or $ARCH |
45 |
inside SRC_URI, DEPEND, etc? |
46 |
|
47 |
+docs: devmanual |
48 |
+ |
49 |
6. Explain what's incorrect about the following code snippets and suggest |
50 |
an alternative. |
51 |
|
52 |
@@ -34,16 +44,22 @@ |
53 |
# This ebuild doesn't like the -mcpu=ultrasparc CFLAG, so drop to v9 |
54 |
CFLAGS=${CFLAGS/-mcpu=ultrasparc/-mcpu=v9} |
55 |
|
56 |
+docs: devmanual |
57 |
+ |
58 |
6.b |
59 |
# Upstream don't support user-specified CFLAGS |
60 |
unset CFLAGS |
61 |
|
62 |
+docs: devmanual |
63 |
+ |
64 |
6.c |
65 |
# Extra settings for when SSL is enabled |
66 |
if [ "`use ssl `" ] ; then |
67 |
# blah |
68 |
fi |
69 |
|
70 |
+docs: devmanual |
71 |
+ |
72 |
6.d |
73 |
# Extra options for configure |
74 |
use jpeg && myconf="--enable-jpeg" \ |
75 |
@@ -54,51 +70,79 @@ |
76 |
|| myconf="${myconf} --disable-gif89a" |
77 |
econf ${myconf} |
78 |
|
79 |
+docs: devmanual |
80 |
+ |
81 |
6.e |
82 |
# If we USE foo, we need to DEPEND upon libfoo. Unfortunately |
83 |
# foo is completely broken on some archs |
84 |
DEPEND="!x86? ( !amd64? ( !ppc? ( foo? ( >=dev-libs/libfoo-1.2 ) ) ) )" |
85 |
|
86 |
+docs: devmanual |
87 |
+ |
88 |
6.f |
89 |
# If USE=fnord is enabled, make extra targets: |
90 |
use fnord && ( emake fnordification || die "it broke" ) |
91 |
|
92 |
+docs: devmanual |
93 |
+ |
94 |
7. Explain briefly the purpose of the following tools: |
95 |
grep, cut, sed, cat, wc, awk |
96 |
|
97 |
+docs: devmanual |
98 |
+ |
99 |
8. Why are 'head -5' and 'tail -5' bad? What should be used instead? |
100 |
|
101 |
+docs: |
102 |
+ |
103 |
9. You're writing an ebuild and init script for a server application |
104 |
that needs networking to be available when started and can also |
105 |
use a system logger if one is available. How should this be |
106 |
written in the init script? |
107 |
|
108 |
+docs: devmanual |
109 |
+ |
110 |
10. What is the 'Gentoo Way' of allowing the user to pass other options |
111 |
to the previously mentioned server application? |
112 |
|
113 |
+docs: devmanual |
114 |
+ |
115 |
11. What is the 'Gentoo Way' of globally setting environment variables |
116 |
for all users? |
117 |
|
118 |
+docs: devmanual |
119 |
+ |
120 |
12. What directory should be used for application-generated |
121 |
non-temporary data? |
122 |
|
123 |
+docs: devmanual |
124 |
+ |
125 |
13. Which directory should manual (man) pages be in and how should they |
126 |
be installed from an ebuild? |
127 |
|
128 |
+docs: handbook |
129 |
+ |
130 |
14. On Gentoo Linux systems, what is the purpose of /usr/local/bin? |
131 |
|
132 |
+docs: devmanual |
133 |
+ |
134 |
15. When should you use || die "msg" with commands/functions? |
135 |
Could || die always be moved inside those functions/commands? |
136 |
|
137 |
+docs: devmanual |
138 |
+ |
139 |
16. You are committing a new package to the tree. What will you have in |
140 |
the KEYWORDS variable? |
141 |
|
142 |
+docs: devmanual |
143 |
+ |
144 |
17. You are bumping foomatic's ebuild from version 1.2 to version |
145 |
1.3. The new release contains bugfixes and new |
146 |
functionality. The current KEYWORDS for 1.2 are |
147 |
"x86 sparc ~mips amd64" -- what will KEYWORDS be for |
148 |
the new 1.3 ebuild? |
149 |
|
150 |
+docs: devmanual |
151 |
+ |
152 |
18. You are bumping foomatic's ebuild from version 1.3 to 1.4. The |
153 |
new release extends functionality and introduces a new |
154 |
dependency on libfnord version 1.2 or later. The |
155 |
@@ -106,6 +150,8 @@ |
156 |
and the KEYWORDS for libfnord-1.2 are "x86 ~sparc" -- |
157 |
what will you do? |
158 |
|
159 |
+docs: devmanual |
160 |
+ |
161 |
19. You are bumping foomatic's ebuild from version 1.4 to 1.5. This |
162 |
release introduces new optional support for the libgerbil |
163 |
library, which you are controlling via the gerbil global |
164 |
@@ -113,7 +159,11 @@ |
165 |
doesn't work properly on big endian systems, and so has |
166 |
"-sparc -mips" in the KEYWORDS. How will you handle this? |
167 |
|
168 |
+docs: devmanual |
169 |
+ |
170 |
20. You are bumping foomatic's ebuild from version 1.5 to version |
171 |
2.0. This new version is a massive rewrite which introduces |
172 |
huge changes to the build system, the required libraries |
173 |
and how the code works. What will you do for KEYWORDS here? |
174 |
+ |
175 |
+docs: devmanual |