1 |
Горлов Максим Викторович <sheridan@×××××××.ru> posted |
2 |
200801211143.52447.sheridan@×××××××.ru, excerpted below, on Mon, 21 Jan |
3 |
2008 11:43:41 +0300: |
4 |
|
5 |
> why firebird support disabled in qt? |
6 |
|
7 |
> [ebuild U ] x11-libs/qt-4.3.3 [4.3.2-r1] USE="cups dbus doc examples |
8 |
> gif jpeg mng opengl pch png postgres qt3support sqlite3 ssl tiff zlib |
9 |
> -accessibility -debug (-firebird) -glib -mysql -nas -nis -odbc -sqlite |
10 |
> -xinerama" INPUT_DEVICES="-wacom" 0 kB |
11 |
|
12 |
> how i can enable it? |
13 |
|
14 |
When you see it in parenthesis like that, it's either because it's being |
15 |
removed (in an upgrade or remerge, your current version had the USE flag, |
16 |
the to be merged version no longer has it), or because it's profile- |
17 |
masked. |
18 |
|
19 |
In this case it'd be profile masked. Grepping the cascading profile tree |
20 |
reveals that the base profile has firebird listed in use.mask. Looking |
21 |
therein reveals the following starting on line 143: |
22 |
|
23 |
# Diego Petten.. <flameeyes@g.o> (4 Jan 2007) |
24 |
# Mask the flags for PHP that are available only on x86 |
25 |
[snip] |
26 |
# Shared with amd64 |
27 |
[snip] |
28 |
firebird |
29 |
|
30 |
So it's masked in base, and would be unmasked in the x86 and amd64 |
31 |
profiles, only for some reason it's not for amd64. Now, the same grep |
32 |
turned up a hit in the amd64 profile changelog, from early 2007 as well, |
33 |
referencing bug 156885[1] but no hit in use.mask. The bug is on firebird |
34 |
1.5 series and amd64, while only 2.x (which the bug says is fine on |
35 |
amd64) appears in the tree now, so it should be fine. firebird-2.x is |
36 |
even marked stable on amd64. However, apparently the use-mask fell thru |
37 |
the cracks since it's inherited from the base profile and amd64 simply |
38 |
hasn't unmasked it for their profiles yet. |
39 |
|
40 |
Actually... it's rather more complex than that. Some more bugs to look |
41 |
at: [3 4 5]. The gist according to [4] appears to be that amd64 removed |
42 |
the entry from their use.mask, but didn't realize the base use.mask entry |
43 |
was there (or maybe it was added later). |
44 |
|
45 |
So it appears it /should/ be OK to use, despite the mask. I'd suggest |
46 |
filing yet another bug asking them to put an entry /unmasking/ it in |
47 |
amd64's use.mask, referencing this thread on gmane[2] with all the above |
48 |
notes to hopefully make it easier to follow what happened. Also note bug |
49 |
187532 [4] specifically and point out that removing the entry didn't have |
50 |
the desired effect due to the entry in base's use.mask, mentioning |
51 |
specifically that it's NOT a dup of that bug for that reason. (Or, you |
52 |
could comment on that bug and hope that it's reopened, but if you didn't |
53 |
file the bug and aren't a dev, you're depending on someone else to see |
54 |
the comment and reopen it since you can't, and that may or may not |
55 |
happen.) |
56 |
|
57 |
OK, there's two loose threads remaining to tie up. |
58 |
|
59 |
First, this may or may not be an issue for you, but it's something to be |
60 |
aware of: The licensing for the firebird database isn't compatible with |
61 |
the GPL used by qt. Depending on exactly what you are doing with qt, |
62 |
this might be an issue (you're OK just running it on your machine, but |
63 |
can't distribute the resulting qt as compiled against firebird). See yet |
64 |
another bug: [6]. |
65 |
|
66 |
Second, how do you work around that use-masking? First, create the |
67 |
/etc/portage/profile subdir if necessary. Basically, this subdir acts as |
68 |
a profile that cascades on top of the existing cascading profiles in the |
69 |
tree as pointed to by /etc/make.profile, and you can create any profile |
70 |
entries here you need, reversing or adding to the entries in the existing |
71 |
cascading profile. In this case, we need an entry reversing that |
72 |
use.mask entry in the base profile, so create a use.mask file here, and |
73 |
add an entry negating the previous firebird entry like so (putting the |
74 |
name and location of a file in a comment at the top helps sort things out |
75 |
if the file ever ends up in lost&found after an fsck): |
76 |
|
77 |
# /etc/portage/profile/use.mask |
78 |
|
79 |
# unmask the firebird USE flag as it should work |
80 |
# bug 187532 |
81 |
-firebird |
82 |
|
83 |
FWIW, the portage manpage mentions negating use.mask entries like the |
84 |
above, and mentions that subdir for overrides, but the two mentions are |
85 |
far enough apart it's quite possible someone could fail to connect the |
86 |
dots appropriately. |
87 |
|
88 |
That should do it! =8^) |
89 |
|
90 |
--- |
91 |
References: |
92 |
|
93 |
[1] http://bugs.gentoo.org/show_bug.cgi?id=156885 |
94 |
|
95 |
[2] http://comments.gmane.org/gmane.linux.gentoo.amd64/12323 |
96 |
|
97 |
[3] http://bugs.gentoo.org/show_bug.cgi?id=187922 |
98 |
|
99 |
[4] http://bugs.gentoo.org/show_bug.cgi?id=187532 |
100 |
|
101 |
[5] http://bugs.gentoo.org/show_bug.cgi?id=186791 |
102 |
|
103 |
[6] http://bugs.gentoo.org/show_bug.cgi?id=200284 |
104 |
|
105 |
-- |
106 |
Duncan - List replies preferred. No HTML msgs. |
107 |
"Every nonfree program has a lord, a master -- |
108 |
and if you use the program, he is your master." Richard Stallman |
109 |
|
110 |
-- |
111 |
gentoo-amd64@l.g.o mailing list |