1 |
Dan Armak wrote: [Thu Jun 30 2005, 05:11:10PM EDT] |
2 |
> Instead of 'exit 1', qt_min_version should use die. I use that in |
3 |
> deprange and it does work inside $DEPEND. |
4 |
|
5 |
Well, it's more visible, but it doesn't stop the emerge. I just put |
6 |
DEPEND="$(die)" into an ebuild to test. Here is what happens. It |
7 |
also gives you an idea of why putting functions into DEPEND is bad: |
8 |
they get evaluated A LOT. (jump down for more message content) |
9 |
|
10 |
---------------------------------------------------------------------- |
11 |
|
12 |
$ sudo emerge keychain |
13 |
|
14 |
Performing Global Updates: /opt/agriffis/portage/profiles/updates/3Q-2004 |
15 |
(Could take a couple of minutes if you have a lot of binary packages.) |
16 |
.='update pass' *='binary update' @='/var/db move' |
17 |
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*' |
18 |
.................................................................................................................................................................................................. |
19 |
Calculating dependencies |
20 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
21 |
!!! Function , Line 15, Exitcode 0 |
22 |
!!! (no error message) |
23 |
!!! If you need support, post the topmost build error, NOT this status message. |
24 |
...done! |
25 |
>>> emerge (1 of 1) net-misc/keychain-2.5.4.1 to / |
26 |
|
27 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
28 |
!!! Function , Line 15, Exitcode 0 |
29 |
!!! (no error message) |
30 |
!!! If you need support, post the topmost build error, NOT this status message. |
31 |
|
32 |
>>> md5 src_uri ;-) keychain-2.5.4.1.tar.bz2 |
33 |
|
34 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
35 |
!!! Function , Line 15, Exitcode 0 |
36 |
!!! (no error message) |
37 |
!!! If you need support, post the topmost build error, NOT this status message. |
38 |
|
39 |
|
40 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
41 |
!!! Function , Line 15, Exitcode 0 |
42 |
!!! (no error message) |
43 |
!!! If you need support, post the topmost build error, NOT this status message. |
44 |
|
45 |
>>> Unpacking source... |
46 |
>>> Unpacking keychain-2.5.4.1.tar.bz2 to /var/tmp/portage/keychain-2.5.4.1/work |
47 |
>>> Source unpacked. |
48 |
|
49 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
50 |
!!! Function , Line 15, Exitcode 0 |
51 |
!!! (no error message) |
52 |
!!! If you need support, post the topmost build error, NOT this status message. |
53 |
|
54 |
|
55 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
56 |
!!! Function , Line 15, Exitcode 0 |
57 |
!!! (no error message) |
58 |
!!! If you need support, post the topmost build error, NOT this status message. |
59 |
|
60 |
>>> Test phase [not enabled]: net-misc/keychain-2.5.4.1 |
61 |
|
62 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
63 |
!!! Function , Line 15, Exitcode 0 |
64 |
!!! (no error message) |
65 |
!!! If you need support, post the topmost build error, NOT this status message. |
66 |
|
67 |
|
68 |
>>> Install keychain-2.5.4.1 into /var/tmp/portage/keychain-2.5.4.1/image/ category net-misc |
69 |
man: |
70 |
prepallstrip: |
71 |
strip: ia64-unknown-linux-gnu-strip --strip-unneeded |
72 |
strip: ia64-unknown-linux-gnu-strip --strip-unneeded |
73 |
>>> Completed installing keychain-2.5.4.1 into /var/tmp/portage/keychain-2.5.4.1/image/ |
74 |
|
75 |
>>> Merging net-misc/keychain-2.5.4.1 to / |
76 |
|
77 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
78 |
!!! Function , Line 15, Exitcode 0 |
79 |
!!! (no error message) |
80 |
!!! If you need support, post the topmost build error, NOT this status message. |
81 |
|
82 |
--- /usr/ |
83 |
--- /usr/bin/ |
84 |
>>> /usr/bin/keychain |
85 |
--- /usr/share/ |
86 |
--- /usr/share/doc/ |
87 |
--- /usr/share/doc/keychain-2.5.4.1/ |
88 |
>>> /usr/share/doc/keychain-2.5.4.1/README.gz |
89 |
>>> /usr/share/doc/keychain-2.5.4.1/ChangeLog.gz |
90 |
>>> /usr/share/doc/keychain-2.5.4.1/keychain.pod.gz |
91 |
--- /usr/share/man/ |
92 |
--- /usr/share/man/man1/ |
93 |
>>> /usr/share/man/man1/keychain.1.gz |
94 |
>>> Safely unmerging already-installed instance... |
95 |
|
96 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
97 |
!!! Function , Line 15, Exitcode 0 |
98 |
!!! (no error message) |
99 |
!!! If you need support, post the topmost build error, NOT this status message. |
100 |
|
101 |
--- !mtime obj /usr/share/man/man1/keychain.1.gz |
102 |
--- !mtime obj /usr/share/doc/keychain-2.5.4.1/keychain.pod.gz |
103 |
--- !mtime obj /usr/share/doc/keychain-2.5.4.1/README.gz |
104 |
--- !mtime obj /usr/share/doc/keychain-2.5.4.1/ChangeLog.gz |
105 |
--- !mtime obj /usr/bin/keychain |
106 |
--- !empty dir /usr/share/man/man1 |
107 |
--- !empty dir /usr/share/man |
108 |
--- !empty dir /usr/share/doc/keychain-2.5.4.1 |
109 |
--- !empty dir /usr/share/doc |
110 |
--- !empty dir /usr/share |
111 |
--- !empty dir /usr/bin |
112 |
--- !empty dir /usr |
113 |
|
114 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
115 |
!!! Function , Line 15, Exitcode 0 |
116 |
!!! (no error message) |
117 |
!!! If you need support, post the topmost build error, NOT this status message. |
118 |
|
119 |
>>> original instance of package unmerged safely. |
120 |
|
121 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
122 |
!!! Function , Line 15, Exitcode 0 |
123 |
!!! (no error message) |
124 |
!!! If you need support, post the topmost build error, NOT this status message. |
125 |
|
126 |
|
127 |
* Please see the Keychain Guide at |
128 |
* http://www.gentoo.org/doc/en/keychain-guide.xml |
129 |
* for help getting keychain running |
130 |
|
131 |
>>> Regenerating /etc/ld.so.cache... |
132 |
>>> net-misc/keychain-2.5.4.1 merged. |
133 |
|
134 |
!!! ERROR: net-misc/keychain-2.5.4.1 failed. |
135 |
!!! Function , Line 15, Exitcode 0 |
136 |
!!! (no error message) |
137 |
!!! If you need support, post the topmost build error, NOT this status message. |
138 |
|
139 |
|
140 |
>>> clean: No packages selected for removal. |
141 |
|
142 |
>>> Auto-cleaning packages ... |
143 |
|
144 |
>>> No outdated packages were found on your system. |
145 |
|
146 |
|
147 |
* GNU info directory index is up-to-date. |
148 |
* IMPORTANT: 60 config files in /etc need updating. |
149 |
* IMPORTANT: 24 config files in /usr/lib/X11/xkb need updating. |
150 |
* Type emerge --help config to learn how to update config files. |
151 |
|
152 |
---------------------------------------------------------------------- |
153 |
|
154 |
For the curious, here is the current list of qt deps in portage: |
155 |
|
156 |
$ egrep -hro '[<>=]*x11-libs/qt-[-0-9r.*]+' --include='*.e*' . | sort -u |
157 |
=x11-libs/qt-2* |
158 |
=x11-libs/qt-3* |
159 |
=x11-libs/qt-3.1* |
160 |
=x11-libs/qt-3.3* |
161 |
>=x11-libs/qt-2.2.0 |
162 |
>=x11-libs/qt-2.2.4 |
163 |
>=x11-libs/qt-2.3 |
164 |
>=x11-libs/qt-2.3.0 |
165 |
>=x11-libs/qt-3 |
166 |
>=x11-libs/qt-3.0 |
167 |
>=x11-libs/qt-3.0.0 |
168 |
>=x11-libs/qt-3.0.1 |
169 |
>=x11-libs/qt-3.0.3 |
170 |
>=x11-libs/qt-3.0.5 |
171 |
>=x11-libs/qt-3.1 |
172 |
>=x11-libs/qt-3.1.0 |
173 |
>=x11-libs/qt-3.1.0-r1 |
174 |
>=x11-libs/qt-3.1.0-r3 |
175 |
>=x11-libs/qt-3.1.1 |
176 |
>=x11-libs/qt-3.1.2 |
177 |
>=x11-libs/qt-3.1.2-r3 |
178 |
>=x11-libs/qt-3.2 |
179 |
>=x11-libs/qt-3.2.0 |
180 |
>=x11-libs/qt-3.2.1-r2 |
181 |
>=x11-libs/qt-3.2.3 |
182 |
>=x11-libs/qt-3.3 |
183 |
>=x11-libs/qt-3.3.0 |
184 |
>=x11-libs/qt-3.3.0-r1 |
185 |
>=x11-libs/qt-3.3.1 |
186 |
>=x11-libs/qt-3.3.2 |
187 |
>=x11-libs/qt-3.3.3 |
188 |
>=x11-libs/qt-3.3.3-r1 |
189 |
>=x11-libs/qt-3.3.4 |
190 |
|
191 |
I agree with vapier, btw, I'd rather not see qt split into separate |
192 |
packages just to work around a lack in portage (which I think we all |
193 |
expect will be fixed eventually). I'm not completely against using |
194 |
a function to do what you're doing, but I want to make sure you |
195 |
understand that it's only superficially better than using a set of |
196 |
variables in qt.eclass. |
197 |
|
198 |
Thanks for taking the time to solve this kind of problem and being |
199 |
willing to discuss it. |
200 |
|
201 |
Regards, |
202 |
Aron |
203 |
|
204 |
P.S. I committed a couple bash syntax and whitespace fixes to |
205 |
qt.eclass plus changed the error message from echo to die. |
206 |
|
207 |
-- |
208 |
Aron Griffis |
209 |
Gentoo Linux Developer |