From: Ramon Fischer <Ramon_Fischer@hotmail.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Compile large packages as last package
Date: Wed, 8 Sep 2021 14:12:15 +0200 [thread overview]
Message-ID: <AM6PR10MB2440392108A493BED125EF26EFD49@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <sfbcvv$5ji$1@ciao.gmane.io>
[-- Attachment #1.1: Type: text/plain, Size: 2212 bytes --]
Thank you for your ideas!
I was actually hoping for a neat hack with "/etc/portage/env/" and
"/etc/portage/package.env/", where you can set environment variables.
I will try out the following solution:
$ < "/etc/portage/package.env/no_tmpfs.conf
# custom - 20181121 - rfischer: list packages, which are too big for
tmpfs
#app-emulation/qemu-kv no_tmpfs.conf
#app-office/libreoffice no_tmpfs.conf
#dev-java/icedtea no_tmpfs.conf
#dev-lang/ghc no_tmpfs.conf
#dev-lang/rust no_tmpfs.conf
#mail-client/thunderbird no_tmpfs.conf
#sci-libs/tensorflow no_tmpfs.conf
#sys-devel/gcc no_tmpfs.conf
#www-client/firefox no_tmpfs.conf
#www-client/ungoogled-chromium no_tmpfs.conf #throttle_make_emerge.conf
$ < "${HOME}/bin/update.sh"
[...]
large_package_list=$(/bin/grep --extended-regexp --only-matching
"[a-z]+-[a-z]+\/[-0-9a-zA-Z]+" "/etc/portage/package.env/no_tmpfs.conf")
[...]
/usr/bin/emerge --ask --update --deep --newuse --tree --verbose
--exclude="${large_package_list//$'\n'/ }" @world
/usr/bin/emerge --ask --update --deep --newuse --tree --verbose @world
-Ramon
On 15/08/2021 17:48, Nikos Chantziaras wrote:
> On 14/08/2021 22:20, Ramon Fischer wrote:
>> Is there any way to tell "portage", that packages like "qtwebengine",
>> "(ungoogled-)chromium", "firefox" and so on are always compiled as
>> last package?
>
> The simplest way is to exclude those packages in the first update, and
> then allow them in the second:
>
> emerge -uDU @world --exclude "qtwebengine firefox chromium" && emerge
> -uDU @world
>
> The dependency tracker of portage will of course also exclude packages
> that depend on the excluded packages, unless they themselves have
> updates pending. In that case, they *might* get built twice; once
> against the current version of the excluded packages, and then perhaps
> again on the second run, if there's rebuild triggers involved.
>
> Most of the time though, you won't run into cases of redundant
> rebuilds. Rebuild triggers are not very common.
>
>
--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2021-09-08 12:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-14 19:20 [gentoo-user] Compile large packages as last package Ramon Fischer
2021-08-14 21:37 ` Neil Bothwick
2021-08-15 15:48 ` [gentoo-user] " Nikos Chantziaras
2021-09-08 12:12 ` Ramon Fischer [this message]
2021-09-08 15:24 ` David M. Fellows
2021-09-08 19:57 ` [gentoo-user] Re: Compile large packages as last package [SOLVED] Ramon Fischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM6PR10MB2440392108A493BED125EF26EFD49@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM \
--to=ramon_fischer@hotmail.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox