Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526368 - dev-libs/icu-53.1 - Failed Patch: icu-4.6-echo_t.patch !
Summary: dev-libs/icu-53.1 - Failed Patch: icu-4.6-echo_t.patch !
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-21 20:14 UTC by Stuart Shelton
Modified: 2014-10-24 18:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2014-10-21 20:14:48 UTC
The patch is trying to modify configure.in, but only configure.ac exists at this point:

$ emerge -v icu

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

Calculating dependencies  ... done!                           
[ebuild  r  U  ] dev-libs/icu-53.1:0/53 [51.2-r2:0/51.2] USE="-debug -doc -examples -static-libs" 0 KiB
[ebuild  rR    ] dev-db/sqlite-3.8.7:3  USE="icu readline -debug -doc -secure-delete -static-libs -tcl {-test}" 0 KiB
[ebuild  rR    ] dev-libs/libxml2-2.9.2:2  USE="icu ipv6 lzma python readline -debug -examples -static-libs {-test}" PYTHON_TARGETS="python2_7 (-python3_2) -python3_3 -python3_4" 0 KiB

Total: 3 packages (1 upgrade, 2 reinstalls), Size of downloads: 0 KiB

The following packages are causing rebuilds:

  (dev-libs/icu-53.1:0/53::gentoo_prefix, ebuild scheduled for merge) causes rebuilds for:
    (dev-libs/libxml2-2.9.2:2/2::gentoo_prefix, ebuild scheduled for merge)
    (dev-db/sqlite-3.8.7:3/3::gentoo_prefix, ebuild scheduled for merge)


>>> Verifying ebuild manifests

>>> Emerging (1 of 3) dev-libs/icu-53.1::gentoo_prefix
 * icu4c-53_1-src.tgz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking icu4c-53_1-src.tgz to /Volumes/Scratch/tmp/portage/dev-libs/icu-53.1/work
>>> Source unpacked in /Volumes/Scratch/tmp/portage/dev-libs/icu-53.1/work
>>> Preparing source in /Volumes/Scratch/tmp/portage/dev-libs/icu-53.1/work/icu/source ...
 * Applying icu-fix-tests-depending-on-date.patch ...                                                                                                                                                                   [ ok ]
 * Applying icu-4.8.1-darwin.patch ...                                                                                                                                                                                  [ ok ]
 * Applying icu-4.6-echo_t.patch ...

 * Failed Patch: icu-4.6-echo_t.patch !
 *  ( /opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /Volumes/Scratch/tmp/portage/dev-libs/icu-53.1/temp/icu-4.6-echo_t.patch.out

 * ERROR: dev-libs/icu-53.1::gentoo_prefix failed (prepare phase):
 *   Failed Patch: icu-4.6-echo_t.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called __call-ebuildshell 'src_prepare'
 *   environment, line  253:  Called src_prepare
 *   environment, line 3304:  Called epatch '/opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.patch'
 *   environment, line 1448:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";

$ cat /Volumes/Scratch/tmp/portage/dev-libs/icu-53.1/temp/icu-4.6-echo_t.patch.out
***** icu-4.6-echo_t.patch *****
PWD: /Volumes/Scratch/tmp/portage/dev-libs/icu-53.1/work/icu/source

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

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch  < '/opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.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:
--------------------------
|--- a/source/configure.in
|+++ b/source/configure.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/source/configure
|+++ b/source/configure
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch  < '/opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.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:
--------------------------
|--- a/source/configure.in
|+++ b/source/configure.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/source/configure
|+++ b/source/configure
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch  < '/opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.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:
--------------------------
|--- a/source/configure.in
|+++ b/source/configure.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
checking file configure
Hunk #1 succeeded at 2545 (offset 2525 lines).

patch program exited with status 1
================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch  < '/opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.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:
--------------------------
|--- a/source/configure.in
|+++ b/source/configure.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/source/configure
|+++ b/source/configure
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch  < '/opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.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:
--------------------------
|--- a/source/configure.in
|+++ b/source/configure.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/source/configure
|+++ b/source/configure
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1

$ ls  /Volumes/Scratch/tmp/portage/dev-libs/icu-53.1/work/icu/source
Doxyfile.in  acinclude.m4  allinone  config        config.sub  configure.ac  extra  icudefs.mk.in  io      layoutex       runConfigureICU  stubdata  tools
Makefile.in  aclocal.m4    common    config.guess  configure   data          i18n   install-sh     layout  mkinstalldirs  samples          test

$ cat /opt/gentoo/usr/portage/dev-libs/icu/files/icu-4.6-echo_t.patch
--- a/source/configure.in
+++ b/source/configure.in
@@ -20,9 +20,9 @@
 # for icu-config
 # This may be removed later - mow (June 17, 2010)
 ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T=
-case `/bin/sh -c "echo -n x"` in
+case `${CONFIG_SHELL} -c "echo -n x"` in
 -n*)
-  case `/bin/sh -c "echo 'x\c'"` in
+  case `${CONFIG_SHELL} -c "echo 'x\c'"` in
   *c*) ICU_ECHO_T=' ';;     # ECHO_T is single tab character.
   *)   ICU_ECHO_C='\c';;
   esac;;
--- a/source/configure
+++ b/source/configure
@@ -20,9 +20,9 @@
 # for icu-config
 # This may be removed later - mow (June 17, 2010)
 ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T=
-case `/bin/sh -c "echo -n x"` in
+case `${CONFIG_SHELL} -c "echo -n x"` in
 -n*)
-  case `/bin/sh -c "echo 'x\c'"` in
+  case `${CONFIG_SHELL} -c "echo 'x\c'"` in
   *c*) ICU_ECHO_T=' ';;     # ECHO_T is single tab character.
   *)   ICU_ECHO_C='\c';;
   esac;;
Comment 1 Stuart Shelton 2014-10-21 20:17:04 UTC
$ emerge --info icu
Portage 2.2.10.1-prefix (python 2.7.6-final-0, prefix/darwin/macos/10.9/x64, gcc-4.2.1, unavailable, 14.0.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-14.0.0-x86_64-i386-64bit
Timestamp of tree: Tue, 21 Oct 2014 19:53:32 +0000
app-shells/bash:      4.2_p53
dev-lang/perl:        5.20.1-r1
dev-lang/python:      2.7.6-r1
dev-util/cmake:       3.0.2
dev-util/pkgconfig:   0.28-r2
sys-devel/autoconf:   2.69
sys-devel/automake:   1.14.1
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2-r1
sys-devel/make:       4.1

=================================================================
                        Package Settings
=================================================================

dev-libs/icu-51.2-r2 was built with the following:
USE="(prefix) -debug -doc -examples -static-libs"
CFLAGS="-arch x86_64 -march=core-avx-i -mmacosx-version-min=10.9 -O0 -g -pipe"
CXXFLAGS="-arch x86_64 -march=core-avx-i -mmacosx-version-min=10.9 -O0 -g -pipe"
Comment 2 Fabian Groffen gentoo-dev 2014-10-24 18:31:08 UTC
Fixed in rsync8, thanks