I'm hoping someone here can help me debug this.   On my target, to avoid
some of the problems with cross compiling a few packages from i686 to
armeb-softfloat-linux-uclibc, i decided to install python, portage, gcc
and the utilities to compile natively.

Many packages now compile, however if a ebuild has  a patch  epatch
almost always fails.

If i try and patch the files manually, it works fine. so my patch binary
is fine.
   

For example:

# emerge -v slang

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-libs/slang-1.4.9-r2  USE="-cjk -unicode" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Emerging (1 of 1) sys-libs/slang-1.4.9-r2 to /
 * slang-1.4.9.tar.bz2 RMD160 ;-)
...                                                                             
                            
[ ok ]
 * slang-1.4.9.tar.bz2 SHA1 ;-)
...                                                                             
                              
[ ok ]
 * slang-1.4.9.tar.bz2 SHA256 ;-)
...                                                                             
                            
[ ok ]
 * slang-1.4.9.tar.bz2 size ;-)
...                                                                             
                              
[ ok ]
 * slang-1.4.9-patches.tar.gz RMD160 ;-)
...                                                                             
                     
[ ok ]
 * slang-1.4.9-patches.tar.gz SHA1 ;-)
...                                                                             
                       
[ ok ]
 * slang-1.4.9-patches.tar.gz SHA256 ;-)
...                                                                             
                     
[ ok ]
 * slang-1.4.9-patches.tar.gz size ;-)
...                                                                             
                       
[ ok ]
 * checking ebuild checksums ;-)
...                                                                             
                             
[ ok ]
 * checking auxfile checksums ;-)
...                                                                             
                            
[ ok ]
 * checking miscfile checksums ;-)
...                                                                             
                           
[ ok ]
 * checking slang-1.4.9.tar.bz2 ;-)
...                                                                             
                          
[ ok ]
 * checking slang-1.4.9-patches.tar.gz ;-)
...                                                                             
                   
[ ok ]
>>> Unpacking source...
>>> Unpacking slang-1.4.9.tar.bz2 to
/tmp/portage/sys-libs/slang-1.4.9-r2/work
>>> Unpacking slang-1.4.9-patches.tar.gz to
/tmp/portage/sys-libs/slang-1.4.9-r2/work
 * Applying slang-1.4.9.patch ...

 * Failed Patch: slang-1.4.9.patch !
 *  ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-11439.out


!!! ERROR: sys-libs/slang-1.4.9-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_unpack
  ebuild.sh, line 751:   Called qa_call 'src_unpack'
  ebuild.sh, line 38:   Called src_unpack
  slang-1.4.9-r2.ebuild, line 26:   Called epatch
'/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
  eutils.eclass, line 304:   Called die

!!! Failed Patch: slang-1.4.9.patch!
!!! If you need support, post the topmost build error, and the call
stack if relevant.
!!! A complete build log is located at
'/tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log'.



----------------------  with debug

emerge -vd slang
myaction None
myopts {'--debug': True, '--verbose': True}

These are the packages that would be merged, in order:

Calculating dependencies
Parent:    None
Depstring: sys-libs/slang
Priority: soft
Candidates: ['sys-libs/slang']
   ebuild: sys-libs/slang-1.4.9-r2

Parent:    ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')
Depstring: >=sys-libs/ncurses-5.2-r2
Priority: hard
Candidates: ['>=sys-libs/ncurses-5.2-r2']
Exiting... ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')

