-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
gpg unable to generate absolute path for windows drives #1869
Comments
This might as well be a gpg specific issue, but basically any command not using default home directory for gpg on git bash will fail to expand windows paths. |
I just cloned the source and rebuilt with "#define HAVE_DRIVE_LETTERS 1" and drives are properly expanded now: Maybe configure.ac from gnupg isn't properly defining environment for mingw. |
Sorry, this ticket totally fell under my radar :-( The GNU Privacy Guard version we are using is compiled from https://github.com/msys2/MSYS2-packages/tree/master/gnupg. I do not see anything in the history of that directory that would suggest that they fixed the drive letter issue. So this is how you can help: investigate a little further why
My hunch is that |
thanks for the detailed steps, l can check and see if there's a configure option for drive letters. I'll provide an update soon.
I disable the check for now, but any hints as to why I got this issue? missing dependencies? I see I do have /sys/mmap.h header file installed. EDIT: never mind the mmap error, still new to this repo and I was building the package from the wrong shell (not msys2_shell). so it's probably that. |
@dscho I was able to build and confirm issue still there with gnupg-2.2.13.
adding the -msys pattern to the -mingw32 case only brakes the build, it defines a bunch of other environment variables. |
@cmllamas excellent progress! |
@dscho, I checked out the following sdk (gpg1 was being used):
I rebuilt gpg package and confirmed windows paths where properly being expanded, just as expected.
gpg1 does not process the homedir and that is the difference between the two versions and why they behave differently. I'm thinking HAVE_DRIVE_LETTERS feature should have probably been defined for both versions of gpg on msys2? I only see a few parts on gpg1 where the definition is even being used, so no point on changing that I suppose. What do you think of this? Next steps? |
Agreed!
Agreed, too!
Excellent work! I think the logical next steps would be a PR to https://github.com/git-for-windows/MSYS2-packages that adds and applies that patch. Just make sure that |
ok, here it is: git-for-windows/MSYS2-packages#33 |
Setup
defaults?
to the issue you're seeing?
Details
Minimal, Complete, and Verifiable example
this will help us understand the issue.
URL to that repository to help us with testing?
no
The text was updated successfully, but these errors were encountered: