Gentoo Archives: gentoo-embedded

From: Karl Hiramoto <karl@××××××××.org>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] epatch fails on armeb target
Date: Sat, 23 Jun 2007 15:31:45
Message-Id: 467D3C84.6040305@hiramoto.org
1 I'm hoping someone here can help me debug this. On my target, to avoid
2 some of the problems with cross compiling a few packages from i686 to
3 armeb-softfloat-linux-uclibc, i decided to install python, portage, gcc
4 and the utilities to compile natively.
5
6 Many packages now compile, however if a ebuild has a patch epatch
7 almost always fails.
8
9 If i try and patch the files manually, it works fine. so my patch binary
10 is fine.
11
12
13 For example:
14
15 # emerge -v slang
16
17 These are the packages that would be merged, in order:
18
19 Calculating dependencies... done!
20 [ebuild R ] sys-libs/slang-1.4.9-r2 USE="-cjk -unicode" 0 kB
21
22 Total: 1 package (1 reinstall), Size of downloads: 0 kB
23
24
25 >>> Emerging (1 of 1) sys-libs/slang-1.4.9-r2 to /
26 * slang-1.4.9.tar.bz2 RMD160 ;-)
27 ...
28 [ ok ]
29 * slang-1.4.9.tar.bz2 SHA1 ;-)
30 ...
31 [ ok ]
32 * slang-1.4.9.tar.bz2 SHA256 ;-)
33 ...
34 [ ok ]
35 * slang-1.4.9.tar.bz2 size ;-)
36 ...
37 [ ok ]
38 * slang-1.4.9-patches.tar.gz RMD160 ;-)
39 ...
40 [ ok ]
41 * slang-1.4.9-patches.tar.gz SHA1 ;-)
42 ...
43 [ ok ]
44 * slang-1.4.9-patches.tar.gz SHA256 ;-)
45 ...
46 [ ok ]
47 * slang-1.4.9-patches.tar.gz size ;-)
48 ...
49 [ ok ]
50 * checking ebuild checksums ;-)
51 ...
52 [ ok ]
53 * checking auxfile checksums ;-)
54 ...
55 [ ok ]
56 * checking miscfile checksums ;-)
57 ...
58 [ ok ]
59 * checking slang-1.4.9.tar.bz2 ;-)
60 ...
61 [ ok ]
62 * checking slang-1.4.9-patches.tar.gz ;-)
63 ...
64 [ ok ]
65 >>> Unpacking source...
66 >>> Unpacking slang-1.4.9.tar.bz2 to
67 /tmp/portage/sys-libs/slang-1.4.9-r2/work
68 >>> Unpacking slang-1.4.9-patches.tar.gz to
69 /tmp/portage/sys-libs/slang-1.4.9-r2/work
70 * Applying slang-1.4.9.patch ...
71
72 * Failed Patch: slang-1.4.9.patch !
73 * ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )
74 *
75 * Include in your bugreport the contents of:
76 *
77 * /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-11439.out
78
79
80 !!! ERROR: sys-libs/slang-1.4.9-r2 failed.
81 Call stack:
82 ebuild.sh, line 1614: Called dyn_unpack
83 ebuild.sh, line 751: Called qa_call 'src_unpack'
84 ebuild.sh, line 38: Called src_unpack
85 slang-1.4.9-r2.ebuild, line 26: Called epatch
86 '/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
87 eutils.eclass, line 304: Called die
88
89 !!! Failed Patch: slang-1.4.9.patch!
90 !!! If you need support, post the topmost build error, and the call
91 stack if relevant.
92 !!! A complete build log is located at
93 '/tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log'.
94
95
96
97 ---------------------- with debug
98
99 emerge -vd slang
100 myaction None
101 myopts {'--debug': True, '--verbose': True}
102
103 These are the packages that would be merged, in order:
104
105 Calculating dependencies
106 Parent: None
107 Depstring: sys-libs/slang
108 Priority: soft
109 Candidates: ['sys-libs/slang']
110 ebuild: sys-libs/slang-1.4.9-r2
111
112 Parent: ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')
113 Depstring: >=sys-libs/ncurses-5.2-r2
114 Priority: hard
115 Candidates: ['>=sys-libs/ncurses-5.2-r2']
116 Exiting... ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')
117
118 Parent: ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')
119 Depstring: >=sys-libs/ncurses-5.2-r2
120 Priority: medium
121 Candidates: ['>=sys-libs/ncurses-5.2-r2']
122 Exiting... ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')
123 Exiting... None
124 ... done!
125 [ebuild R ] sys-libs/slang-1.4.9-r2 USE="-cjk -unicode" 0 kB
126
127 Total: 1 package (1 reinstall), Size of downloads: 0 kB
128
129
130 >>> Emerging (1 of 1) sys-libs/slang-1.4.9-r2 to /
131 + dyn_clean
132 + '[' -z /tmp/portage/sys-libs/slang-1.4.9-r2 ']'
133 + type -p chflags
134 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/image
135 /tmp/portage/sys-libs/slang-1.4.9-r2/homedir
136 + hasq keeptemp autoconfig distlocks metadata-transfer nodoc noinfo
137 noman sandbox sfperms strict
138 + [[ autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox
139 sfperms strict == *\ \k\e\e\p\t\e\m\p\ * ]]
140 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/temp
141 + hasq keepwork autoconfig distlocks metadata-transfer nodoc noinfo
142 noman sandbox sfperms strict
143 + [[ autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox
144 sfperms strict == *\ \k\e\e\p\w\o\r\k\ * ]]
145 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.logid
146 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.unpacked
147 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.compiled
148 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.tested
149 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.installed
150 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.packaged
151 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/build-info
152 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/work
153 + '[' -f /tmp/portage/sys-libs/slang-1.4.9-r2/.unpacked ']'
154 + rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/distdir
155 ++ find /tmp/portage/sys-libs/slang-1.4.9-r2 -mindepth 1 -maxdepth 1
156 + '[' -z '' ']'
157 + rmdir /tmp/portage/sys-libs/slang-1.4.9-r2
158 + true
159 + set +x
160 * slang-1.4.9.tar.bz2 RMD160 ;-)
161 ... [ ok ]
162 * slang-1.4.9.tar.bz2 SHA1 ;-)
163 ... [ ok ]
164 * slang-1.4.9.tar.bz2 SHA256 ;-)
165 ... [ ok ]
166 * slang-1.4.9.tar.bz2 size ;-)
167 ... [ ok ]
168 * slang-1.4.9-patches.tar.gz RMD160 ;-)
169 ... [ ok ]
170 * slang-1.4.9-patches.tar.gz SHA1 ;-)
171 ... [ ok ]
172 * slang-1.4.9-patches.tar.gz SHA256 ;-)
173 ... [ ok ]
174 * slang-1.4.9-patches.tar.gz size ;-)
175 ... [ ok ]
176 * checking ebuild checksums ;-)
177 ... [ ok ]
178 * checking auxfile checksums ;-)
179 ... [ ok ]
180 * checking miscfile checksums ;-)
181 ... [ ok ]
182 * checking slang-1.4.9.tar.bz2 ;-)
183 ... [ ok ]
184 * checking slang-1.4.9-patches.tar.gz ;-)
185 ... [ ok ]
186 + dyn_setup
187 ++ type -t pre_pkg_setup
188 + '[' '' == function ']'
189 + qa_call pkg_setup
190 ++ shopt
191 + local 'shopts=cdable_vars off
192 cdspell off
193 checkhash off
194 checkwinsize off
195 cmdhist on
196 dotglob off
197 execfail off
198 expand_aliases on
199 extdebug on
200 extglob off
201 extquote on
202 failglob off
203 force_fignore on
204 gnu_errfmt off
205 histappend off
206 histreedit off
207 histverify off
208 hostcomplete on
209 huponexit off
210 interactive_comments on
211 lithist off
212 login_shell off
213 mailwarn off
214 no_empty_cmd_completion off
215 nocaseglob off
216 nocasematch off
217 nullglob off
218 progcomp on
219 promptvars on
220 restricted_shell off
221 shift_verbose off
222 sourcepath on
223 xpg_echo off' 'OLDIFS=
224 '
225 + pkg_setup
226 + return
227 ++ shopt
228 + [[ cdable_vars off
229 cdspell off
230 checkhash off
231 checkwinsize off
232 cmdhist on
233 dotglob off
234 execfail off
235 expand_aliases on
236 extdebug on
237 extglob off
238 extquote on
239 failglob off
240 force_fignore on
241 gnu_errfmt off
242 histappend off
243 histreedit off
244 histverify off
245 hostcomplete on
246 huponexit off
247 interactive_comments on
248 lithist off
249 login_shell off
250 mailwarn off
251 no_empty_cmd_completion off
252 nocaseglob off
253 nocasematch off
254 nullglob off
255 progcomp on
256 promptvars on
257 restricted_shell off
258 shift_verbose off
259 sourcepath on
260 xpg_echo off != cdable_vars off
261 cdspell off
262 checkhash off
263 checkwinsize off
264 cmdhist on
265 dotglob off
266 execfail off
267 expand_aliases on
268 extdebug on
269 extglob off
270 extquote on
271 failglob off
272 force_fignore on
273 gnu_errfmt off
274 histappend off
275 histreedit off
276 histverify off
277 hostcomplete on
278 huponexit off
279 interactive_comments on
280 lithist off
281 login_shell off
282 mailwarn off
283 no_empty_cmd_completion off
284 nocaseglob off
285 nocasematch off
286 nullglob off
287 progcomp on
288 promptvars on
289 restricted_shell off
290 shift_verbose off
291 sourcepath on
292 xpg_echo off ]]
293 + [[
294 != \ \ \
295 ]]
296 + return 0
297 ++ type -t post_pkg_setup
298 + '[' '' == function ']'
299 + set +x
300 + dyn_unpack
301 ++ type -t pre_src_unpack
302 + '[' '' == function ']'
303 + local newstuff=no
304 + '[' -e /tmp/portage/sys-libs/slang-1.4.9-r2/work ']'
305 + '[' no == yes ']'
306 + '[' -e /tmp/portage/sys-libs/slang-1.4.9-r2/work ']'
307 + '[' '!' -d /tmp/portage/sys-libs/slang-1.4.9-r2/work ']'
308 + install -m0700 -d /tmp/portage/sys-libs/slang-1.4.9-r2/work
309 + cd /tmp/portage/sys-libs/slang-1.4.9-r2/work
310 + vecho '>>> Unpacking source...'
311 + quiet_mode
312 + [[ '' -eq 1 ]]
313 + echo '>>> Unpacking source...'
314 >>> Unpacking source...
315 + qa_call src_unpack
316 ++ shopt
317 + local 'shopts=cdable_vars off
318 cdspell off
319 checkhash off
320 checkwinsize off
321 cmdhist on
322 dotglob off
323 execfail off
324 expand_aliases on
325 extdebug on
326 extglob off
327 extquote on
328 failglob off
329 force_fignore on
330 gnu_errfmt off
331 histappend off
332 histreedit off
333 histverify off
334 hostcomplete on
335 huponexit off
336 interactive_comments on
337 lithist off
338 login_shell off
339 mailwarn off
340 no_empty_cmd_completion off
341 nocaseglob off
342 nocasematch off
343 nullglob off
344 progcomp on
345 promptvars on
346 restricted_shell off
347 shift_verbose off
348 sourcepath on
349 xpg_echo off' 'OLDIFS=
350 '
351 + src_unpack
352 + unpack slang-1.4.9.tar.bz2 slang-1.4.9-patches.tar.gz
353 + local x
354 + local y
355 + local myfail
356 + local tar_opts=
357 + '[' -z 'slang-1.4.9.tar.bz2 slang-1.4.9-patches.tar.gz' ']'
358 + for x in '"$@"'
359 + vecho '>>> Unpacking slang-1.4.9.tar.bz2 to
360 /tmp/portage/sys-libs/slang-1.4.9-r2/work'
361 + quiet_mode
362 + [[ '' -eq 1 ]]
363 + echo '>>> Unpacking slang-1.4.9.tar.bz2 to
364 /tmp/portage/sys-libs/slang-1.4.9-r2/work'
365 >>> Unpacking slang-1.4.9.tar.bz2 to
366 /tmp/portage/sys-libs/slang-1.4.9-r2/work
367 + y=slang-1.4.9.tar
368 + y=tar
369 + myfail='slang-1.4.9.tar.bz2 does not exist'
370 + '[' sl = ./ ']'
371 + srcdir=/tmp/portage/sys-libs/slang-1.4.9-r2/distdir/
372 + [[ slang-1.4.9.tar.bz2 == /tmp/portage/sys-libs/slang-1.4.9-r2/distdir* ]]
373 + '[' '!' -s
374 /tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9.tar.bz2 ']'
375 + myfail='failure unpacking slang-1.4.9.tar.bz2'
376 + case "${x##*.}" in
377 + '[' tar == tar ']'
378 + bzip2 -dc /tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9.tar.bz2
379 + tar xof -
380 + _pipestatus=0
381 + [[ 0 -eq 0 ]]
382 + for x in '"$@"'
383 + vecho '>>> Unpacking slang-1.4.9-patches.tar.gz to
384 /tmp/portage/sys-libs/slang-1.4.9-r2/work'
385 + quiet_mode
386 + [[ '' -eq 1 ]]
387 + echo '>>> Unpacking slang-1.4.9-patches.tar.gz to
388 /tmp/portage/sys-libs/slang-1.4.9-r2/work'
389 >>> Unpacking slang-1.4.9-patches.tar.gz to
390 /tmp/portage/sys-libs/slang-1.4.9-r2/work
391 + y=slang-1.4.9-patches.tar
392 + y=tar
393 + myfail='slang-1.4.9-patches.tar.gz does not exist'
394 + '[' sl = ./ ']'
395 + srcdir=/tmp/portage/sys-libs/slang-1.4.9-r2/distdir/
396 + [[ slang-1.4.9-patches.tar.gz ==
397 /tmp/portage/sys-libs/slang-1.4.9-r2/distdir* ]]
398 + '[' '!' -s
399 /tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9-patches.tar.gz ']'
400 + myfail='failure unpacking slang-1.4.9-patches.tar.gz'
401 + case "${x##*.}" in
402 + '[' tar == tar ']'
403 + tar zoxf
404 /tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9-patches.tar.gz
405 + xargs -r -0 chmod -f a+rX,u+w,g-w,o-w
406 + find . -mindepth 1 '!' -type l -print0
407 + cd /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9
408 + epatch /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
409 + local PIPE_CMD=
410 + local STDERR_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/temp/7407.out
411 + local PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/temp/7407.patch
412 + local PATCH_SUFFIX=
413 + local SINGLE_PATCH=no
414 + local x=
415 + unset P4CONFIG P4PORT P4USER
416 + '[' 1 -gt 1 ']'
417 + '[' -n /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch -a
418 -f /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch ']'
419 + SINGLE_PATCH=yes
420 + local
421 EPATCH_SOURCE=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
422 + local EPATCH_SUFFIX=patch
423 + case ${EPATCH_SUFFIX##*\.} in
424 + PIPE_CMD=cat
425 + PATCH_SUFFIX=patch
426 + '[' yes = no ']'
427 + for x in '${EPATCH_SOURCE}'
428 + '[' -f /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch ']'
429 + '[' yes = yes -o
430 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch '!='
431 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch -o /t
432 mp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch '!='
433 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch ']'
434 + local count=0
435 + local 'popts=-g0 -E --no-backup-if-mismatch'
436 + local patchname=slang-1.4.9.patch
437 + '[' -n '' ']'
438 + '[' yes = yes ']'
439 + '[' -n '' ']'
440 + einfo 'Applying slang-1.4.9.patch ...'
441 + elog_base INFO 'Applying slang-1.4.9.patch ...'
442 + local messagetype
443 + '[' -z INFO -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
444 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
445 + case "${1}" in
446 + messagetype=INFO
447 + shift
448 + echo -e 'Applying slang-1.4.9.patch ...'
449 + return 0
450 + [[ yes != \y\e\s ]]
451 + echo -e ' * Applying slang-1.4.9.patch ...'
452 * Applying slang-1.4.9.patch ...
453 + LAST_E_CMD=einfo
454 + return 0
455 + echo '***** slang-1.4.9.patch *****'
456 + echo
457 + '[' 0 -lt 5 ']'
458 + _epatch_draw_line '***** slang-1.4.9.patch *****'
459 + [[ -z ***** slang-1.4.9.patch ***** ]]
460 + echo =============================
461 + echo
462 + '[' patch '!=' patch ']'
463 + PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
464 + echo -n 'PATCH COMMAND: '
465 + echo 'patch -p0 -g0 -E --no-backup-if-mismatch <
466 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
467 + echo
468 + _epatch_draw_line '***** slang-1.4.9.patch *****'
469 + [[ -z ***** slang-1.4.9.patch ***** ]]
470 + echo =============================
471 + '[' patch '!=' patch ']'
472 + count=1
473 + '[' 1 -lt 5 ']'
474 + _epatch_draw_line '***** slang-1.4.9.patch *****'
475 + [[ -z ***** slang-1.4.9.patch ***** ]]
476 + echo =============================
477 + echo
478 + '[' patch '!=' patch ']'
479 + PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
480 + echo -n 'PATCH COMMAND: '
481 + echo 'patch -p1 -g0 -E --no-backup-if-mismatch <
482 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
483 + echo
484 + _epatch_draw_line '***** slang-1.4.9.patch *****'
485 + [[ -z ***** slang-1.4.9.patch ***** ]]
486 + echo =============================
487 + '[' patch '!=' patch ']'
488 + count=2
489 + '[' 2 -lt 5 ']'
490 + _epatch_draw_line '***** slang-1.4.9.patch *****'
491 + [[ -z ***** slang-1.4.9.patch ***** ]]
492 + echo =============================
493 + echo
494 + '[' patch '!=' patch ']'
495 + PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
496 + echo -n 'PATCH COMMAND: '
497 + echo 'patch -p2 -g0 -E --no-backup-if-mismatch <
498 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
499 + echo
500 + _epatch_draw_line '***** slang-1.4.9.patch *****'
501 + [[ -z ***** slang-1.4.9.patch ***** ]]
502 + echo =============================
503 + '[' patch '!=' patch ']'
504 + count=3
505 + '[' 3 -lt 5 ']'
506 + _epatch_draw_line '***** slang-1.4.9.patch *****'
507 + [[ -z ***** slang-1.4.9.patch ***** ]]
508 + echo =============================
509 + echo
510 + '[' patch '!=' patch ']'
511 + PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
512 + echo -n 'PATCH COMMAND: '
513 + echo 'patch -p3 -g0 -E --no-backup-if-mismatch <
514 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
515 + echo
516 + _epatch_draw_line '***** slang-1.4.9.patch *****'
517 + [[ -z ***** slang-1.4.9.patch ***** ]]
518 + echo =============================
519 + '[' patch '!=' patch ']'
520 + count=4
521 + '[' 4 -lt 5 ']'
522 + _epatch_draw_line '***** slang-1.4.9.patch *****'
523 + [[ -z ***** slang-1.4.9.patch ***** ]]
524 + echo =============================
525 + echo
526 + '[' patch '!=' patch ']'
527 + PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
528 + echo -n 'PATCH COMMAND: '
529 + echo 'patch -p4 -g0 -E --no-backup-if-mismatch <
530 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
531 + echo
532 + _epatch_draw_line '***** slang-1.4.9.patch *****'
533 + [[ -z ***** slang-1.4.9.patch ***** ]]
534 + echo =============================
535 + '[' patch '!=' patch ']'
536 + count=5
537 + '[' 5 -lt 5 ']'
538 + '[' patch '!=' patch ']'
539 + '[' 5 -eq 5 ']'
540 + echo
541
542 + eerror 'Failed Patch: slang-1.4.9.patch !'
543 + elog_base ERROR 'Failed Patch: slang-1.4.9.patch !'
544 + local messagetype
545 + '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
546 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
547 + case "${1}" in
548 + messagetype=ERROR
549 + shift
550 + echo -e 'Failed Patch: slang-1.4.9.patch !'
551 + return 0
552 + [[ yes != \y\e\s ]]
553 + echo -e ' * Failed Patch: slang-1.4.9.patch !'
554 * Failed Patch: slang-1.4.9.patch !
555 + LAST_E_CMD=eerror
556 + return 0
557 + eerror ' ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
558 + elog_base ERROR ' (
559 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
560 + local messagetype
561 + '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
562 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
563 + case "${1}" in
564 + messagetype=ERROR
565 + shift
566 + echo -e ' ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
567 + return 0
568 + [[ yes != \y\e\s ]]
569 + echo -e ' * (
570 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
571 * ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )
572 + LAST_E_CMD=eerror
573 + return 0
574 + eerror
575 + elog_base ERROR ''
576 + local messagetype
577 + '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
578 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
579 + case "${1}" in
580 + messagetype=ERROR
581 + shift
582 + echo -e ''
583 + return 0
584 + [[ yes != \y\e\s ]]
585 + echo -e ' * '
586 *
587 + LAST_E_CMD=eerror
588 + return 0
589 + eerror 'Include in your bugreport the contents of:'
590 + elog_base ERROR 'Include in your bugreport the contents of:'
591 + local messagetype
592 + '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
593 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
594 + case "${1}" in
595 + messagetype=ERROR
596 + shift
597 + echo -e 'Include in your bugreport the contents of:'
598 + return 0
599 + [[ yes != \y\e\s ]]
600 + echo -e ' * Include in your bugreport the contents of:'
601 * Include in your bugreport the contents of:
602 + LAST_E_CMD=eerror
603 + return 0
604 + eerror
605 + elog_base ERROR ''
606 + local messagetype
607 + '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
608 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
609 + case "${1}" in
610 + messagetype=ERROR
611 + shift
612 + echo -e ''
613 + return 0
614 + [[ yes != \y\e\s ]]
615 + echo -e ' * '
616 *
617 + LAST_E_CMD=eerror
618 + return 0
619 + eerror '
620 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
621 + elog_base ERROR '
622 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
623 + local messagetype
624 + '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
625 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
626 + case "${1}" in
627 + messagetype=ERROR
628 + shift
629 + echo -e '
630 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
631 + return 0
632 + [[ yes != \y\e\s ]]
633 + echo -e ' *
634 /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
635 * /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out
636 + LAST_E_CMD=eerror
637 + return 0
638 + echo
639
640 + diefunc epatch 304 0 'Failed Patch: slang-1.4.9.patch!'
641 + local funcname=epatch lineno=304 exitcode=0
642 + shift 3
643 + echo
644
645 + echo '!!! ERROR: sys-libs/slang-1.4.9-r2 failed.'
646 !!! ERROR: sys-libs/slang-1.4.9-r2 failed.
647 + dump_trace 2
648 + local funcname= sourcefile= lineno= n e s=yes
649 + declare -i strip=1
650 + [[ -n 2 ]]
651 + strip=2
652 + echo 'Call stack:'
653 Call stack:
654 + (( n = 7 - 1, p = 8 ))
655 + (( n > 2 ))
656 + funcname=dyn_unpack
657 ++ basename /usr/lib/portage/bin/ebuild.sh
658 + sourcefile=ebuild.sh
659 + lineno=1618
660 + args=
661 + [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
662 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
663 unpack ]]
664 + (( j = 1 ))
665 + (( j <= 0 ))
666 + (( p -= 0 ))
667 + echo ' ebuild.sh, line 1618: Called dyn_unpack'
668 ebuild.sh, line 1618: Called dyn_unpack
669 + (( n-- ))
670 + (( n > 2 ))
671 + funcname=qa_call
672 ++ basename /usr/lib/portage/bin/ebuild.sh
673 + sourcefile=ebuild.sh
674 + lineno=751
675 + args=
676 + [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
677 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
678 unpack ]]
679 + (( j = 1 ))
680 + (( j <= 1 ))
681 + newarg=src_unpack
682 + args=''\''src_unpack'\'''
683 + (( ++j ))
684 + (( j <= 1 ))
685 + (( p -= 1 ))
686 + echo ' ebuild.sh, line 751: Called qa_call '\''src_unpack'\'''
687 ebuild.sh, line 751: Called qa_call 'src_unpack'
688 + (( n-- ))
689 + (( n > 2 ))
690 + funcname=src_unpack
691 ++ basename /usr/lib/portage/bin/ebuild.sh
692 + sourcefile=ebuild.sh
693 + lineno=38
694 + args=
695 + [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
696 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
697 unpack ]]
698 + (( j = 1 ))
699 + (( j <= 0 ))
700 + (( p -= 0 ))
701 + echo ' ebuild.sh, line 38: Called src_unpack'
702 ebuild.sh, line 38: Called src_unpack
703 + (( n-- ))
704 + (( n > 2 ))
705 + funcname=epatch
706 ++ basename /usr/portage/sys-libs/slang/slang-1.4.9-r2.ebuild
707 + sourcefile=slang-1.4.9-r2.ebuild
708 + lineno=26
709 + args=
710 + [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
711 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
712 unpack ]]
713 + (( j = 1 ))
714 + (( j <= 1 ))
715 + newarg=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
716 + args=''\''/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'\'''
717 + (( ++j ))
718 + (( j <= 1 ))
719 + (( p -= 1 ))
720 + echo ' slang-1.4.9-r2.ebuild, line 26: Called epatch
721 '\''/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'\'''
722 slang-1.4.9-r2.ebuild, line 26: Called epatch
723 '/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
724 + (( n-- ))
725 + (( n > 2 ))
726 ++ basename /usr/portage/eclass/eutils.eclass
727 + echo ' eutils.eclass, line 304: Called die'
728 eutils.eclass, line 304: Called die
729 + echo
730
731 + echo '!!! Failed Patch: slang-1.4.9.patch!'
732 !!! Failed Patch: slang-1.4.9.patch!
733 + echo '!!! If you need support, post the topmost build error, and the
734 call stack if relevant.'
735 !!! If you need support, post the topmost build error, and the call
736 stack if relevant.
737 + '[' -n /tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log ']'
738 + echo '!!! A complete build log is located at
739 '\''/tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log'\''.'
740 !!! A complete build log is located at
741 '/tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log'.
742 + echo
743
744 + '[' -n '' ']'
745 + '[' unpack == unpack ']'
746 + local x
747 + kill -s SIGTERM 7407
748 ++ exit 1
749
750
751
752 ------- - patch output
753
754
755 cat /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-11439.out
756 ***** slang-1.4.9.patch *****
757
758 =============================
759
760 PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch <
761 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
762
763 =============================
764 patching file src/sldisply.c
765 Hunk #1 succeeded at 2248 (offset 92 lines).
766 Hunk #2 succeeded at 2263 (offset 92 lines).
767 Hunk #3 succeeded at 2460 (offset 101 lines).
768 patching file src/slmisc.c
769 =============================
770
771 PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch <
772 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
773
774 =============================
775 can't find file to patch at input line 3
776 Perhaps you used the wrong -p or --strip option?
777 The text leading up to this was:
778 --------------------------
779 |--- src/sldisply.c
780 |+++ src/sldisply.c
781 --------------------------
782 No file to patch. Skipping patch.
783 3 out of 3 hunks ignored
784 can't find file to patch at input line 40
785 Perhaps you used the wrong -p or --strip option?
786 The text leading up to this was:
787 --------------------------
788 |--- src/slmisc.c.mps 2003-03-23 08:06:40.000000000 +0100
789 |+++ src/slmisc.c 2004-09-17 12:28:44.000000000 +0200
790 --------------------------
791 No file to patch. Skipping patch.
792 1 out of 1 hunk ignored
793 =============================
794
795 PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch <
796 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
797
798 =============================
799 missing header for unified diff at line 3 of patch
800 can't find file to patch at input line 3
801 Perhaps you used the wrong -p or --strip option?
802 The text leading up to this was:
803 --------------------------
804 |--- src/sldisply.c
805 |+++ src/sldisply.c
806 --------------------------
807 No file to patch. Skipping patch.
808 3 out of 3 hunks ignored
809 missing header for unified diff at line 40 of patch
810 can't find file to patch at input line 40
811 Perhaps you used the wrong -p or --strip option?
812 The text leading up to this was:
813 --------------------------
814 |--- src/slmisc.c.mps 2003-03-23 08:06:40.000000000 +0100
815 |+++ src/slmisc.c 2004-09-17 12:28:44.000000000 +0200
816 --------------------------
817 No file to patch. Skipping patch.
818 1 out of 1 hunk ignored
819 =============================
820
821 PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch <
822 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
823
824 =============================
825 missing header for unified diff at line 3 of patch
826 can't find file to patch at input line 3
827 Perhaps you used the wrong -p or --strip option?
828 The text leading up to this was:
829 --------------------------
830 |--- src/sldisply.c
831 |+++ src/sldisply.c
832 --------------------------
833 No file to patch. Skipping patch.
834 3 out of 3 hunks ignored
835 missing header for unified diff at line 40 of patch
836 can't find file to patch at input line 40
837 Perhaps you used the wrong -p or --strip option?
838 The text leading up to this was:
839 --------------------------
840 |--- src/slmisc.c.mps 2003-03-23 08:06:40.000000000 +0100
841 |+++ src/slmisc.c 2004-09-17 12:28:44.000000000 +0200
842 --------------------------
843 No file to patch. Skipping patch.
844 1 out of 1 hunk ignored
845 =============================
846
847 PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch <
848 /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
849
850 =============================
851 missing header for unified diff at line 3 of patch
852 can't find file to patch at input line 3
853 Perhaps you used the wrong -p or --strip option?
854 The text leading up to this was:
855 --------------------------
856 |--- src/sldisply.c
857 |+++ src/sldisply.c
858 --------------------------
859 No file to patch. Skipping patch.
860 3 out of 3 hunks ignored
861 missing header for unified diff at line 40 of patch
862 can't find file to patch at input line 40
863 Perhaps you used the wrong -p or --strip option?
864 The text leading up to this was:
865 --------------------------
866 |--- src/slmisc.c.mps 2003-03-23 08:06:40.000000000 +0100
867 |+++ src/slmisc.c 2004-09-17 12:28:44.000000000 +0200
868 --------------------------
869 No file to patch. Skipping patch.
870 1 out of 1 hunk ignored
871
872
873
874
875
876 thanks,
877
878 Karl
879 --
880 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] epatch fails on armeb target Mike Frysinger <vapier@g.o>