Re: [gentoo-user] emerge completly a package but dont install it?

2018-08-09 Thread Rich Freeman
On Thu, Aug 9, 2018 at 1:28 PM  wrote:
>
> On 08/09 09:48, Mateusz Lenik wrote:
> > Turns out emerge has this nice flag (excerpt from emerge(1) manpage):
> >
> > --buildpkgonly, -B
> >   Creates binary packages for all ebuilds processed without
> > actually merging the packages.  This comes with the caveat that all
> > build-time dependencies must already be emerged on the system.
> >
>
> thanks a lot for the info...I hadn't thought it would be THAT easy! :)

I stole this script from somebody else on one of the lists.  Stick it
in your crontab after a sync and you'll find your daily updates go a
lot faster:

https://github.com/rich0/rich0-gentoo-scripts/blob/master/buildupdates

Obviously set the flags at the start of the script to suit your taste.

It basically uses this flag to build binary packages of anything it
can (can only do one level of deps obviously).  When you look at your
packages to update, and see chromium in there, and it takes 30 seconds
to install because it was built overnight, you'll thank whoever wrote
it...

-- 
Rich



Re: [gentoo-user] emerge completly a package but dont install it?

2018-08-09 Thread tuxic
On 08/09 09:48, Mateusz Lenik wrote:
> Turns out emerge has this nice flag (excerpt from emerge(1) manpage):
> 
> --buildpkgonly, -B
>   Creates binary packages for all ebuilds processed without
> actually merging the packages.  This comes with the caveat that all
> build-time dependencies must already be emerged on the system.
> 
> Best,
> mlen
> 
> On Thu, Aug 9, 2018 at 9:29 AM Andreas Fink  wrote:
> 
> > On Wed, 8 Aug 2018 19:12:37 +0200
> > tu...@posteo.de wrote:
> >
> > > Hi,
> > >
> > > is it possible to go through process of installing a not-installed
> > > package from source to executable ... without actually install the
> > > package - so the system as such is not touched?
> > >
> > > Cheers
> > > Meino
> > >
> > >
> > >
> >
> > You can use ebuild for that. The commands to build without merging
> > would be
> > ebuild /usr/portage/my-package/my-ebuild-file.ebuild install
> >
> > This will download, unpack, build, and install the package into your
> > temporary portage build directory (usually /var/tmp/portage). It will
> > not resolve any dependencies though, this has to be done beforehand.
> >
> > The temporary install directory is called "image" in the temporary
> > directory.
> >
> > You can also go through the whole process step by step,
> > ebuild /usr/portage/my-package/my-ebuild-file.ebuild unpack
> > ebuild /usr/portage/my-package/my-ebuild-file.ebuild compile
> > ebuild /usr/portage/my-package/my-ebuild-file.ebuild install
> > ebuild /usr/portage/my-package/my-ebuild-file.ebuild qmerge
> > ebuild /usr/portage/my-package/my-ebuild-file.ebuild clean
> >
> > the qmerge command will install it into your system, so this is the
> > step, that you do not want to execute ;)
> >
> > Cheers
> > Andreas
> >
> >

Hi,

thanks a lot for the info...I hadn't thought it would be THAT easy! :)

Cheers!
Meino




Re: [gentoo-user] emerge completly a package but dont install it?

2018-08-09 Thread Mateusz Lenik
Turns out emerge has this nice flag (excerpt from emerge(1) manpage):

--buildpkgonly, -B
  Creates binary packages for all ebuilds processed without
actually merging the packages.  This comes with the caveat that all
build-time dependencies must already be emerged on the system.

Best,
mlen

On Thu, Aug 9, 2018 at 9:29 AM Andreas Fink  wrote:

> On Wed, 8 Aug 2018 19:12:37 +0200
> tu...@posteo.de wrote:
>
> > Hi,
> >
> > is it possible to go through process of installing a not-installed
> > package from source to executable ... without actually install the
> > package - so the system as such is not touched?
> >
> > Cheers
> > Meino
> >
> >
> >
>
> You can use ebuild for that. The commands to build without merging
> would be
> ebuild /usr/portage/my-package/my-ebuild-file.ebuild install
>
> This will download, unpack, build, and install the package into your
> temporary portage build directory (usually /var/tmp/portage). It will
> not resolve any dependencies though, this has to be done beforehand.
>
> The temporary install directory is called "image" in the temporary
> directory.
>
> You can also go through the whole process step by step,
> ebuild /usr/portage/my-package/my-ebuild-file.ebuild unpack
> ebuild /usr/portage/my-package/my-ebuild-file.ebuild compile
> ebuild /usr/portage/my-package/my-ebuild-file.ebuild install
> ebuild /usr/portage/my-package/my-ebuild-file.ebuild qmerge
> ebuild /usr/portage/my-package/my-ebuild-file.ebuild clean
>
> the qmerge command will install it into your system, so this is the
> step, that you do not want to execute ;)
>
> Cheers
> Andreas
>
>


Re: [gentoo-user] emerge completly a package but dont install it?

2018-08-09 Thread Andreas Fink
On Wed, 8 Aug 2018 19:12:37 +0200
tu...@posteo.de wrote:

> Hi,
> 
> is it possible to go through process of installing a not-installed
> package from source to executable ... without actually install the
> package - so the system as such is not touched?
> 
> Cheers
> Meino
> 
> 
> 

You can use ebuild for that. The commands to build without merging
would be
ebuild /usr/portage/my-package/my-ebuild-file.ebuild install

This will download, unpack, build, and install the package into your
temporary portage build directory (usually /var/tmp/portage). It will
not resolve any dependencies though, this has to be done beforehand.

The temporary install directory is called "image" in the temporary
directory.

You can also go through the whole process step by step,
ebuild /usr/portage/my-package/my-ebuild-file.ebuild unpack
ebuild /usr/portage/my-package/my-ebuild-file.ebuild compile
ebuild /usr/portage/my-package/my-ebuild-file.ebuild install
ebuild /usr/portage/my-package/my-ebuild-file.ebuild qmerge
ebuild /usr/portage/my-package/my-ebuild-file.ebuild clean

the qmerge command will install it into your system, so this is the
step, that you do not want to execute ;)

Cheers
Andreas