1 |
As promised, here is the slimmed down version of the Prefix quiz. As |
2 |
requested, I'll post the answers on -core. |
3 |
|
4 |
|
5 |
Prefix development quiz (Zero taste) |
6 |
|
7 |
** when porting ebuilds for Gentoo Prefix, one will get confronted with |
8 |
certain problems, these two questions hint at such problems ** |
9 |
|
10 |
4. Package Y has a configure script that's just being run by econf. |
11 |
You just added Y and now try to install it. What do you watch |
12 |
for? |
13 |
5. configure for package Z says "checking for libc... /lib/libc.so.6" |
14 |
how do you proceed? |
15 |
|
16 |
** working with Gentoo Prefix requires to have basic knowledge about how |
17 |
various Prefix components interact with the system ** |
18 |
|
19 |
1. Which variables are specific to Prefix? What does each of them |
20 |
represent? How can you construct them? |
21 |
2. An ebuild in the main tree does |
22 |
emake DESTDIR="${D}" somedir="${D}/somedir" otherdir="/other" install |
23 |
what would you change to make it correct in Prefix? |
24 |
3. Same question for |
25 |
insinto /usr/bin |
26 |
8. An eapify-ed ebuild contains if [ ${EROOT} = "/" ], is this correct? |
27 |
|
28 |
** once potential problems can be recognised, solutions to them have to |
29 |
be implemented ** |
30 |
|
31 |
4. A configure scripts checks for gawk and finds /usr/bin/gawk, how do |
32 |
you proceed? What if it checks for a specific program via a |
33 |
--with-program flag? |
34 |
5. A package installs objects or libraries that depend on other shared |
35 |
libraries. What do you check? What if the package installs some |
36 |
scripts? |
37 |
6. You fire up $EDITOR which you just emerged, and notice that you get |
38 |
different colours than $EDITOR in regular Gentoo. What went probably |
39 |
wrong? |
40 |
|
41 |
** optional: Gentoo Prefix is different from other offset-based |
42 |
solutions in a number of ways. The following question reveals the |
43 |
most(?) developer-friendly difference ** |
44 |
|
45 |
7. References to dynamic libraries in Prefix are sort of "fixed" to find |
46 |
the Prefix libraries. Why is this done? |
47 |
|
48 |
|
49 |
-- |
50 |
Fabian Groffen |
51 |
Gentoo on a different level |