-
Notifications
You must be signed in to change notification settings - Fork 592
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
Meson build writes to the source directory (issue #3507 ) #3508
Conversation
Remove writes to the source directory which cause a meson build failure if the source directory is read-only. Delete the generated files from the repository.
This reverts commit 807fb67.
Remove writes to the source directory which cause a meson build failure if the source directory is read-only. Delete the generated files from the repository.
As you can see, this copying is intentional and we depend on it. Basically, we want to be able to build HarfBuzz from git checkout without using the build system at all, and some large HarfBuzz consumers depend on this. |
What we can do is to check that the files are the same and skip the copying since the copying is only needed when one modifies HarfBuzz source. |
This reverts commit 807fb67.
OK, maybe I'm overthinking this but, would this do? (it's lost the formatting)
|
|
Hmm! Well the checks seem to be a bit happier about that. |
Remove writes to the source directory which cause a meson build failure if the source directory is read-only. The scripts src/gen-harfbuzzcc.py and src/gen-hb-version.py have been modified so a copy back to the source tree is only performed if the generated files differ from the baselined files (this should therefore only happen when something does actually change as part of the development process).
623a6ad
to
960069b
Compare
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.
Please squash all the commits into one, thanks.
Github merge can do that. |
The meson build is writing files into the source directory which causes a build failure if the source is read-only. The Python scripts "src/gen-hb-version.py" and "src/gen-harfbuzzcc.py" have been amended so a copy back to the source tree is only performed if the generated files differ from the baselined files (this should therefore only happen when something does
actually change as part of the development process).