Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282898 - [EBUILD] MySQL Connector/C++
Summary: [EBUILD] MySQL Connector/C++
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux MySQL bugs team
URL: http://forge.mysql.com/wiki/Connector...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 12:51 UTC by Hanno Zysik (geki)
Modified: 2010-03-31 22:27 UTC (History)
2 users (show)

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


Attachments
dev-db/mysql-connector-c++-1.0.6_pre754 (mysql-connector-c++-1.0.6_pre754.ebuild,914 bytes, text/plain)
2009-08-27 12:52 UTC, Hanno Zysik (geki)
Details
dev-db/mysql-connector-c++-1.0.6_pre768 (mysql-connector-c++-1.0.6_pre768.ebuild,1.14 KB, text/plain)
2009-08-29 10:47 UTC, Hanno Zysik (geki)
Details
01_OOo_r271359.diff (01_OOo_r271359.diff,764 bytes, patch)
2009-08-29 10:47 UTC, Hanno Zysik (geki)
Details | Diff
02_no_README_LICENSE.mysql.diff (02_no_README_LICENSE.mysql.diff,1.28 KB, patch)
2009-08-29 10:48 UTC, Hanno Zysik (geki)
Details | Diff
05_disable_tests.diff (05_disable_tests.diff,434 bytes, patch)
2009-08-29 10:48 UTC, Hanno Zysik (geki)
Details | Diff
06_disable_examples_build.diff (06_disable_examples_build.diff,308 bytes, patch)
2009-08-29 10:48 UTC, Hanno Zysik (geki)
Details | Diff
dev-db/mysql-connector-c++-1.1.0_pre786 (mysql-connector-c++-1.1.0_pre786.ebuild,1.29 KB, text/plain)
2009-10-14 11:16 UTC, Hanno Zysik (geki)
Details
dev-db/mysql-connector-c++-1.1.0_pre786 (mysql-connector-c++-1.1.0_pre786.ebuild,1.35 KB, text/plain)
2009-10-14 11:27 UTC, Hanno Zysik (geki)
Details
dev-db/mysql-connector-c++-1.1.0_pre786 (mysql-connector-c++-1.1.0_pre786.ebuild,1.39 KB, text/plain)
2009-11-20 18:29 UTC, Hanno Zysik (geki)
Details
07_attribute_visibility_default_for_exceptions.diff (07_attribute_visibility_default_for_exceptions.diff,2.19 KB, patch)
2009-12-08 12:49 UTC, Hanno Zysik (geki)
Details | Diff
dev-db/mysql-connector-c++-1.1.0_pre791 (mysql-connector-c++-1.1.0_pre791.ebuild,1.46 KB, text/plain)
2009-12-08 12:50 UTC, Hanno Zysik (geki)
Details
mysql-connector-c++-1.1.0_pre791.ebuild (mysql-connector-c++-1.1.0_pre791.ebuild,1.66 KB, text/plain)
2010-03-19 12:08 UTC, Hanno Zysik (geki)
Details
dev-db/mysql-connector-c++-1.1.0_pre814 (mysql-connector-c++-1.1.0_pre814.ebuild,1.79 KB, text/plain)
2010-03-24 10:01 UTC, Hanno Zysik (geki)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Zysik (geki) 2009-08-27 12:51:20 UTC
MySQL Connector/C++ is a fairly new JDBC 4.0 API implementation in C++.
Licensed under GPLv2.

See URL for more information.

MySQL Connector/C++ v1.0.6 will be a dependency for OpenOffice.org.
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=OOO310/mysqlnative
Therefore my report.

I am going to attach an ebuild for RFC. :)
Comment 1 Hanno Zysik (geki) 2009-08-27 12:52:56 UTC
Created attachment 202393 [details]
dev-db/mysql-connector-c++-1.0.6_pre754

... from debian archive.
Comment 2 Hanno Zysik (geki) 2009-08-28 22:50:37 UTC
There will be a bump to revision 768 with test code and icu dependency removed.
Just waiting for the tarball on debian archive.
Comment 3 Hanno Zysik (geki) 2009-08-29 10:47:28 UTC
Created attachment 202580 [details]
dev-db/mysql-connector-c++-1.0.6_pre768

Since one cannot add optional cmake flags I have to patch the examples build.

Instead of 06_disable_examples_build.diff I would prefer to add '-DMYSQLCPPCONN_BUILD_EXAMPLES:BOOL=0' to the cmake command.
Comment 4 Hanno Zysik (geki) 2009-08-29 10:47:56 UTC
Created attachment 202582 [details, diff]
01_OOo_r271359.diff
Comment 5 Hanno Zysik (geki) 2009-08-29 10:48:11 UTC
Created attachment 202584 [details, diff]
02_no_README_LICENSE.mysql.diff
Comment 6 Hanno Zysik (geki) 2009-08-29 10:48:25 UTC
Created attachment 202586 [details, diff]
05_disable_tests.diff
Comment 7 Hanno Zysik (geki) 2009-08-29 10:48:41 UTC
Created attachment 202587 [details, diff]
06_disable_examples_build.diff
Comment 8 Hanno Zysik (geki) 2009-10-14 11:16:50 UTC
Created attachment 207072 [details]
dev-db/mysql-connector-c++-1.1.0_pre786

