Skip to content

Commit a3deb16

Browse files
author
Jonathan Perkin
committed
bug#51925: 5.5 installed header file layout is incorrect
The 'mysql' include sub-directory was copied directly into include/ rather than retaining its own directory. Fix this, and update mysql_config which needs additional logic to detect the correct prefix for includes.
1 parent 2b39e06 commit a3deb16

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

include/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,4 @@ SET(HEADERS
5959
)
6060

6161
INSTALL(FILES ${HEADERS} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development)
62-
INSTALL(DIRECTORY mysql/ DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development FILES_MATCHING PATTERN "*.h" )
63-
64-
62+
INSTALL(DIRECTORY mysql/ DESTINATION ${INSTALL_INCLUDEDIR}/mysql COMPONENT Development FILES_MATCHING PATTERN "*.h")

scripts/mysql_config.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ plugindir_rel=`echo $plugindir | sed -e "s;^$basedir/;;"`
9292
fix_path plugindir $plugindir_rel lib/mysql/plugin lib/plugin
9393

9494
pkgincludedir='@pkgincludedir@'
95-
fix_path pkgincludedir include/mysql include
95+
if [ -f $basedir/include/mysql/mysql.h ]; then
96+
pkgincludedir="$basedir/include/mysql"
97+
elif [ -f $basedir/include/mysql.h ]; then
98+
pkgincludedir="$basedir/include"
99+
fi
96100

97101
version='@VERSION@'
98102
socket='@MYSQL_UNIX_ADDR@'

0 commit comments

Comments
 (0)