Skip to content
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

fix: do not hardcode plugin install dir #361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hillwoodroc
Copy link
Contributor

Log: do not hardcode plugin install dir for openSUSE and fedora

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: hillwoodroc

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot
Copy link

Hi @hillwoodroc. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@BLumia BLumia requested a review from tsic404 May 14, 2024 13:23
@tsic404
Copy link
Contributor

tsic404 commented May 14, 2024

image

这个会带上 x86_64-linux-gnu 导致插件都找不到
要改动的话,plugin path的查找路径都要修改。

@hillwoodroc
Copy link
Contributor Author

image

这个会带上 x86_64-linux-gnu 导致插件都找不到 要改动的话,plugin path的查找路径都要修改。

单独给 debian 的 rule 文件定义一个路径是否可以?

@hillwoodroc
Copy link
Contributor Author

或者在 CMakeLists.txt 文件里面加一行 include(GNUInstallDirs) 如何?

@kegechen kegechen requested a review from 18202781743 May 15, 2024 01:30
@deepin-bot
Copy link

deepin-bot bot commented May 15, 2024

TAG Bot

New tag: 0.0.23
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #360

@tsic404
Copy link
Contributor

tsic404 commented May 16, 2024

image 这个会带上 `x86_64-linux-gnu` 导致插件都找不到 要改动的话,plugin path的查找路径都要修改。

单独给 debian 的 rule 文件定义一个路径是否可以?

意思是代码中找插件的路径这儿这儿 及其debain install文件中定义的安装路径都要修改

@tsic404
Copy link
Contributor

tsic404 commented May 17, 2024

/test all

@hillwoodroc
Copy link
Contributor Author

我加了个条件判断,不会影响 debian 的安装目录了。

@hillwoodroc
Copy link
Contributor Author

hillwoodroc commented May 17, 2024

又更新了一下,把 c++ 里面的死路径全部改为 QString 来获取的动态路径了。你们试试看有没有什么问题。

@tsic404
Copy link
Contributor

tsic404 commented May 22, 2024

/test all

@deepin-ci-robot
Copy link

@hillwoodroc: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test all

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Log: fix: do not hardcode plugin install dir for openSUSE and Fedora
@@ -4,6 +4,16 @@

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")

if((CMAKE_INSTALL_LIBDIR MATCHES "lib") OR (CMAKE_INSTALL_LIBDIR MATCHES "lib64"))
set(PLUGIN_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/dde-dock/tmp/plugins CACHE STRING "Plugin install path")
elseif(CMAKE_INSTALL_LIBDIR MATCHES "lib/*")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该在 debian/rules 设置 -DPLUGIN_INSTALL_DIR ,最好不要在 cmake 做这些判断

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants