| Summary: | Build issue: Amarok: Several build options missing with the cmake conversion | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Darrell <darrella> |
| Component: | non-core programs | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | bugwatch, darrella, fatzer2, michele.calgaro, mike, slavek.banko |
| Priority: | P1 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | Other | ||
| OS: | Other | ||
| See Also: | http://bugs.pearsoncomputing.net/show_bug.cgi?id=1300 | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 1300, 3060 | ||
| Attachments: | Adds PostgreSQL support | ||
|
Description
Darrell
2012-01-26 15:15:22 CST
This is a build issue and the bug report should be bumped to Blocker. Created attachment 810 [details]
Adds PostgreSQL support
I specifically need postgres support so I have added an 'ENABLE_POSTGRESQL' option to the cmake build system. It effective gives the equivalent of '--enable-postgresql' that is available when using autotools. I'm not a developer so it may well not fit with the TDE style guide but it does the job. Also missing are CMakeLists.txt files for amarok/amarok/src/metadata/mp4, speex, trueaudio, wavpack. Looks like Mike's patch could be used as a template to port the --enable-mysql option. I always use the built-in sqlite database. Is there an amarok conversion tool to convert from the built-in sqlite database to the external sqlite, mysql, or postgresql databases? If there is a way to convert the built-in database then I could help with testing. (In reply to Darrell from comment #5) > Looks like Mike's patch could be used as a template to port the > --enable-mysql option. The MySQL option will be more complicated because cmake doesn't provide appropriate module for mysql nor the mysql package doesn't provide the pkg-config file... There is a third-party implementation: http://www.cmake.org/Wiki/CMakeUserFindMySQL But IMO it's quite crappy... The patch looks good except two points: 1. The option supposed to be called WITH_* rather than ENABLE_* acording to common notation 2. There is no need in db_{libs,dirs,incs} variables: feel free to use their PostgreSQL_* variants directly. If the project is configured to build without postgres they just will be evaluated into null strings. When resolving this bug, bug 1300 should be closed as well if its status hasn't changed. CMake conversion has now been completed thanks to Greg's excellent work. See http://mirror.git.trinitydesktop.org/cgit/amarok/commit/?id=16ec57d25f |