Parent:    ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')
Depstring: >=sys-libs/ncurses-5.2-r2
Priority: medium
Candidates: ['>=sys-libs/ncurses-5.2-r2']
Exiting... ('ebuild', '/', 'sys-libs/slang-1.4.9-r2', 'merge')
Exiting... None
... done!
[ebuild   R   ] sys-libs/slang-1.4.9-r2  USE="-cjk -unicode" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Emerging (1 of 1) sys-libs/slang-1.4.9-r2 to /
+ dyn_clean
+ '[' -z /tmp/portage/sys-libs/slang-1.4.9-r2 ']'
+ type -p chflags
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/image
/tmp/portage/sys-libs/slang-1.4.9-r2/homedir
+ hasq keeptemp autoconfig distlocks metadata-transfer nodoc noinfo
noman sandbox sfperms strict
+ [[  autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox
sfperms strict  == *\ \k\e\e\p\t\e\m\p\ * ]]
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/temp
+ hasq keepwork autoconfig distlocks metadata-transfer nodoc noinfo
noman sandbox sfperms strict
+ [[  autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox
sfperms strict  == *\ \k\e\e\p\w\o\r\k\ * ]]
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.logid
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.unpacked
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.compiled
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.tested
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.installed
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/.packaged
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/build-info
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/work
+ '[' -f /tmp/portage/sys-libs/slang-1.4.9-r2/.unpacked ']'
+ rm -rf /tmp/portage/sys-libs/slang-1.4.9-r2/distdir
++ find /tmp/portage/sys-libs/slang-1.4.9-r2 -mindepth 1 -maxdepth 1
+ '[' -z '' ']'
+ rmdir /tmp/portage/sys-libs/slang-1.4.9-r2
+ true
+ set +x
 * slang-1.4.9.tar.bz2 RMD160 ;-)
...                                     [ ok ]
 * slang-1.4.9.tar.bz2 SHA1 ;-)
...                                       [ ok ]
 * slang-1.4.9.tar.bz2 SHA256 ;-)
...                                     [ ok ]
 * slang-1.4.9.tar.bz2 size ;-)
...                                       [ ok ]
 * slang-1.4.9-patches.tar.gz RMD160 ;-)
...                              [ ok ]
 * slang-1.4.9-patches.tar.gz SHA1 ;-)
...                                [ ok ]
 * slang-1.4.9-patches.tar.gz SHA256 ;-)
...                              [ ok ]
 * slang-1.4.9-patches.tar.gz size ;-)
...                                [ ok ]
 * checking ebuild checksums ;-)
...                                      [ ok ]
 * checking auxfile checksums ;-)
...                                     [ ok ]
 * checking miscfile checksums ;-)
...                                    [ ok ]
 * checking slang-1.4.9.tar.bz2 ;-)
...                                   [ ok ]
 * checking slang-1.4.9-patches.tar.gz ;-)
...                            [ ok ]
+ dyn_setup
++ type -t pre_pkg_setup
+ '[' '' == function ']'
+ qa_call pkg_setup
++ shopt
+ local 'shopts=cdable_vars     off
cdspell         off
checkhash       off
checkwinsize    off
cmdhist         on
dotglob         off
execfail        off
expand_aliases  on
extdebug        on
extglob         off
extquote        on
failglob        off
force_fignore   on
gnu_errfmt      off
histappend      off
histreedit      off
histverify      off
hostcomplete    on
huponexit       off
interactive_comments    on
lithist         off
login_shell     off
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off' 'OLDIFS=
'
+ pkg_setup
+ return
++ shopt
+ [[ cdable_vars        off
cdspell         off
checkhash       off
checkwinsize    off
cmdhist         on
dotglob         off
execfail        off
expand_aliases  on
extdebug        on
extglob         off
extquote        on
failglob        off
force_fignore   on
gnu_errfmt      off
histappend      off
histreedit      off
histverify      off
hostcomplete    on
huponexit       off
interactive_comments    on
lithist         off
login_shell     off
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off != cdable_vars      off
cdspell         off
checkhash       off
checkwinsize    off
cmdhist         on
dotglob         off
execfail        off
expand_aliases  on
extdebug        on
extglob         off
extquote        on
failglob        off
force_fignore   on
gnu_errfmt      off
histappend      off
histreedit      off
histverify      off
hostcomplete    on
huponexit       off
interactive_comments    on
lithist         off
login_shell     off
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off ]]
+ [[
 != \ \ \
 ]]
