Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 174684

Summary: dev-ruby/mysql-ruby-2.7.3 - mysql-ruby-2.7.3-test.patch fails
Product: Gentoo Linux Reporter: Eric Westbrook <gentoo>
Component: New packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED DUPLICATE    
Severity: normal CC: tb
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eric Westbrook 2007-04-15 14:57:29 UTC
Emerging mysql-ruby-2.7.3 fails due to the referenced patch file failing.

Reproducible: Always

Steps to Reproduce:
1. # emerge -tav1 dev-ruby/mysql-ruby
2. y
3. See error above

Actual Results:  
>>> Emerging (1 of 8) dev-ruby/mysql-ruby-2.7.3 to /
 * mysql-ruby-2.7.3.tar.gz RMD160 ;-) ...                                 [ ok ]
 * mysql-ruby-2.7.3.tar.gz SHA1 ;-) ...                                   [ ok ]
 * mysql-ruby-2.7.3.tar.gz SHA256 ;-) ...                                 [ ok ]
 * mysql-ruby-2.7.3.tar.gz size ;-) ...                                   [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking mysql-ruby-2.7.3.tar.gz ;-) ...                               [ ok ]
>>> Unpacking source...
>>> Unpacking mysql-ruby-2.7.3.tar.gz to /var/tmp/portage/dev-ruby/mysql-ruby-2.7.3/work
 * Applying mysql-ruby-2.7.3-test.patch ...

 * Failed Patch: mysql-ruby-2.7.3-test.patch !
 *  ( /usr/portage/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/dev-ruby/mysql-ruby-2.7.3/temp/mysql-ruby-2.7.3-test.patch-23153.out


!!! ERROR: dev-ruby/mysql-ruby-2.7.3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_unpack
  ebuild.sh, line 751:   Called qa_call 'src_unpack'
  environment, line 3153:   Called src_unpack
  mysql-ruby-2.7.3.ebuild, line 26:   Called epatch '/usr/portage/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch'
  eutils.eclass, line 341:   Called die

!!! Failed Patch: mysql-ruby-2.7.3-test.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-ruby:mysql-ruby-2.7.3:20070415-145032.log'.


Expected Results:  
Successful emerge

The contents of /var/tmp/portage/dev-ruby/mysql-ruby-2.7.3/temp/mysql-ruby-2.7.3-test.patch-23153.out are as follows:

***** mysql-ruby-2.7.3-test.patch *****

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

PATCH COMMAND:   patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch

=======================================
patching file mysql-ruby-2.7.3/test.rb
Hunk #1 FAILED at 1.
1 out of 5 hunks FAILED -- saving rejects to file mysql-ruby-2.7.3/test.rb.rej
=======================================

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch

=======================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u mysql-ruby-2.7.3/test.rb mysql-ruby-2.7.3.new/test.rb
|--- mysql-ruby-2.7.3/test.rb   2006-12-20 05:31:52.000000000 +0000
|+++ mysql-ruby-2.7.3.new/test.rb       2007-04-13 20:55:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
=======================================

PATCH COMMAND:   patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch

=======================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u mysql-ruby-2.7.3/test.rb mysql-ruby-2.7.3.new/test.rb
|--- mysql-ruby-2.7.3/test.rb   2006-12-20 05:31:52.000000000 +0000
|+++ mysql-ruby-2.7.3.new/test.rb       2007-04-13 20:55:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
=======================================

PATCH COMMAND:   patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch

=======================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u mysql-ruby-2.7.3/test.rb mysql-ruby-2.7.3.new/test.rb
|--- mysql-ruby-2.7.3/test.rb   2006-12-20 05:31:52.000000000 +0000
|+++ mysql-ruby-2.7.3.new/test.rb       2007-04-13 20:55:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
=======================================

PATCH COMMAND:   patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-ruby/mysql-ruby/files/mysql-ruby-2.7.3-test.patch

=======================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u mysql-ruby-2.7.3/test.rb mysql-ruby-2.7.3.new/test.rb
|--- mysql-ruby-2.7.3/test.rb   2006-12-20 05:31:52.000000000 +0000
|+++ mysql-ruby-2.7.3.new/test.rb       2007-04-13 20:55:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
Comment 1 Hans de Graaff gentoo-dev Security 2007-04-15 15:58:01 UTC
See comment 13 in bug 171907 for the resolution. Short version: fixed in CVS.

*** This bug has been marked as a duplicate of bug 171907 ***