View previous topic :: View next topic |
Author |
Message |
Kasumi_Ninja Veteran
Joined: 18 Feb 2006 Posts: 1825 Location: The Netherlands
|
Posted: Sat Sep 04, 2010 8:27 pm Post subject: Script to build binary updates weekly? |
|
|
I'm looking for a script to build binary packages weeky. Currently I use a simple command:
Code: | emerge -uvBDN @world && echo "Binary packages are ready to install" | mail -s "emerge info" @mymail |
The problem is that the -B option requires all build-time depencies re emerged on the system, which isn't always the case. Who knows a good script to build update binaries without installing them? _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5910
|
Posted: Sat Sep 04, 2010 8:44 pm Post subject: Re: Script to build binary updates weekly? |
|
|
Kasumi_Ninja wrote: | I'm looking for a script to build binary packages weeky. Currently I use a simple command:
Code: | emerge -uvBDN @world && echo "Binary packages are ready to install" | mail -s "emerge info" @mymail |
The problem is that the -B option requires all build-time depencies re emerged on the system, which isn't always the case. Who knows a good script to build update binaries without installing them? |
what about setting Code: | FEATURES="buildpkg" | in /etc/make.conf?
this will create a bz2 of every software you emerge that holds the bins. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
Kasumi_Ninja Veteran
Joined: 18 Feb 2006 Posts: 1825 Location: The Netherlands
|
Posted: Mon Sep 13, 2010 5:32 pm Post subject: |
|
|
Thx for the help. I have buildpkg enabled, I'm looking for a script to build these binaries without installing them. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Sep 13, 2010 6:37 pm Post subject: |
|
|
Not possible, directly, anyway. Build-time dependencies are needed in order to complete the build of the package. If your question is, how do I build these packages without building their build time dependencies, well then, you can't.
However, if you just want to build the binary packages but don't care if the build time dependencies get built--but you don't want binary packages for the build time dependencies, try emerging with the following command line options. First, to build the build-time dependencies: Code: | emerge --onlydeps -uDNv @world
emerge --nodeps -uDNvB @world | - John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
dwbowyer Apprentice
Joined: 18 Apr 2008 Posts: 155
|
Posted: Tue Nov 09, 2010 10:36 pm Post subject: |
|
|
emerge --buildpkgonly
But you can't have unsatisfied dependencies (that are not installed on the system. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9548 Location: beyond the rim
|
Posted: Wed Nov 10, 2010 12:57 am Post subject: |
|
|
If you absolutely don't want the build dependencies merged on your host system use a chroot for building the packages together with the --onlydeps/--nodeps trick.
By definition it is necessary to merge the build dependencies on the build system, just like it's necessary to merge the runtime deps on the target system. |
|
Back to top |
|
|
|