+ return 0
++ type -t post_pkg_setup
+ '[' '' == function ']'
+ set +x
+ dyn_unpack
++ type -t pre_src_unpack
+ '[' '' == function ']'
+ local newstuff=no
+ '[' -e /tmp/portage/sys-libs/slang-1.4.9-r2/work ']'
+ '[' no == yes ']'
+ '[' -e /tmp/portage/sys-libs/slang-1.4.9-r2/work ']'
+ '[' '!' -d /tmp/portage/sys-libs/slang-1.4.9-r2/work ']'
+ install -m0700 -d /tmp/portage/sys-libs/slang-1.4.9-r2/work
+ cd /tmp/portage/sys-libs/slang-1.4.9-r2/work
+ vecho '>>> Unpacking source...'
+ quiet_mode
+ [[ '' -eq 1 ]]
+ echo '>>> Unpacking source...'
>>> Unpacking source...
+ qa_call src_unpack
++ shopt
+ local 'shopts=cdable_vars     off
cdspell         off
checkhash       off
checkwinsize    off
cmdhist         on
dotglob         off
execfail        off
expand_aliases  on
extdebug        on
extglob         off
extquote        on
failglob        off
force_fignore   on
gnu_errfmt      off
histappend      off
histreedit      off
histverify      off
hostcomplete    on
huponexit       off
interactive_comments    on
lithist         off
login_shell     off
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off' 'OLDIFS=
'
+ src_unpack
+ unpack slang-1.4.9.tar.bz2 slang-1.4.9-patches.tar.gz
+ local x
+ local y
+ local myfail
+ local tar_opts=
+ '[' -z 'slang-1.4.9.tar.bz2 slang-1.4.9-patches.tar.gz' ']'
+ for x in '"$@"'
+ vecho '>>> Unpacking slang-1.4.9.tar.bz2 to
/tmp/portage/sys-libs/slang-1.4.9-r2/work'
+ quiet_mode
+ [[ '' -eq 1 ]]
+ echo '>>> Unpacking slang-1.4.9.tar.bz2 to
/tmp/portage/sys-libs/slang-1.4.9-r2/work'
>>> Unpacking slang-1.4.9.tar.bz2 to
/tmp/portage/sys-libs/slang-1.4.9-r2/work
+ y=slang-1.4.9.tar
+ y=tar
+ myfail='slang-1.4.9.tar.bz2 does not exist'
+ '[' sl = ./ ']'
+ srcdir=/tmp/portage/sys-libs/slang-1.4.9-r2/distdir/
+ [[ slang-1.4.9.tar.bz2 == /tmp/portage/sys-libs/slang-1.4.9-r2/distdir* ]]
+ '[' '!' -s
/tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9.tar.bz2 ']'
+ myfail='failure unpacking slang-1.4.9.tar.bz2'
+ case "${x##*.}" in
+ '[' tar == tar ']'
+ bzip2 -dc /tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9.tar.bz2
+ tar xof -
+ _pipestatus=0
+ [[ 0 -eq 0 ]]
+ for x in '"$@"'
+ vecho '>>> Unpacking slang-1.4.9-patches.tar.gz to
/tmp/portage/sys-libs/slang-1.4.9-r2/work'
+ quiet_mode
+ [[ '' -eq 1 ]]
+ echo '>>> Unpacking slang-1.4.9-patches.tar.gz to
/tmp/portage/sys-libs/slang-1.4.9-r2/work'
>>> Unpacking slang-1.4.9-patches.tar.gz to
/tmp/portage/sys-libs/slang-1.4.9-r2/work
+ y=slang-1.4.9-patches.tar
+ y=tar
+ myfail='slang-1.4.9-patches.tar.gz does not exist'
+ '[' sl = ./ ']'
+ srcdir=/tmp/portage/sys-libs/slang-1.4.9-r2/distdir/
+ [[ slang-1.4.9-patches.tar.gz ==
/tmp/portage/sys-libs/slang-1.4.9-r2/distdir* ]]
+ '[' '!' -s
/tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9-patches.tar.gz ']'
+ myfail='failure unpacking slang-1.4.9-patches.tar.gz'
+ case "${x##*.}" in
+ '[' tar == tar ']'
+ tar zoxf
/tmp/portage/sys-libs/slang-1.4.9-r2/distdir/slang-1.4.9-patches.tar.gz
+ xargs -r -0 chmod -f a+rX,u+w,g-w,o-w
+ find . -mindepth 1 '!' -type l -print0
+ cd /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9
+ epatch /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ local PIPE_CMD=
+ local STDERR_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/temp/7407.out
+ local PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/temp/7407.patch
+ local PATCH_SUFFIX=
+ local SINGLE_PATCH=no
+ local x=
+ unset P4CONFIG P4PORT P4USER
+ '[' 1 -gt 1 ']'
+ '[' -n /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch -a
-f /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch ']'
+ SINGLE_PATCH=yes
+ local
EPATCH_SOURCE=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ local EPATCH_SUFFIX=patch
+ case ${EPATCH_SUFFIX##*\.} in
+ PIPE_CMD=cat
+ PATCH_SUFFIX=patch
+ '[' yes = no ']'
+ for x in '${EPATCH_SOURCE}'
+ '[' -f /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch ']'
+ '[' yes = yes -o
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch '!='
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch -o /t
mp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch '!='
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch ']'
+ local count=0
+ local 'popts=-g0 -E --no-backup-if-mismatch'
+ local patchname=slang-1.4.9.patch
+ '[' -n '' ']'
+ '[' yes = yes ']'
+ '[' -n '' ']'
+ einfo 'Applying slang-1.4.9.patch ...'
+ elog_base INFO 'Applying slang-1.4.9.patch ...'
+ local messagetype
+ '[' -z INFO -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
+ case "${1}" in
+ messagetype=INFO
+ shift
+ echo -e 'Applying slang-1.4.9.patch ...'
+ return 0
+ [[ yes != \y\e\s ]]
+ echo -e ' * Applying slang-1.4.9.patch ...'
 * Applying slang-1.4.9.patch ...
+ LAST_E_CMD=einfo
+ return 0
+ echo '***** slang-1.4.9.patch *****'
+ echo
+ '[' 0 -lt 5 ']'
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ echo
+ '[' patch '!=' patch ']'
+ PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ echo -n 'PATCH COMMAND:        '
+ echo 'patch -p0 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
+ echo
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ '[' patch '!=' patch ']'
+ count=1
+ '[' 1 -lt 5 ']'
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ echo
+ '[' patch '!=' patch ']'
+ PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ echo -n 'PATCH COMMAND:        '
+ echo 'patch -p1 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
+ echo
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ '[' patch '!=' patch ']'
+ count=2
+ '[' 2 -lt 5 ']'
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ echo
+ '[' patch '!=' patch ']'
+ PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ echo -n 'PATCH COMMAND:        '
+ echo 'patch -p2 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
+ echo
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ '[' patch '!=' patch ']'
+ count=3
+ '[' 3 -lt 5 ']'
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ echo
+ '[' patch '!=' patch ']'
+ PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ echo -n 'PATCH COMMAND:        '
+ echo 'patch -p3 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
+ echo
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ '[' patch '!=' patch ']'
+ count=4
+ '[' 4 -lt 5 ']'
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ echo
+ '[' patch '!=' patch ']'
+ PATCH_TARGET=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ echo -n 'PATCH COMMAND:        '
+ echo 'patch -p4 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
+ echo
+ _epatch_draw_line '***** slang-1.4.9.patch *****'
+ [[ -z ***** slang-1.4.9.patch ***** ]]
+ echo =============================
+ '[' patch '!=' patch ']'
+ count=5
+ '[' 5 -lt 5 ']'
+ '[' patch '!=' patch ']'
+ '[' 5 -eq 5 ']'
+ echo

+ eerror 'Failed Patch: slang-1.4.9.patch !'
+ elog_base ERROR 'Failed Patch: slang-1.4.9.patch !'
+ local messagetype
+ '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
+ case "${1}" in
+ messagetype=ERROR
+ shift
+ echo -e 'Failed Patch: slang-1.4.9.patch !'
+ return 0
+ [[ yes != \y\e\s ]]
+ echo -e ' * Failed Patch: slang-1.4.9.patch !'
 * Failed Patch: slang-1.4.9.patch !
+ LAST_E_CMD=eerror
+ return 0
+ eerror ' ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
+ elog_base ERROR ' (
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
+ local messagetype
+ '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
+ case "${1}" in
+ messagetype=ERROR
+ shift
+ echo -e ' ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
+ return 0
+ [[ yes != \y\e\s ]]
+ echo -e ' *  (
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )'
 *  ( /tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch )
