-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
distcheck fails: Permission denied: '../man/systemd.directives.xml #215
Comments
This one is tricky because I think we still want Not really sure what to suggest here... |
Considering The dependency of So I'd say just revert 747ca69 here. Opinions? |
Hmm, how does your setup look like, exactly? I don't see how How's that read-only srcdir set up for you, exactly? @filbranden I'm not convinced generating files on |
There's nothing magic to that -- "make distcheck" from current automake (1.14 here) does that. It unpacks the tarball into I didn't try
Anyway, I'm quite surprised that this doesn't affect semaphore. I even get a build failure with the above, i. e. when the source tree is not read-only (the error just looks differently). |
@zonque Sorry if my suggestion wasn't clear, what I meant was that on But now I realize that is fragile since there is no dependency to enforce ordering, maybe that could be solved by using a man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES) | man/custom-entities.ent I haven't really tested that myself (kind of swamped right now). |
I'm still trying to get my head around what the actual problem is. On my F22 machine (automake 1.15), I simply cannot reproduce the issue you're seeing, @martinpitt. I do see a different one though, which is related to
Also, I wonder how a build would possibly succeed in a read-only folder, where binaries cannot be created. @martinpitt, could you paste-dump your build error from these command sequence?
I'll keep digging. |
@zonque: I get that error about
It doesn't.
I configured with
which fails with
Complete log at http://paste.ubuntu.com/11730456/ . This could be the same root cause as What's interesting is that I don't get an error with the |
The only change compared to the
I don't get python support in my build chroot with the default Python 2, as I don't have
When I do install |
Ok, we're looking at too many unrelated issues here.
Could you try the two upper-most patches from this tree and tell me if they solve your issues? |
It depends on man/custom-entities.ent which is (and needs to be) a built file, so we need to always build man/systemd.directives.xml as well. We also need to drop this from update-man-list so that it doesn't get disted from Makefile-man.am. Fixes distcheck failure. systemd#215
The first patch for 2. ("build-sys: make SOURCE_XML_FILES array relative to $(top_srcdir)") looks good, and it indeed fixes the out-of-tree build. The second ("prefix man/custom-entities.ent dependency with $(top_srcdir)") doesn't though it breaks a normal out-of-tree build as I think the problem here is that this rule makes a disted file I committed a potential fix to my branch: martinpitt@b40d3a6 (this branch also contains your first patch). With that, out-of-tree builds and distcheck both work well. I also tested a build without lxml, i. e. with limited documentation build. OOI, can you reproduce the failure now with having python-lxml available or building for python 3? |
It depends on man/custom-entities.ent which is (and needs to be) a built file, so we need to always build man/systemd.directives.xml as well. We also need to drop this from update-man-list so that it doesn't get disted from Makefile-man.am. Fixes distcheck failure. systemd#215
Hmm, so with these changes, we would require the build host to generate @kaysievers, @poettering - any opinion? |
We still dist the generated html and .1 manpage, just not the built xml source. So it's rather the other way around -- without python/lxml you don't get correct manpages according to your ./configure, but you get the pre-built ones from the tarball. Which is a reasonable compromise IMHO. Will open a PR. |
Since commit 747ca69 from PR #152 distcheck fails:
Reverting this fixes distcheck again. This is happening in our daily distcheck builds (e. g. https://launchpadlibrarian.net/209133087/buildlog_ubuntu-wily-amd64.systemd-upstream-qa_0.v220-20150614-63432f5-0~ubuntu15.10.1_BUILDING.txt.gz) but I also get it locally. This doesn't happen with normal make/make check, as I usually don't build in a separate build dir with read-only parent (which is what distcheck does). Missing
$(build_dir)
somewhere? @zonque, any idea?The text was updated successfully, but these errors were encountered: