Re: [gentoo-user] Virtual machines, and creating bootable images

2016-06-20 Thread J. Roeleveld
On Friday, June 17, 2016 11:46:08 PM Jigme Datse Yli-RAsku wrote:
> I am looking at creating a gentoo install which I can use for my hosted
> servers.  The documentation I have seen about doing so is to mount an
> "ISO" and then dd the mounted device to a data drive, make the data
> drive bootable (set it in the settings for hosting provider) and attach
> it to a server.
> 
> I want to be able to build these images and test them in a virtual
> machine on my local server, then end up doing what I need on the hosting
> provider to get them in place.
> 
> Quick research hasn't given me any clear guidance as to how I can export
> the virtual machine (ie. what even can do this) to an image that can be
> copied to a drive to produce a bootable drive.
> 
> Anyone have some good starting points to think about this?

Not entirely how you are looking into this, but I generally do the following:

1) Build an install with the packages and config I need
2) Backup the binary packages
3) Backup all the config files I modified (keep a list during "1")
4) During install at remote site, copy the packages and install using the "-k" 
flag

Any modern hosting site allows me to attach an ISO image to boot from. My 
preference is sysresccd as it is Gentoo based and works quite well together 
with the install guide.

--
Joost

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread Hogren
 

  Hello !!

I have a little question about portage.

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.

Thank you for your response !

Bye

Hogren 

Re: [gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread Ian Bloss
Usually what I'll do is ctrl-z which pauses emerge, and then I'll run
pm-suspend to put the machine to sleep. After I turn it back on again I'll
issue fg and emerge will resume.

The --resume flag just attempts to continue a failed emerge list.

On Mon, Jun 20, 2016, 11:02 Hogren  wrote:

>
>
> Hello !!
>
> I have a little question about portage.
>
> 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.
>
>
> Thank you for your response !
>
> Bye
>
>
>
> Hogren
>


Re: [gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread Andrew Lowe

On 06/20/16 22:58, Hogren wrote:




Hello !!

I have a little question about portage.

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.


Thank you for your response !

Bye


Hogren


Hogren,
	What I do may be of help, but then again, it may be all wrong and one 
day the gates of hell may open up and swallow mankind because of what I 
did, but hey, that's life.


	There is the FEATURES entry in make.conf, man make.conf. Within this 
are two options "keeptemp" and "keepwork". I enable them, then the 
consequences of which is that stuff is not cleaned up. Hence when I 
rerun the emerge, the "make" within sees the already existing files and 
skips them, in other words it does as "make" is expected to do.


	Please bear in mind if you have /var/tmp/portage set up to be a RAM 
disk of some sort, obviously if you turn your machine off, you'll look 
the intermediate files, but if you are hard disk based, they will be 
there when you restart the machine and so when you rerun emerge, the 
part up until when you killed the emerge originally will be skipped.


Hope this helps,
Andrew



Re: [gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread Marc Stürmer

Zitat von Hogren :


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 ?


Take a look at Tux on Ice, this should do the trick for you.



[gentoo-user] how to upgrade perl

2016-06-20 Thread lee

Hi,

how do you do an update despite perl blocking it?


emerge -a --update --newuse --deep --with-bdeps=y --keep-going @world
[...]
dev-lang/perl:0

  (dev-lang/perl-5.22.2:0/5.22::gentoo, ebuild scheduled for merge) pulled in by
=dev-lang/perl-5.22* required by 
(virtual/perl-IO-Zlib-1.100.0-r6:0/0::gentoo, installed)
^  ^

(and 8 more with the same problem)

  (dev-lang/perl-5.20.2:0/5.20::gentoo, installed) pulled in by
dev-lang/perl:0/5.20=[-build(-)] required by 
(dev-perl/Encode-Locale-1.30.0-r1:0/0::gentoo, installed)
    
  
=dev-lang/perl-5.20* required by 
(virtual/perl-Pod-Parser-1.620.0:0/0::gentoo, installed)
^  ^

(and 56 more with the same problems)
[...]


It seems that some pppl found perl 5.24 somewhere, which doesn't seem to
be available:


eix dev-lang/perl
[I] dev-lang/perl
 Available versions:  5.20.2(0/5.20) ~5.20.2-r1(0/5.20) ~5.22.0(0/5.22) 
~5.22.1(0/5.22) {berkdb debug doc gdbm ithreads}
 Installed versions:  5.20.2(01:11:43 AM 04/06/2015)(berkdb gdbm -debug 
-doc -ithreads)
 Homepage:http://www.perl.org/
 Description: Larry Wall's Practical Extraction and Report Language


An update is overdue.  What should I do?



Re: [gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread Mick
On Monday 20 Jun 2016 15:52:54 Ian Bloss wrote:
> Usually what I'll do is ctrl-z which pauses emerge, and then I'll run
> pm-suspend to put the machine to sleep. After I turn it back on again I'll
> issue fg and emerge will resume.
> 
> The --resume flag just attempts to continue a failed emerge list.

In addition, if you can use the same procedure for hibernate (to disk) if for 
some reason you need to completely remove power from your PC.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread Raffaele BELARDI
Hogren wrote:
> 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.

I had success in the past using ebuild instead of emerge. Check the man 
page, briefly emerge is equivalent to the following steps in sequence:

$ ebuild fetch
$ ebuild unpack
$ ebuild compile
$ ebuild install
$ ebuild qmerge

Running 'make' in the temp dir followed by the last two ebuild steps 
only (install and qmerge) should work.

raffaele


Re: [gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread Willie M
On 06/20/2016 07:58 AM, Hogren wrote:
>  
> 
>  
> Hello !!
> 
> I have a little question about portage.
> 
> 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.
> 
> 
> Thank you for your response !
> 
> Bye
> 
> 
> Hogren

This is pretty much what is run when you emerge something.

ebuild [.ebuild] fetch
ebuild [.ebuild] unpack
ebuild [.ebuild] compile
ebuild [.ebuild] install
ebuild [.ebuild] qmerge
ebuild [.ebuild] clean

to continue just choose what part the build was on when you quit it and
start there.

All I really just use is compile and merge. If it didn't get to compile
it isn't worth it. Just emerge the whole thing again.

-- 

Willie Matthews
matthews.willi...@gmail.com
(702) 659-9966



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] how to upgrade perl

2016-06-20 Thread Ian Bloss
Try perl-cleaner, read the man page to see all the options.

On Mon, Jun 20, 2016, 12:28 lee  wrote:

>
> Hi,
>
> how do you do an update despite perl blocking it?
>
>
> emerge -a --update --newuse --deep --with-bdeps=y --keep-going @world
> [...]
> dev-lang/perl:0
>
>   (dev-lang/perl-5.22.2:0/5.22::gentoo, ebuild scheduled for merge) pulled
> in by
> =dev-lang/perl-5.22* required by
> (virtual/perl-IO-Zlib-1.100.0-r6:0/0::gentoo, installed)
> ^  ^
> (and 8 more with the same problem)
>
>   (dev-lang/perl-5.20.2:0/5.20::gentoo, installed) pulled in by
> dev-lang/perl:0/5.20=[-build(-)] required by
> (dev-perl/Encode-Locale-1.30.0-r1:0/0::gentoo, installed)
>  
> =dev-lang/perl-5.20* required by
> (virtual/perl-Pod-Parser-1.620.0:0/0::gentoo, installed)
> ^  ^
> (and 56 more with the same problems)
> [...]
>
>
> It seems that some pppl found perl 5.24 somewhere, which doesn't seem to
> be available:
>
>
> eix dev-lang/perl
> [I] dev-lang/perl
>  Available versions:  5.20.2(0/5.20) ~5.20.2-r1(0/5.20)
> ~5.22.0(0/5.22) ~5.22.1(0/5.22) {berkdb debug doc gdbm ithreads}
>  Installed versions:  5.20.2(01:11:43 AM 04/06/2015)(berkdb gdbm
> -debug -doc -ithreads)
>  Homepage:http://www.perl.org/
>  Description: Larry Wall's Practical Extraction and Report
> Language
>
>
> An update is overdue.  What should I do?
>
>


[gentoo-user] how to upgrade perl

2016-06-20 Thread Anton Shumskyi
In my case perl-cleaner was quite useless=( but it has an update since
then, so maybe it will work now.

But if it will be blocking updates you can always do it in some brutal
way=)))
run emerge perl with "--nodeps" and after do the same for every package
that uses perl
you can find their files at /usr/lib64/perl5/vendor_perl/5.20.2/ and use
something like
portageq owners / /usr/lib64/perl5/vendor_perl/5.20.2/*
to find all packages that need reinstall, again if perl-cleaner won't work

simple emerge won't help, because it will try to compile some packages in
wrong order

and I have perl 5.24, using that repo
/etc/portage/repos.conf/gentoo.conf
[gentoo]
location = /usr/portage/gentoo
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo.git
auto-sync = true


On Monday, June 20, 2016, lee  wrote:

>
> Hi,
>
> how do you do an update despite perl blocking it?
>
>
> emerge -a --update --newuse --deep --with-bdeps=y --keep-going @world
> [...]
> dev-lang/perl:0
>
>   (dev-lang/perl-5.22.2:0/5.22::gentoo, ebuild scheduled for merge) pulled
> in by
> =dev-lang/perl-5.22* required by
> (virtual/perl-IO-Zlib-1.100.0-r6:0/0::gentoo, installed)
> ^  ^
> (and 8 more with the same problem)
>
>   (dev-lang/perl-5.20.2:0/5.20::gentoo, installed) pulled in by
> dev-lang/perl:0/5.20=[-build(-)] required by
> (dev-perl/Encode-Locale-1.30.0-r1:0/0::gentoo, installed)
>  
> =dev-lang/perl-5.20* required by
> (virtual/perl-Pod-Parser-1.620.0:0/0::gentoo, installed)
> ^  ^
> (and 56 more with the same problems)
> [...]
>
>
> It seems that some pppl found perl 5.24 somewhere, which doesn't seem to
> be available:
>
>
> eix dev-lang/perl
> [I] dev-lang/perl
>  Available versions:  5.20.2(0/5.20) ~5.20.2-r1(0/5.20)
> ~5.22.0(0/5.22) ~5.22.1(0/5.22) {berkdb debug doc gdbm ithreads}
>  Installed versions:  5.20.2(01:11:43 AM 04/06/2015)(berkdb gdbm
> -debug -doc -ithreads)
>  Homepage:http://www.perl.org/
>  Description: Larry Wall's Practical Extraction and Report
> Language
>
>
> An update is overdue.  What should I do?
>
>


Re: [gentoo-user] stop an emerge (compilation), halt the PC, boot and continue the emerge

2016-06-20 Thread J.
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







Re: [gentoo-user] how to upgrade perl

2016-06-20 Thread Alan McKinnon

On 20/06/2016 18:27, lee wrote:


Hi,

how do you do an update despite perl blocking it?


emerge -a --update --newuse --deep --with-bdeps=y --keep-going @world
[...]
dev-lang/perl:0

   (dev-lang/perl-5.22.2:0/5.22::gentoo, ebuild scheduled for merge) pulled in 
by
 =dev-lang/perl-5.22* required by 
(virtual/perl-IO-Zlib-1.100.0-r6:0/0::gentoo, installed)
 ^  ^
 (and 8 more with the same problem)

   (dev-lang/perl-5.20.2:0/5.20::gentoo, installed) pulled in by
 dev-lang/perl:0/5.20=[-build(-)] required by 
(dev-perl/Encode-Locale-1.30.0-r1:0/0::gentoo, installed)
  
 =dev-lang/perl-5.20* required by 
(virtual/perl-Pod-Parser-1.620.0:0/0::gentoo, installed)
 ^  ^
 (and 56 more with the same problems)
[...]


It seems that some pppl found perl 5.24 somewhere, which doesn't seem to
be available:


eix dev-lang/perl
[I] dev-lang/perl
  Available versions:  5.20.2(0/5.20) ~5.20.2-r1(0/5.20) ~5.22.0(0/5.22) 
~5.22.1(0/5.22) {berkdb debug doc gdbm ithreads}
  Installed versions:  5.20.2(01:11:43 AM 04/06/2015)(berkdb gdbm -debug 
-doc -ithreads)
  Homepage:http://www.perl.org/
  Description: Larry Wall's Practical Extraction and Report Language


An update is overdue.  What should I do?




Your tree is way behind, 5.24 has been out for ages (or maybe you just 
need eix-update to be run)


A perl update is a large operation and the devs need to put in a lot of 
work before everything is ready. This one was especially troublesome for 
me, it took a few days of --sync before it all smoothed out






Re: [gentoo-user] how to upgrade perl

2016-06-20 Thread Andreas K. Huettel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Am Montag, 20. Juni 2016, 18:27:36 schrieb lee:
> Hi,
> 
> how do you do an update despite perl blocking it?
> 
> 
> emerge -a --update --newuse --deep --with-bdeps=y --keep-going @world
> [...]

* Try adding the option --backtrack=1000

* DON'T listen to people telling you to use perl-cleaner. 
  perl-cleaner is for *after* the upgrade, *not* *before*

* Your tree is outdated. 
  Perl 5.24.0 is in ~arch, Perl 5.22.2 is about to be stabilized


- -- 

Andreas K. Huettel
Gentoo Linux developer 
dilfri...@gentoo.org
http://www.akhuettel.de/

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.1

iQJ8BAEBCgBmBQJXaGTVXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDMjhGQ0IwRjdCRUQxMzdBQUNCMDJEODlB
NDRDRjM3M0U3RUU5OUU0AAoJEKRM83Pn7pnk8IAP/3Im7t5c9S+sBi8xWEqzO4d8
nqEDL22Pc8oE+Es+M3RXkbcOUzGQslyAEweQy38nl4hF9OH4FaJgXxrmgzOduPXg
uZ6V/DtzJfWSfMCSmU4KWRskNFSG7P6etZy1bDiETNpL+1VXtjfA6JdrRI/GIBG+
J7rm0WVT50ZwCG9OxxB/2iZ4g3o7F96xO8RJfWibthsoDUtSXIw8kS0eiUliLx8u
k3fPwv7SYfxRh0BYDDbehSmdJGW1fEseMWxKA/cXgxpl2MuNPVFlXdu3ULVB5EUQ
w9GHL0vfV/PjZqSwUPJXVWM9a3b0Jtmbu2uGYG3KHz68wVNvHjGCQQDIuQu+7eO1
/RA8YQU2fx0wWDiVlzWyqsFV0ABtFIYCjKd3GxevV+nCf89KJhTe7LgxOVQmsWJd
YwUOTXBvo2HRsoRCqLVV4WquQoAjHaE7oFqoEIuTpIbkRnJYMV2vNH3yPK+zormk
Bjod5hRk8lMIBqkbB3xJfUUleYocBqwWdv5mhRAW0RYH3aa/nmL+WRn/UZ6osoDi
1a8tlpnLE7sWyePsFrFpj5okwhdmi06ujV3QH7tOZ5QOEWQ8wH1mKlU6mxftrJ1U
wqxWQHb2kYVo2mV9JE8uCT95PZAXu0oywmyn8JqSyvr1xBDNaLgqhDmLqQaQEJ7D
WKDIHx06j/7tAedZY/KE
=Ju+d
-END PGP SIGNATURE-