| Summary: | Dockerfile has wrong permissions in container and unset variable in script. | ||
|---|---|---|---|
| Product: | [Unmaintained] rust-qt-binding-generator | Reporter: | Andreas Pfeil <der.andreas.pfeil> |
| Component: | general | Assignee: | Jos van den Oever <jos> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | minor | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Andreas Pfeil
2018-08-24 13:59:43 UTC
I seems my fix does not work. I first tried it with using USER root, which worked, I assume that I ran into a caching issue or so... I can't really explain it. Nevertheless, while my fix may be garbage, the problem exists. Okay so, I can't reproduce the error. When I used the container first, everything was belonging to root (everything that was mounted). But now it's not. I'm pretty confused and hope you can still take something out of my problem. I switched back to the way it was and was able to compile the binding generator and the qt_quick template. I still get the error on the todo example, though: neon@b51d670d6440:~/rust_qt_binding_generator/examples/todos/build$ make [ 10%] Generating ../rust/target/release/librust.a error: failed to load source for a dependency on `libc` Caused by: Unable to update registry `https://github.com/rust-lang/crates.io-index` Caused by: failed to open: /home/neon/.cargo/registry/index/github.com-1ecc6299db9ec823/.cargo-index-lock Caused by: Permission denied (os error 13) CMakeFiles/rust_target.dir/build.make:62: recipe for target '../rust/target/release/librust.a' failed make[2]: *** [../rust/target/release/librust.a] Error 101 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rust_target.dir/all' failed make[1]: *** [CMakeFiles/rust_target.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 neon@b51d670d6440:~/rust_qt_binding_generator/examples/todos/build$ Okay, so, a fix is to add the user to the docker group [1]. I can't really say why, though. [1]: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user Did you try running the docker container via docker-bash-session.sh That script sets XDG_CURRENT_DESKTOP |