-
Notifications
You must be signed in to change notification settings - Fork 605
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
amdgpu plugin: Make possible to install in other location (during build) #1877
Comments
Related: #1876 |
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: checkpoint-restore#1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: checkpoint-restore#1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
@carnil In this comment Rajneesh mentioned that the |
Hi there,
The second of these errors resulted after running this command in our Funtoo ebuild:
Reference to our package management code triggering this error from criu version 3.17 is here: sys-process/criu/templates/criu.tmpl @rst0git any ideas on what provides the |
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: checkpoint-restore#1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
@fxkamd Can you, or one of your team, provide a fix to make sure the include paths in |
@carnil @siris CRIU does a |
@adrianreber Thanks, I will probably then first focus on updating criu to 3.17 (and not include libdrm-dev in the Build-Depends to avoid trying to build it). |
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: checkpoint-restore#1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
@adrianreber: For now I have uploaded criu 3.17 to Debian without the amdgpu plugin: https://tracker.debian.org/news/1324914/accepted-criu-317-1-source-into-experimental/ |
@adrianreber we also mitigated the In regards to leveraging One idea, leveraging a build system like meson or cmake for CRIU may make the compilation of CRIU more flexible across different Linux distributions. If you are interested in seeing the workaround (its hacky) we are using in Funtoo Linux check out the ebuild template source code for the sys-process/criu-3.17 package. We will stay tuned to a new release of CRIU with the bug fix, then we can remove workaround from Funtoo's CRIU ebuild template. |
Meson or cmake won't really help here if the problem is https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies as that's fully possible to do in both. It will make it easier, if the project chooses to be careful, to avoid such pitfalls. What is really needed is a build option to control whether the amdgpu plugin is built, which is e.g. passed to Meson's The default could then be behavior-preserving: check automatically for it. But distros can set it to force-enabled or force-disabled. ... It is also possible, albeit harder, to do configure-time options in a custom Makefile. Just check if a Makefile variable has been defined as |
When building packages for CRIU the source directory might have a name different than 'criu'. Fixes: checkpoint-restore#1877 Reported-by: @siris Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Note that Funtoo has forked quite a lot from Gentoo, but in both Gentoo and Funtoo there is direct support for Meson build options quite cleanly through something called a Portage eclass. For an example meson ebuild that is used to toggle certain compile time options see: repos/kit-fixups/browse/desktop-kit/curated/x11-wm/enlightenment/templates/enlightenment.tmpl In Funtoo Linux we follow the direction of the the upstream software provider on mostly all packages included. So whatever works best for the CRIU project maintainers, we will work with and adapt to. I hope I did not come off as suggesting a change to CRUI build system, I simply wanted to offer some ideas to be helpful 😄 All the help here as been lovely, thank you @rst0git , @adrianreber , and @eli-schwartz |
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: #1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
When building packages for CRIU the source directory might have a name different than 'criu'. Fixes: checkpoint-restore#1877 Reported-by: @siris Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: checkpoint-restore#1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
When building packages for CRIU the source directory might have a name different than 'criu'. Fixes: checkpoint-restore#1877 Reported-by: @siris Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: checkpoint-restore#1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
When building packages for CRIU the source directory might have a name different than 'criu'. Fixes: checkpoint-restore#1877 Reported-by: @siris Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: checkpoint-restore#1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Building the criu packages for Ubuntu/Debian fails with: mkdir: cannot create directory '/var/lib/criu': Permission denied This patch updates PLUGINDIR with the value /usr/lib/criu Fixes: #1877 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Hi
I'm currently trying to package 3.17 for Debian and noticed some problems with the newly introduced amdgpu plugin: The PLUGINDIR is almost fixed to
/var/lib/criu
which is not a problem, but during build the makefile makes it hard to have the plugins first installed below DESTDIR:Something like
I did not submit a full patch for it, as I'm not yet sure this is how you would like to handle it and I have not yet done much contributions, sorry about that :-(
A secondary problem is the build will fail afterwards ith the above changes applied, have not further investigated yet, yere the excerpt of the log:
The text was updated successfully, but these errors were encountered: