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

minstall: always track meson-created directories #8555

Merged
merged 2 commits into from
Mar 19, 2021

Conversation

eli-schwartz
Copy link
Member

If a custom_target output is a directory, we install it as a directory, not as a file. And, we try to track subdirectories which are created so uninstalling works. But one directory creation did not go through DirMaker, in the case where the output directory does not have any further subdirectories.

Consolidate on makedirs, since I don't see much point in using os.mkdir right here.

Discovered while investigating DISTRHO/DISTRHO-Ports#83

If a custom_target output is a directory, we install it as a directory,
not as a file. And, we try to track subdirectories which are created so
uninstalling works. But one directory creation did not go through
DirMaker, in the case where the output directory does not have any
further subdirectories.

Consolidate on makedirs, since I don't see much point in using os.mkdir
right here.
@xclaesse
Copy link
Member

A unit test would be great. Other than that LGTM.

@eli-schwartz
Copy link
Member Author

common/8 install/ and run_unittests.py:test_uninstall seems like a great place to put the test. Will do.

@eli-schwartz
Copy link
Member Author

There we go. ./run_unittests.py -k uninstall locally passes.

@eli-schwartz
Copy link
Member Author

Test failure is irrelevant; cygwin once again complains: test cases/frameworks/13 yelp/meson.build:1:0: ERROR: Compiler cc can not compile programs.

@eli-schwartz eli-schwartz merged commit f7b0238 into mesonbuild:master Mar 19, 2021
@eli-schwartz eli-schwartz deleted the minstall-dirs branch June 13, 2021 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants