-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
fcitx-libpinyin: fix data path #39472
Conversation
if (type == LPLT_Simplified) { | ||
#endif | ||
- /* portable detect here */ | ||
- if (getenv("FCITXDIR")) { |
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.
What is the current value of FCITXDIR
?
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.
It's set to $out of fcitx-with-plugins:
--set FCITXDIR "$out/" |
We want FCITXDIR to point into libpinyin, which is currently not symlinked within fcitx-with-plugins (only fcitx-libpinyin is symlinked). Also, FCITXDIR doesn't accept multiple directories.
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.
Can you add this explanation to the code? it is not obvious why we remove this option.
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.
Thanks for the suggestion. I've done the explanation.
0ad4276
to
c8d9f97
Compare
c8d9f97
to
19f6fe6
Compare
@GrahamcOfBorg build fcitx-libpinyin |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: fcitx-libpinyin Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: fcitx-libpinyin Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: fcitx-libpinyin Partial log (click to expand)
|
@GrahamcOfBorg build libpinyin |
Success on x86_64-linux (full log) Attempted: libpinyin Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: libpinyin Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: libpinyin Partial log (click to expand)
|
18.03 backport: [detached HEAD 492d812] fcitx-libpinyin: fix data path |
Motivation for this change
fcitx-libpinyin is currently unusable, because it can't find the data files. It seems impossible to fix this issue without patching.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)