[SCM] Amarok packaging branch, master, updated. debian/2.5.0-1-11-g4680f74

Modestas Vainius modax at alioth.debian.org
Fri May 25 22:06:07 UTC 2012


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/amarok.git;a=commitdiff;h=a8d24f9

The following commit has been merged in the master branch:
commit a8d24f9d987e72ce3449c266f679fab9325a67d7
Author: Modestas Vainius <modax at debian.org>
Date:   Sun May 20 11:57:04 2012 +0300

    Make package build with Debian libmysqld-pic 5.5.23.
    
    debian_find_mysql_fix.diff improved.
---
 debian/changelog                          |    2 ++
 debian/patches/debian_find_mysql_fix.diff |   22 +++++++++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 210cd67..5efc679 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ amarok (2.5.0-2~pre1) UNRELEASED; urgency=low
   * Bump Standards-Version to 3.9.3: no changes needed.
   * Since the package is compat=9, rebuild againt debhelper 9.20120419 should
     enable hardening flags. (Closes: #653354)
+  * Improve debian_find_mysql_fix.diff to work with Debian libmysqld-pic
+    5.5.23.
 
  -- Modestas Vainius <modax at debian.org>  Sat, 19 May 2012 22:16:23 +0300
 
diff --git a/debian/patches/debian_find_mysql_fix.diff b/debian/patches/debian_find_mysql_fix.diff
index 37651d8..0fc1c6a 100644
--- a/debian/patches/debian_find_mysql_fix.diff
+++ b/debian/patches/debian_find_mysql_fix.diff
@@ -1,5 +1,10 @@
 From: Modestas Vainius <modax at debian.org>
 Subject: Fix mysql_config call for Debian MySQL
+Last-Update: 2012-05-21
+
+* As of 5.5.23, mysql_config_pic is shipped inside libmysqld-pic package.
+* As of 5.5.23, -L/usr/lib/mysql is no longer in --libmysqld-libs so linker
+  can't find -lmysqld_pic anymore.
 
 -- Found MySQL: Usage: /usr/bin/mysql_config [OPTIONS]
 Options:
@@ -27,7 +32,12 @@ Options:
 ii  libmysqlclient-dev            5.1.58-1                      MySQL database development files
 --- a/cmake/modules/FindMySQLAmarok.cmake
 +++ b/cmake/modules/FindMySQLAmarok.cmake
-@@ -17,7 +17,7 @@ if(NOT WIN32)
+@@ -13,11 +13,11 @@
+ # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+ 
+ if(NOT WIN32)
+-    find_program(MYSQLCONFIG_EXECUTABLE NAMES mysql_config mysql_config5 PATHS ${BIN_INSTALL_DIR} ~/usr/bin /usr/local/bin)
++    find_program(MYSQLCONFIG_EXECUTABLE NAMES mysql_config_pic mysql_config mysql_config5 PATHS ${BIN_INSTALL_DIR} ~/usr/bin /usr/local/bin)
  endif(NOT WIN32)
  
  if(MYSQLCONFIG_EXECUTABLE)
@@ -36,3 +46,13 @@ ii  libmysqlclient-dev            5.1.58-1                      MySQL database d
      exec_program(${MYSQLCONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE MYSQL_CFLAGS)
      exec_program(${MYSQLCONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE MYSQL_LIBRARIES)
      exec_program(${MYSQLCONFIG_EXECUTABLE} ARGS --libmysqld-libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE MYSQL_EMBEDDED_LIBSTEMP)
+@@ -36,6 +36,9 @@ if(MYSQLCONFIG_EXECUTABLE)
+ 
+     if(MYSQLD_PIC_SEPARATE)
+         string(REPLACE "lmysqld" "lmysqld_pic" MYSQL_EMBEDDED_LIBRARIES ${MYSQL_EMBEDDED_LIBSTEMP})
++        # Hack for Debian. mysql_config{,_pic} as of 5.5.23 does not refer to
++        # -L/usr/lib/mysql where mysqld_pic actually lives (see #673574)
++        set(MYSQL_EMBEDDED_LIBRARIES "-L/usr/lib/mysql ${MYSQL_EMBEDDED_LIBRARIES}")
+     else(MYSQLD_PIC_SEPARATE)
+         set(MYSQL_EMBEDDED_LIBRARIES ${MYSQL_EMBEDDED_LIBSTEMP})
+     endif(MYSQLD_PIC_SEPARATE)

-- 
Amarok packaging



More information about the pkg-kde-commits mailing list