dev-db/mysql-connector-c++-1.1.0_pre786
- add openssl dependency
- add debug and gcov USEflag
- upstream cleaned up :)

I wonder about gcov USEflag.

And this piece of '$(use USEflag && echo 1 || echo 0)'.
use_enable and use_with fail. :)

Any better idea?
Comment 9 Hanno Zysik (geki) 2009-10-14 11:27:20 UTC
Created attachment 207074 [details]
dev-db/mysql-connector-c++-1.1.0_pre786

added use_cmake helper function.
Comment 10 Hanno Zysik (geki) 2009-11-20 18:29:21 UTC
Created attachment 210731 [details]
dev-db/mysql-connector-c++-1.1.0_pre786

- add RESTRICT for debug build
- some minor cosmetics
Comment 11 Hanno Zysik (geki) 2009-12-08 12:49:29 UTC
Created attachment 212445 [details, diff]
07_attribute_visibility_default_for_exceptions.diff

See: http://bugs.debian.org/559219
Comment 12 Hanno Zysik (geki) 2009-12-08 12:50:18 UTC
Created attachment 212446 [details]
dev-db/mysql-connector-c++-1.1.0_pre791

dev-db/mysql-connector-c++-1.1.0_pre791 bump
Comment 13 Hanno Zysik (geki) 2010-03-19 12:08:44 UTC
Created attachment 224229 [details]
mysql-connector-c++-1.1.0_pre791.ebuild

addition:
- useflag [static-libs]
Comment 14 Hanno Zysik (geki) 2010-03-24 10:01:55 UTC
Created attachment 225089 [details]
dev-db/mysql-connector-c++-1.1.0_pre814

bump; cosmetics;
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-24 21:19:18 UTC
InCVS now.

I had to clean up the libdir stuff more.

Also used the patches straight from Debian, instead of having a duplicate copy.

Are you interested in being a proxy maintainer for this package?
Comment 16 Hanno Zysik (geki) 2010-03-24 22:27:22 UTC
Sure, why not. I test it with openoffice anyway. One question I have, though.

How does portage handle a debug build? My experience is that, although one enables the useflag [debug], portage strips the debug symbols from the resulting binaries and libraries. That should not be, should it?! Hard to debug then... Therefore I use 'RESTRICT="debug? ( strip )"' to have the debug symbols in the binaries and libraries.
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-24 22:44:38 UTC
USE=debug does not mean debug symbols. It means additional debugging code.

# FEATURES=splitdebug CFLAGS='... -g ...' emerge CAT/PN
will give you the debug data split off from the binaries, per the ELF debuglink spec. Alternatively, if you the monolith binaries with debug:
FEATURES='-splitdebug nostrip -strip' ...


Comment 18 Francesco Riosa 2010-03-24 22:48:10 UTC
Hanno Meyer-Thurow  @16

FEATURES="nostrip splitdebug"
maybe "installsources"

http://www.gentoo.org/proj/en/qa/backtraces.xml
man make.conf
Comment 19 Hanno Zysik (geki) 2010-03-24 23:14:07 UTC
@Robin & @Francesco
Thanks, I added that to /etc/portage/bashrc successfully.

marked as verified.
Comment 20 Hanno Zysik (geki) 2010-03-25 14:42:02 UTC
Finally got to test this package from portage.

I wonder if you want to apply debians patch 04_libmysqlclient_SONAME.dpatch. That hardwires mysql-5.1 afais. So the ebuild may depend on '=virtual/mysql-5.1' instead. Or do mysql 5.4 and 6.0 have libmysqlclient_r.so.16, too?
Comment 21 Hanno Zysik (geki) 2010-03-31 19:39:20 UTC
Another thing I wonder about is the useflag [static] versus [static-libs].

Looking at my world set it seems that programs use [static] and libraries, which dev-db/mysql-connector-c++ is, use [static-libs]. Whoever introduced the latter one ...
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-31 22:27:33 UTC
(In reply to comment #20)
> Finally got to test this package from portage.
> 
> I wonder if you want to apply debians patch 04_libmysqlclient_SONAME.dpatch.
> That hardwires mysql-5.1 afais. So the ebuild may depend on
> '=virtual/mysql-5.1' instead. Or do mysql 5.4 and 6.0 have
> libmysqlclient_r.so.16, too?
5.4, 5.5 and 6.0 do have the same SONAME version.


static-libs was added for people that wanted some package to build dynamic binaries but static libs at the same time.