Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388125 - dev-db/mysql-5.1.59 fails to emerge on prefixed systems due to new eclasses
Summary: dev-db/mysql-5.1.59 fails to emerge on prefixed systems due to new eclasses
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 385001
Blocks: 339371 348788 388869
  Show dependency tree
 
Reported: 2011-10-22 17:38 UTC by nietonfir
Modified: 2012-01-07 09:19 UTC (History)
2 users (show)

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


Attachments
eprefixified mysql-v2.eclass (mysql-v2.eclass.patch,5.16 KB, text/plain)
2011-10-22 17:38 UTC, nietonfir
Details
eprefixified mysql-autotools.eclass (mysql-autotools.eclass.patch,3.30 KB, patch)
2011-10-22 17:38 UTC, nietonfir
Details | Diff
eprefixified mysql_fx.eclass (mysql_fx.eclass.patch,1.64 KB, patch)
2011-10-22 17:39 UTC, nietonfir
Details | Diff
prefix fixes for mysql eclasses (mysql-eclasses-prefix.patch,24.41 KB, patch)
2011-11-08 21:13 UTC, Fabian Groffen
Details | Diff
prefix fixes for mysql eclasses (v2) (mysql-prefix-eclass.patch,24.52 KB, patch)
2011-11-09 18:29 UTC, Fabian Groffen
Details | Diff
prefix fixes for mysql eclasses (v3) (mysql-eclass-prefix-v3.patch,24.46 KB, patch)
2011-12-19 09:23 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nietonfir 2011-10-22 17:38:22 UTC
Created attachment 290535 [details]
eprefixified mysql-v2.eclass

dev-db/mysql-5.1.56-r1 introduced a new set of eclasses for mysql that prevented proper building on systems running Gentoo prefix.
The following attachements are based on the old mysql.eclass, thus I hope for fast inclusion. ;)
mysql-cmake.eclass was not eprefixied (bc it wasn't needed on my system), but can be done if it is wished.

On a side-note: I'll be adding #385001 as a blocker for this, because I'm still getting procps as a dependency for mysql.
Comment 1 nietonfir 2011-10-22 17:38:57 UTC
Created attachment 290537 [details, diff]
eprefixified mysql-autotools.eclass
Comment 2 nietonfir 2011-10-22 17:39:51 UTC
Created attachment 290539 [details, diff]
eprefixified mysql_fx.eclass
Comment 3 Fabian Groffen gentoo-dev 2011-10-22 17:41:13 UTC
let's get mysql team in the loop
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-24 15:38:49 UTC
I was about to apply the patches when I recalled that the mysql/mariadb ebuilds are still EAPI-2 and EROOT is only set on EAPI-3.

@Robin,
are you ok with bumping the EAPI to 3 or 4?
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-26 19:48:52 UTC
I applied your patches and bumped the EAPI in the ebuilds to 4. I've also did some work to "eprefixify" mysql-cmake.eclass.
Please test the changes on prefix. Please check the changes done on bug 348788 as well.
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-10-26 20:25:50 UTC
Sorry, I forgot to mention that I committed the changes to the mysql overlay[1].

Thanks to Jeremy for calling my attention.

 [1] - http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=summary
Comment 7 Fabian Groffen gentoo-dev 2011-11-08 10:06:34 UTC
were these changes already forwarded to gx86?  If not, would explain bug #388869
Comment 8 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-11-08 11:02:47 UTC
(In reply to comment #7)
> were these changes already forwarded to gx86?  If not, would explain bug
> #388869

No, they weren't. I was waiting for some testing before moving them to gentoo-x86.
Comment 9 Fabian Groffen gentoo-dev 2011-11-08 16:59:17 UTC
-I/usr//include

'--with-plugindir=/usr/lib/mysql/plugin' 

libtool: link: x86_64-apple-darwin11-gcc -O3 -march=nocona -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -Wl,-dead_strip_dylibs -o mi_test3 mi_test3.o  /Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin11/4.2.1/libstdc++.dylib ./.libs/libmyisam.a ../../mysys/.libs/libmysys.a ../../dbug/.libs/libdbug.a ../../strings/.libs/libmystrings.a -L/usr//lib -lz -lm

 *                      die "Aborting due to QA concerns: there are files installed outside the prefix"

I guess that means no.  I'll check what (if any) was done.  I checked the git.o.g.o/mysql.git versions.
Comment 10 Fabian Groffen gentoo-dev 2011-11-08 17:02:05 UTC
ok, mysql.eclass has no prefix changes (prefix overlay has)
Comment 11 Fabian Groffen gentoo-dev 2011-11-08 17:22:03 UTC
local screwup, didn't test the mysql-overlay eclasses.

Emerge fine when using them.  Not sure MY_DATADIR is set correctly.
Comment 12 Fabian Groffen gentoo-dev 2011-11-08 19:32:39 UTC
jmbsvicetto: please check http://overlays.gentoo.org/proj/alt/changeset/60167

and mind

http://overlays.gentoo.org/proj/alt/changeset/60168

If you prefer, I'll give you a diff against git HEAD in mysql-overlay.
Comment 13 Fabian Groffen gentoo-dev 2011-11-08 21:12:01 UTC
I also needed http://overlays.gentoo.org/proj/alt/changeset/60169

I'll diff against mysql-overlay
Comment 14 Fabian Groffen gentoo-dev 2011-11-08 21:13:38 UTC
Created attachment 291977 [details, diff]
prefix fixes for mysql eclasses

These patches are tested on mysql-5.1.59 with Darwin and Solaris hosts.  This included running emerge --config step to successfully initialise the database.
Comment 15 Fabian Groffen gentoo-dev 2011-11-09 18:29:49 UTC
Created attachment 292037 [details, diff]
prefix fixes for mysql eclasses (v2)

I forgot to make the general libname.dylib symlink, updated patches
Comment 16 Fabian Groffen gentoo-dev 2011-11-17 17:12:47 UTC
(In reply to comment #12)
> and mind
> 
> http://overlays.gentoo.org/proj/alt/changeset/60168

This was tackled (slightly different) in bug #388673
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-18 23:41:03 UTC
@grobian:
Your patch is backwards, and the first set was already applied to the mysql overlay. Can you please rediff against that to show what is needed still?
Comment 18 Fabian Groffen gentoo-dev 2011-12-19 09:23:47 UTC
Created attachment 296349 [details, diff]
prefix fixes for mysql eclasses (v3)

(In reply to comment #17)
> @grobian:
> Your patch is backwards, and the first set was already applied to the mysql
> overlay. Can you please rediff against that to show what is needed still?

My git diff was not reversed :)  I've been adding prefixes where necessary.  So, I "undo" your first set, to get them properly fixed.  (e.g MY_LOCALSTATEDIR has EPREFIX in it)

Here is the updated patchset against the current tip of default (or how that is called in git land).
Comment 19 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2012-01-06 21:55:27 UTC
I've moved the eclasses to the tree, so this bug can be closed as fixed. As the bug is assigned to prefix I'm not going to close it, unless I get an OK from you.
Comment 20 Fabian Groffen gentoo-dev 2012-01-07 09:19:51 UTC
I assume fixed, since I tested it myself a lot when I created the patches.