El lun, 20-06-2016 a las 16:58 +0200, Hogren escribió:
> There are many big softwares like Firefox, LibreOffice. At a certain
> moment, I need to stop the compilation to halt the PC.
> 
> But, when I boot up again the PC and I «emerge --resume», it restart
> the compilation process.
> 
> Is there a way to not restart the compilation process ?
> I think that if I enter in the temp directory and I type «make &&
> make install», it will install the software but it will not update
> portage database.

Yes you can, it is not officially supported to do this but I have done
it several times (webkits, libreoffice) without problems, what I do is
make a binary package and then install it, you should have set $PKGDIR
in make.conf, here's how I've done it:

You stopped at libreoffice, you restart your computer, then you should
find out what is the exact ebuild you were building, equery can help
you, if it is an upgrade, i.e.:

$ equery which libreoffice
${PORDIR}/app-office/libreoffice/libreoffice-5.1.3.2.ebuild

then you pretend you are emerge, by using the portage user to make the
build resume, make sure $PKGDIR is writable by the portage user:

$ sudo -u portage ebuild\
 ${PORTDIR}/app-office/libreoffice/libreoffice-5.1.3.2.ebuild \
package

or nesting both commands:

$ sudo -u portage ebuild $(equery w libreoffice) package

this makes all the previous steps needed (prepare, configure ,build,
install) if they haven't been done,
when that is finished you can merge your recently created binary
package by:

$ sudo emerge -av1K =app-office/libreoffice-5.1.3.2 

and resume the general upgrade with:

emerge --resume -av --exclude app-office/libreoffice





Reply via email to