-
Notifications
You must be signed in to change notification settings - Fork 114
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
win_bison can't find data directory unless it's in the current directory #48
Comments
Thank you for discovering this bug. Going to fix it soon. |
I was able to hit it too when building Mesa3D with MSVC. |
pal1000
added a commit
to pal1000/mesa-dist-win
that referenced
this issue
Sep 17, 2019
Try this binary. If it works I'll publish it. |
I tested it and it works great, thanks! |
It worked for me too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting with 2.5.19, if the
data/
directory isn't in the current directory, running win_bison gives the following error:data/m4sugar/m4sugar.m4: cannot open: No such file or directory
Looking at the git history, this broke while merging the upstream changes.
bison/src/main.c
doesn't useget_local_pkgdatadir()
anymore, which had been patched to useget_app_path()
fromcommon/misc/app_path.c
. Instead, the datadir is fetched by callingpkgdatadir()
inbison/src/files.c
. So, that function needs to be changed to callget_app_path()
and return that path.The text was updated successfully, but these errors were encountered: