-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: fix destination path #34
Conversation
Because CMAKE_LIBDIR is none currently. Thus, groonga-normalizer-mysql.pc is installed to groonga-normalizer-mysql-1.2.3/groonga-normalizer-mysql.pc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, could you explain why these changes are needed, what problems were happen with full log and how do you fix these problems in the PR description?
CMakeLists.txt
Outdated
"share/${GROONGA_NORMALIZER_MYSQL_PROJECT_NAME}") | ||
if(NOT DEFINED GROONGA_NORMALIZER_MYSQL_DOC_DIR) | ||
set(GROONGA_NORMALIZER_MYSQL_DOC_DIR | ||
"share/doc/${GROONGA_NORMALIZER_MYSQL_PROJECT_NAME}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use CMAKE_INSTALL_DOCDIR
by including GNUInstallDirs
:
@@ -46,6 +46,7 @@ This package provides development files for groonga-normalizer-mysql. | |||
%cmake \ | |||
-DCMAKE_BUILD_TYPE=Release \ | |||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \ | |||
-DCMAKE_LIBDIR=%{_libdir} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use CMAKE_INSTALL_LIBDIR
by including GNUInstallDirs
instead of specifying CMAKE_LIBDIR
explicitly.
Thank you for your comments. I've fixed them. |
share/${GROONGA_NORMALIZER_MYSQL_PROJECT_NAME}
is shownshare/groonga-normalizer-mysql
.Thus,
README.md
anddoc/text/lgpl-2.0.txt
are installed inshare/groonga-normalizer-mysql/
.However, these files are installed
share/doc/groonga-normalizer-mysql/
for RPM packages.See: https://github.com/groonga/groonga-normalizer-mysql/blob/main/packages/yum/groonga-normalizer-mysql.spec.in#L59C1-L59C42
I change destination path
share/groonga-normalizer-mysql
toshare/doc/groonga-normalizer-mysql
.https://github.com/groonga/groonga-normalizer-mysql/blob/main/CMakeLists.txt#L97 is defined
DESTINATION "${CMAKE_LIBDIR}/pkgconfig/"
.However,
CMAKE_LIBDIR
is not definition. (Probably,CMAKE_LIBDIR
is null.)Thus,
groonga-normalizer-mysql.pc
is installed topkgconfig/
. This install path is not expected.I change destination path
pkgconfig/
tousr/lib64(or lib)/pkgconfig
.