-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix Dub dependencies #10045
Fix Dub dependencies #10045
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10045 +/- ##
==========================================
- Coverage 66.22% 61.34% -4.89%
==========================================
Files 404 202 -202
Lines 86216 43035 -43181
Branches 19021 9438 -9583
==========================================
- Hits 57100 26399 -30701
+ Misses 24716 14533 -10183
+ Partials 4400 2103 -2297 Continue to review full report at Codecov.
|
Commits 3 and 4 should probably be rolled as fixups into the first commit. |
I agree |
413073f
to
acbc57a
Compare
67210da
to
a2d2474
Compare
Each time I bring modification to [1/6] /usr/bin/glib-compile-resources '../test cases/vala/14 target glib version and gresources/gres/test-resources.xml' --sourcedir '../test cases/vala/14 target glib version and gresources/gres/.' --sourcedir '../test cases/vala/14 target glib version and gresources/gres' --internal --generate --target gres/testui.c --dependency-file gres/testui.c.d
FAILED: gres/testui.c
/usr/bin/glib-compile-resources '../test cases/vala/14 target glib version and gresources/gres/test-resources.xml' --sourcedir '../test cases/vala/14 target glib version and gresources/gres/.' --sourcedir '../test cases/vala/14 target glib version and gresources/gres' --internal --generate --target gres/testui.c --dependency-file gres/testui.c.d
../test cases/vala/14 target glib version and gresources/gres/test-resources.xml: Failed to close file descriptor for child process (Operation not permitted).
[2/6] /usr/bin/glib-compile-resources '../test cases/vala/14 target glib version and gresources/gres/test-resources.xml' --sourcedir '../test cases/vala/14 target glib version and gresources/gres/.' --sourcedir '../test cases/vala/14 target glib version and gresources/gres' --internal --generate --target gres/testui.h
FAILED: gres/testui.h
/usr/bin/glib-compile-resources '../test cases/vala/14 target glib version and gresources/gres/test-resources.xml' --sourcedir '../test cases/vala/14 target glib version and gresources/gres/.' --sourcedir '../test cases/vala/14 target glib version and gresources/gres' --internal --generate --target gres/testui.h
../test cases/vala/14 target glib version and gresources/gres/test-resources.xml: Failed to close file descriptor for child process (Operation not permitted). Only the modification of |
This happens in any PR that tries to modify the CI images, not just yours. It also causes the weekly cron image rebuilds to fail. This is not your problem, in other words. The issue has been discovered elsewhere too, particularly https://gitlab.gnome.org/Infrastructure/GitLab/-/issues/545 which analyses it quite a bit. Ultimately I think we're at the mercy of Github's infrastructure, which I'm not sure we can do anything about and which has a timeframe I possess no knowledge of. On other PRs which did CI updates on images other than the ones which currently fail to rebuild, I merged the CI image update separately, expected a bunch of jobs to fail, and just wanted to get the Ubuntu image to rebuild. See #10070 Unfortunately, that doesn't help if you actually want to update the Arch or OpenSUSE images. |
I've changed to only modify the Ubuntu images, but it still leads to failure the Arch and Opensuse image builders. |
Seems like the Windows issue still exists: https://dev.azure.com/jussi0947/jussi/_build/results?buildId=13376&view=logs&j=c0dfc93a-5619-5146-04af-43b404cff11e&t=f3b41500-5392-55b4-1d21-64986175d7fa&l=2095 |
This pull request introduces 1 alert when merging 6d12a27 into 7df6c6a - view on LGTM.com new alerts:
|
There is a bug in the Windows 32bits environment (
For the time being I can skip the tests on Windows, but my code might break some situations that are working today (maybe shouldn't) on 32bits Windows. (arguablly not a large audience). |
This pull request introduces 1 alert when merging ab95e56 into 44104e8 - view on LGTM.com new alerts:
|
ab7eb15
to
f3dd59a
Compare
I thought Please let me know if anything must be changed. |
- fix the research of target built by DUB - explicitely state that DUB dynamic libraries and source libraries are not supported (yet) (mesonbuild#6581) - fix the build settings of recipes having sub-dependencies (mesonbuild#7560) - fix winlibs added from dub recipe - sanitization, comments, explanations...
Anything I can do to help the review? |
I’ll look at this in a little bit, just been waiting for the merge window to open |
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.
LGTM, thanks for persisting with this
This is nearly a complete rewrite of Dub dependencies that were broken except for the most simple cases.
My test case is a simple executable depending on
vibe-d:http
. Vibe-d is complex and has a many dependencies.I tested with success on Linux and Windows (to figure out the right order of static libraries took some time but is now OK).
The non-compatibility with Dub package having sub-dependencies is especially annoying and is the main motivation for me to write this PR.
My meson file before:
My meson file now: