Le dim. 9 févr. 2025 à 15:36, Håkon Alstadheim a écrit : > Den 08.02.2025 15:47, skrev Jacques Montier: > > Hello everyone, > > > > Is it possible to stop a compilation midway in the case of a very long > > compilation and then resume it from the same point without having to > > start over from the beginning ? > > > > Thank you for your response. > > > For the big compiles I set PORTAGE_TMPDIR=/pt/ , which I have created > and which is NOT a tmpfs, so it will survive a reboot (and I don't have > enough ram anyway) . You might also want to check FEATURES, either > globally or on a per-package basis, make sure you don't have fail-clean. > Watch out so your newly permanent tmpdir does not fill up. > > Then, if it dies for some reason, I do for example: > > ebuild `equery w www-client/firefox ` merge. > > make or cmake or whatever will do the best it can to pick up where it > left off. > > P.S: Search the web to find out to set FEATURES and PORTAGE_TMPDIR in > the environment on a per-package basis, or just prepend the settings to > your command-line. > > > > Thank you all for your feedback and advice. For testing, - emerge media-libs/opencv-4.10.0 - some time later CTRL+C to stop compilation Then I followed Jack's advice - ebuild /var/db/repos/gentoo/media-libs/opencv/opencv-4.10.0.ebuild compile - ebuild /var/db/repos/gentoo/media-libs/opencv/opencv-4.10.0.ebuild install - ebuild /var/db/repos/gentoo/media-libs/opencv/opencv-4.10.0.ebuild qmerge Everything worked fine, thanks a lot. Good evening to all, Best regards, -- Jacques