+ LAST_E_CMD=eerror
+ return 0
+ eerror
+ elog_base ERROR ''
+ local messagetype
+ '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
+ case "${1}" in
+ messagetype=ERROR
+ shift
+ echo -e ''
+ return 0
+ [[ yes != \y\e\s ]]
+ echo -e ' * '
 *
+ LAST_E_CMD=eerror
+ return 0
+ eerror 'Include in your bugreport the contents of:'
+ elog_base ERROR 'Include in your bugreport the contents of:'
+ local messagetype
+ '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
+ case "${1}" in
+ messagetype=ERROR
+ shift
+ echo -e 'Include in your bugreport the contents of:'
+ return 0
+ [[ yes != \y\e\s ]]
+ echo -e ' * Include in your bugreport the contents of:'
 * Include in your bugreport the contents of:
+ LAST_E_CMD=eerror
+ return 0
+ eerror
+ elog_base ERROR ''
+ local messagetype
+ '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
+ case "${1}" in
+ messagetype=ERROR
+ shift
+ echo -e ''
+ return 0
+ [[ yes != \y\e\s ]]
+ echo -e ' * '
 *
+ LAST_E_CMD=eerror
+ return 0
+ eerror ' 
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
+ elog_base ERROR ' 
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
+ local messagetype
+ '[' -z ERROR -o -z /tmp/portage/sys-libs/slang-1.4.9-r2/temp -o '!' -d
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/logging ']'
+ case "${1}" in
+ messagetype=ERROR
+ shift
+ echo -e ' 
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
+ return 0
+ [[ yes != \y\e\s ]]
+ echo -e ' *  
/tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out'
 *   /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-7407.out
