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

Path parsing issue in p11-kit #416

Open
Kamrulhasan12345 opened this issue May 28, 2022 · 7 comments
Open

Path parsing issue in p11-kit #416

Kamrulhasan12345 opened this issue May 28, 2022 · 7 comments

Comments

@Kamrulhasan12345
Copy link

Hi,
Recently I was running pacman -Syu in my MSYS2. While installing some packages, I saw the following error:

image

I understood that it is a path parsing issue as My MSYS2 is located at D:\Program Files\msys64
and maybe p11 is passing it somewhere withour parsing it and that's why the issue is happening.

Note that I have no program named Program in D:\

@ueno
Copy link
Member

ueno commented May 28, 2022

I haven't figured out root cause of the issue, but here is a quick analysis:

I assume that the error printed is from the execution of p11-kit.exe extract ... in the post-install script of mingw-w64-x86_64-ca-certificates package:
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-ca-certificates/ca-certificates-MINGW64.install

The command line is then diverted to calling BINDIR "/trust" command using execv, where BINDIR should point to D:\Program Files\msys64/bin:

@winner658
Copy link
Contributor

@Kamrulhasan12345 You can print out what bindir is.

@Kamrulhasan12345
Copy link
Author

Kamrulhasan12345 commented Jun 6, 2022

Sorry, can you please tell me how I can do that?
plain echo $BINDIR doesn't return anything, meaning that nothing in that name in the env.

@ueno
Copy link
Member

ueno commented Jun 7, 2022

BINDIR is a compile time constant so you can only examine it by looking at the build log of the mingw-w64-x86_64-p11-kit package. Do you happen to know if the logs are available somewhere at the MSYS2 project?

@winner658
Copy link
Contributor

@Kamrulhasan12345
I means, can you log the bindir and see if it matches your expectations?

@winner658
Copy link
Contributor

@Kamrulhasan12345 According to the screenshot, Program Files/msys64/mingw64/bin/trust is regarded as a command statement, Program is a command, and Files/msys64/mingw64/bin/trust is a parameter. So I don't think it's a p11-kit issue.

@Kamrulhasan12345
Copy link
Author

@ueno @winner658 sorry for being very late. actually i too busy with my works. @winner658 i think, actually p11-kit tries to call D:/Program Files/msys64/mingw64/bin/trust and in this case the space is maybe creating issue. But I am not exactly sure what going on.

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

No branches or pull requests

3 participants