public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jeroen Roovers <jer@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] rfc: logrotate and xinetd use flags
Date: Mon, 25 Apr 2011 04:23:04 +0200	[thread overview]
Message-ID: <20110425042304.56f4d6ce@epia.jer-c2.orkz.net> (raw)
In-Reply-To: <20110424215823.GA24437@linux1>

On Sun, 24 Apr 2011 16:58:23 -0500
William Hubbs <williamh@gentoo.org> wrote:

> I feel that the current approach (using INSTALL_MASK) to control
> whether these configuration files are installed or not is not well
> documented. We tell people about it on the mailing lists, but I do
> not know of a place where it is documented.

INSTALL_MASK is documented in make.conf(5).

> Also, it seems to be an all or nothing arrangement. If I do not want
> logrotate support, I have to set the INSTALL_MASK then if I decide
> later I want it, I have to unset the INSTALL_MASK and run "emerge -e
> world" to get the files installed.

That sounds like a design decision about your own special Gentoo based
distro - it is the same with most USE flags and with other build time
settings like USE flags.

Usually when you decide to use INSTALL_MASK, it's because you want an
as small as possible system image - you're probably developing an
embedded system with storage constraints. If you're really clever about
that and want to delay the INSTALL_MASK decision, you might as well
`mount --bind' some directory on the development system
to /etc/logrotate.d inside the chroot before you start `emerge world'.

Another option is to plan your distribution even better and set
FEATURES=buildpkg. Then, you can unset INSTALL_MASK in make.conf or on
the command line, and emerge the .tbz2 - no rebuilding needed. Maybe
*this* could be better documented, although it does belong in the tips
and tricks department.

(And if you really want to prevent portage from even putting certain
files in the .tbz2, then use PKG_INSTALL_MASK instead.)

> If we use a "logrotate" or "xinetd" use flag, it gives the users
> better control of which packages have this support, and the --newuse
> option in portage can be used to rebuild only the affected packages.

`ls /etc/logrotate.d' should give a clue in the current situation. :)

> I guess the argument against the use flag was that packages were being
> rebuilt just to install configuration files. I can see how that could
> be a pita for big packages. Did anyone ever bring up using pkg_config
> to un/install these files based on the use flags?

It isn't just that you have to rebuild a large package, perhaps
consuming a lot of time or other resources unrelated to actual storage,
but that a package with a large install image (many megabytes) does not
benefit from a USE flag that controls installing an extra kilobyte
(plus a couple more on a typical filesystem).


     jer



  reply	other threads:[~2011-04-25  2:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-24 21:58 [gentoo-dev] rfc: logrotate and xinetd use flags William Hubbs
2011-04-25  2:23 ` Jeroen Roovers [this message]
2011-04-25  5:09 ` [gentoo-dev] " Duncan
2011-04-25  7:13 ` [gentoo-dev] " Alec Warner
2011-04-25  7:44 ` Michał Górny
2011-04-25 20:57   ` Jeroen Roovers
2011-04-25 21:03     ` Michał Górny
2011-04-25 15:39 ` Michał Górny
2011-04-25 15:39   ` Ciaran McCreesh

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=20110425042304.56f4d6ce@epia.jer-c2.orkz.net \
    --to=jer@gentoo.org \
    --cc=gentoo-dev@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