+ LAST_E_CMD=eerror
+ return 0
+ echo

+ diefunc epatch 304 0 'Failed Patch: slang-1.4.9.patch!'
+ local funcname=epatch lineno=304 exitcode=0
+ shift 3
+ echo

+ echo '!!! ERROR: sys-libs/slang-1.4.9-r2 failed.'
!!! ERROR: sys-libs/slang-1.4.9-r2 failed.
+ dump_trace 2
+ local funcname= sourcefile= lineno= n e s=yes
+ declare -i strip=1
+ [[ -n 2 ]]
+ strip=2
+ echo 'Call stack:'
Call stack:
+ (( n = 7 - 1, p = 8  ))
+ (( n > 2  ))
+ funcname=dyn_unpack
++ basename /usr/lib/portage/bin/ebuild.sh
+ sourcefile=ebuild.sh
+ lineno=1618
+ args=
+ [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
unpack ]]
+ (( j = 1  ))
+ (( j <= 0  ))
+ ((  p -= 0  ))
+ echo '  ebuild.sh, line 1618:   Called dyn_unpack'
  ebuild.sh, line 1618:   Called dyn_unpack
+ (( n--  ))
+ (( n > 2  ))
+ funcname=qa_call
++ basename /usr/lib/portage/bin/ebuild.sh
+ sourcefile=ebuild.sh
+ lineno=751
+ args=
+ [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
unpack ]]
+ (( j = 1  ))
+ (( j <= 1  ))
+ newarg=src_unpack
+ args=''\''src_unpack'\'''
+ (( ++j  ))
+ (( j <= 1  ))
+ ((  p -= 1  ))
+ echo '  ebuild.sh, line 751:   Called qa_call '\''src_unpack'\'''
  ebuild.sh, line 751:   Called qa_call 'src_unpack'
