Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284078 - dev-db/mysql-5.0.84-r1 fails to apply 15000_all_mysql_gcc-4.4_5.0.77.patch
Summary: dev-db/mysql-5.0.84-r1 fails to apply 15000_all_mysql_gcc-4.4_5.0.77.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
: 284085 284170 284254 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-08 06:40 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2009-09-09 14:07 UTC (History)
9 users (show)

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


Attachments
15000_all_mysql_gcc-4.4_5.0.77.patch-14006.out (15000_all_mysql_gcc-4.4_5.0.77.patch-14006.out,3.96 KB, text/plain)
2009-09-08 06:41 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
Enviroment file of my chrash (environment,166.88 KB, text/plain)
2009-09-08 08:44 UTC, Cybertinus
Details
build log of my chrash (build.log,5.36 KB, text/plain)
2009-09-08 08:44 UTC, Cybertinus
Details
mysql-5.0.84-r1.ebuild.patch (mysql-5.0.84-r1.ebuild.patch,544 bytes, patch)
2009-09-08 09:04 UTC, Honza Macháček
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-08 06:40:19 UTC
*   07240_all_as-needed-config-5.0.76.patch ...                          [ ok ]
 *   15000_all_mysql_gcc-4.4_5.0.77.patch ...

 * Failed Patch: 15000_all_mysql_gcc-4.4_5.0.77.patch !
 *  ( /var/tmp/portage/dev-db/mysql-5.0.84-r1/work/patch/15000_all_mysql_gcc-4.4_5.0.77.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/dev-db/mysql-5.0.84-r1/temp/15000_all_mysql_gcc-4.4_5.0.77.patch-14006.out

 *
 * ERROR: dev-db/mysql-5.0.84-r1 failed.


Reproducible: Always

Steps to Reproduce:




# emerge --info dev-db/mysql
Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.27.31 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.27.31-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2380-with-gentoo-2.0.1
Timestamp of tree: Tue, 08 Sep 2009 06:00:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9
dev-lang/python:     2.6.2-r1, 3.1.1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/env.d/java/ /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/udev/rules.d /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y"
FEATURES="assume-digests collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.254/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups dbus dri dts dvd dvdr emboss encode evo fam ffmpeg firefox flac gdbm gif gnutls gtk iconv idn isdnlog jpeg jpeg2k kde lame libnotify mad midi mmap mmx mmxext mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf png ppds pppd qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl sse sse2 ssl startup-notification svg sysfs theora threads thunar tiff truetype unicode usb vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-db/mysql-5.0.84 was built with the following:
USE="-berkdb -big-tables -cluster community -debug -embedded -extraengine latin1 -max-idx-128 -minimal (multilib) -perl -profiling (-selinux) ssl -static"
CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1"
CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates"
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-08 06:41:56 UTC
Created attachment 203443 [details]
15000_all_mysql_gcc-4.4_5.0.77.patch-14006.out
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-08 08:01:01 UTC
*** Bug 284085 has been marked as a duplicate of this bug. ***
Comment 3 Cybertinus 2009-09-08 08:44:21 UTC
Created attachment 203451 [details]
Enviroment file of my chrash
Comment 4 Cybertinus 2009-09-08 08:44:38 UTC
Created attachment 203453 [details]
build log of my chrash
Comment 5 Honza Macháček 2009-09-08 09:04:22 UTC
Created attachment 203455 [details, diff]
mysql-5.0.84-r1.ebuild.patch

A simple patch to the mysql-5.0.84-r1.ebuild to make it compile. The problematic patch is marked for exclusion.

Interestingly, there is no difference between mysql-5.0.84.ebuild and mysql-5.0.84-r1.ebuild, apart from the version number. And apart of the fact that  mysql-5.0.84.ebuild compiles.

I personally hate when there is so much hidden inside eclasses. So far I've found that the problematic patch is absolutely inapplicable in -r1, but I still don't know if 5.0.84-r1 differs from 5.0.84 by applying some additional patch before the problematic one, or what is the cause of the problem.
Comment 6 Steffen Hau 2009-09-08 11:10:55 UTC
The patch fails to apply because patch 10090_all_innodb_show_bp-percona-5.0.84-b18-20090811.patch is not applied before. The mysql_fx eclass (function _mysql_mv_patches) reads the 0000_index.txt from mysql-extras and moves only patches, which according to the versions, they apply to. The above patch for innodb is marked only for @ver 5.00.84.00 to 5.00.84.00, but we have the 5.00.84.01, caused by the -r1 in the ebuild name. Without the -r1 the version is 5.00.84.00. Perhaps the 0000_index.txt in the mysql-extras tarball needs to be updated.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-08 12:52:19 UTC
Fixed now, yes, it was a serial typo in the patchset index file that caused some patches to not be applied, and thus others to fail.

It's fixed in the tree now, and the file is pushed to the mirrors.

If you need it in the meantime:
http://dev.gentoo.org/~robbat2/distfiles/mysql-extras-20090908-1245Z.tar.bz2
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-08 13:56:10 UTC
*** Bug 284170 has been marked as a duplicate of this bug. ***
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-09 12:01:41 UTC
*** Bug 284254 has been marked as a duplicate of this bug. ***