+ (( n--  ))
+ (( n > 2  ))
+ funcname=src_unpack
++ basename /usr/lib/portage/bin/ebuild.sh
+ sourcefile=ebuild.sh
+ lineno=38
+ args=
+ [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
unpack ]]
+ (( j = 1  ))
+ (( j <= 0  ))
+ ((  p -= 0  ))
+ echo '  ebuild.sh, line 38:   Called src_unpack'
  ebuild.sh, line 38:   Called src_unpack
+ (( n--  ))
+ (( n > 2  ))
+ funcname=epatch
++ basename /usr/portage/sys-libs/slang/slang-1.4.9-r2.ebuild
+ sourcefile=slang-1.4.9-r2.ebuild
+ lineno=26
+ args=
+ [[ -n 2 Failed Patch: slang-1.4.9.patch! 0 304 epatch
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch src_unpack
unpack ]]
+ (( j = 1  ))
+ (( j <= 1  ))
+ newarg=/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch
+ args=''\''/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'\'''
+ (( ++j  ))
+ (( j <= 1  ))
+ ((  p -= 1  ))
+ echo '  slang-1.4.9-r2.ebuild, line 26:   Called epatch
'\''/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'\'''
  slang-1.4.9-r2.ebuild, line 26:   Called epatch
'/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch'
+ (( n--  ))
+ (( n > 2  ))
++ basename /usr/portage/eclass/eutils.eclass
+ echo '  eutils.eclass, line 304:   Called die'
  eutils.eclass, line 304:   Called die
+ echo

+ echo '!!! Failed Patch: slang-1.4.9.patch!'
!!! Failed Patch: slang-1.4.9.patch!
+ echo '!!! If you need support, post the topmost build error, and the
call stack if relevant.'
!!! If you need support, post the topmost build error, and the call
stack if relevant.
+ '[' -n /tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log ']'
+ echo '!!! A complete build log is located at
'\''/tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log'\''.'
!!! A complete build log is located at
'/tmp/portage/sys-libs/slang-1.4.9-r2/temp/build.log'.
+ echo

+ '[' -n '' ']'
+ '[' unpack == unpack ']'
+ local x
+ kill -s SIGTERM 7407
++ exit 1



------- -      patch output


cat /tmp/portage/sys-libs/slang-1.4.9-r2/temp/slang-1.4.9.patch-11439.out
***** slang-1.4.9.patch *****

=============================

PATCH COMMAND:   patch -p0 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch

=============================
patching file src/sldisply.c
Hunk #1 succeeded at 2248 (offset 92 lines).
Hunk #2 succeeded at 2263 (offset 92 lines).
Hunk #3 succeeded at 2460 (offset 101 lines).
patching file src/slmisc.c
=============================

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch

=============================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/sldisply.c
|+++ src/sldisply.c
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 40
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/slmisc.c.mps   2003-03-23 08:06:40.000000000 +0100
|+++ src/slmisc.c       2004-09-17 12:28:44.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=============================

PATCH COMMAND:   patch -p2 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch

=============================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/sldisply.c
|+++ src/sldisply.c
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
missing header for unified diff at line 40 of patch
can't find file to patch at input line 40
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/slmisc.c.mps   2003-03-23 08:06:40.000000000 +0100
|+++ src/slmisc.c       2004-09-17 12:28:44.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=============================

PATCH COMMAND:   patch -p3 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch

=============================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/sldisply.c
|+++ src/sldisply.c
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
missing header for unified diff at line 40 of patch
can't find file to patch at input line 40
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/slmisc.c.mps   2003-03-23 08:06:40.000000000 +0100
|+++ src/slmisc.c       2004-09-17 12:28:44.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=============================

PATCH COMMAND:   patch -p4 -g0 -E --no-backup-if-mismatch <
/tmp/portage/sys-libs/slang-1.4.9-r2/work/slang-1.4.9.patch

=============================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/sldisply.c
|+++ src/sldisply.c
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
missing header for unified diff at line 40 of patch
can't find file to patch at input line 40
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/slmisc.c.mps   2003-03-23 08:06:40.000000000 +0100
|+++ src/slmisc.c       2004-09-17 12:28:44.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored





thanks,

Karl
-- 
[EMAIL PROTECTED] mailing list

Reply via email to