public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] FEATURES to cut the excess in portage
@ 2006-11-05 18:02 John Jawed
  2006-11-05 19:08 ` Christian Heim
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Jawed @ 2006-11-05 18:02 UTC (permalink / raw
  To: gentoo-dev

Two patches which allow a user to bypass files created with doman and
dodoc in FEATURES:

FEATURES="noman nodoc" emerge -av foo

http://jawed.name/dev/gentoo/nodoc.patch
http://jawed.name/dev/gentoo/noman.patch

Quick background/inspiration:

I found myself having to make an initrd suitable to do PXE boots for
our business and educational clusters. I was exploiting the ever so
useful ROOT option for portage to emerge packages into the initrd
build directory. However, because this was an initrd being sent over
the network, total size was important.

At larger sizes the loading the initrd would actually cause a kernel
panic on pivoting root...whether this was a result of a kernel config,
a set maximum size limit, or something else I'm not exactly sure of.

Looking at the output of du, I started first by removing the man and
documentation files. This brought the size of my final initrd down
significantly (~287MiB to ~242MiB).

Possible issues/bigger picture:

While I was making the changes to doman and prepman, I kept thinking
of how this really is part of a bigger picture, [I think] maybe the
whole minimal concept should be abstracted out of USE (for packages
that have it) and be part of FEATURES (for all packages).
In my case because I was using ROOT in portage to build out an initrd,
I didn't really need or want man or documentation for the packages I
was putting in.

At the end of the day, maybe there should be a specific mix of
FEATURES such as "nodoc noman" and/or a granular mix of "minimal"
which encompasses the previous+more. Obviously it's open for a lot of
discussion and the patches attached should/would probably not be a
final solution...the goal was that this would be a start.

We've been using this patch and it's worked out for us well. Your
mileage may vary, if it does, please say something! :-)

Thanks,
John

PS Sorry to the devs I was working with (you know who you are :-) for
my inactivity lately...moving my life 1600 miles on a weeks' notice
hasn't exactly been the easiest thing, definitely hasn't helped for
the free time column.
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] FEATURES to cut the excess in portage
  2006-11-05 18:02 [gentoo-dev] FEATURES to cut the excess in portage John Jawed
@ 2006-11-05 19:08 ` Christian Heim
  2006-11-05 19:15   ` Tobias Scherbaum
  2006-11-05 21:41 ` [gentoo-dev] " Brian Jackson
  2006-11-06  6:37 ` Donnie Berkholz
  2 siblings, 1 reply; 9+ messages in thread
From: Christian Heim @ 2006-11-05 19:08 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

On Sunday, 05. November. 2006 19:02, John Jawed wrote:
> Two patches which allow a user to bypass files created with doman and
> dodoc in FEATURES:
>
> FEATURES="noman nodoc" emerge -av foo
>
> http://jawed.name/dev/gentoo/nodoc.patch
> http://jawed.name/dev/gentoo/noman.patch

Err, isn't current portage already having FEATURES="noman" and "nodoc" ? At 
least last time I used it, it was there ...

-- 
Christian Heim <phreak at gentoo.org>
GPG key ID: 9A9F68E6
Fingerprint: AEC4 87B8 32B8 4922 B3A9 DF79 CAE3 556F 9A9F 68E6

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] FEATURES to cut the excess in portage
  2006-11-05 19:08 ` Christian Heim
@ 2006-11-05 19:15   ` Tobias Scherbaum
  2006-11-05 21:33     ` John Jawed
  2006-11-22 14:51     ` Enrico Weigelt
  0 siblings, 2 replies; 9+ messages in thread
From: Tobias Scherbaum @ 2006-11-05 19:15 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

Am Sonntag, den 05.11.2006, 20:08 +0100 schrieb Christian Heim:
> On Sunday, 05. November. 2006 19:02, John Jawed wrote:
> > Two patches which allow a user to bypass files created with doman and
> > dodoc in FEATURES:
> >
> > FEATURES="noman nodoc" emerge -av foo
> >
> > http://jawed.name/dev/gentoo/nodoc.patch
> > http://jawed.name/dev/gentoo/noman.patch
> 
> Err, isn't current portage already having FEATURES="noman" and "nodoc" ? At 
> least last time I used it, it was there ...

Don't forget about "noinfo" ;)

  Tobias

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] FEATURES to cut the excess in portage
  2006-11-05 19:15   ` Tobias Scherbaum
@ 2006-11-05 21:33     ` John Jawed
  2006-11-22 14:51     ` Enrico Weigelt
  1 sibling, 0 replies; 9+ messages in thread
From: John Jawed @ 2006-11-05 21:33 UTC (permalink / raw
  To: gentoo-dev

Ah yep, missed it. Nevermind my chatter :-)

On 11/5/06, Tobias Scherbaum <dertobi123@gentoo.org> wrote:
> Am Sonntag, den 05.11.2006, 20:08 +0100 schrieb Christian Heim:
> > On Sunday, 05. November. 2006 19:02, John Jawed wrote:
> > > Two patches which allow a user to bypass files created with doman and
> > > dodoc in FEATURES:
> > >
> > > FEATURES="noman nodoc" emerge -av foo
> > >
> > > http://jawed.name/dev/gentoo/nodoc.patch
> > > http://jawed.name/dev/gentoo/noman.patch
> >
> > Err, isn't current portage already having FEATURES="noman" and "nodoc" ? At
> > least last time I used it, it was there ...
>
> Don't forget about "noinfo" ;)
>
>   Tobias
>
>
>
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] FEATURES to cut the excess in portage
  2006-11-05 18:02 [gentoo-dev] FEATURES to cut the excess in portage John Jawed
  2006-11-05 19:08 ` Christian Heim
@ 2006-11-05 21:41 ` Brian Jackson
  2006-11-06  6:37 ` Donnie Berkholz
  2 siblings, 0 replies; 9+ messages in thread
From: Brian Jackson @ 2006-11-05 21:41 UTC (permalink / raw
  To: gentoo-dev

Look into INSTALL_MASK.

--Brian Jackson


On Nov 5, 2006, at 12:02 PM, John Jawed wrote:

> Two patches which allow a user to bypass files created with doman and
> dodoc in FEATURES:
>
> FEATURES="noman nodoc" emerge -av foo
>
> http://jawed.name/dev/gentoo/nodoc.patch
> http://jawed.name/dev/gentoo/noman.patch
>
> Quick background/inspiration:
>
> I found myself having to make an initrd suitable to do PXE boots for
> our business and educational clusters. I was exploiting the ever so
> useful ROOT option for portage to emerge packages into the initrd
> build directory. However, because this was an initrd being sent over
> the network, total size was important.
>
> At larger sizes the loading the initrd would actually cause a kernel
> panic on pivoting root...whether this was a result of a kernel config,
> a set maximum size limit, or something else I'm not exactly sure of.
>
> Looking at the output of du, I started first by removing the man and
> documentation files. This brought the size of my final initrd down
> significantly (~287MiB to ~242MiB).
>
> Possible issues/bigger picture:
>
> While I was making the changes to doman and prepman, I kept thinking
> of how this really is part of a bigger picture, [I think] maybe the
> whole minimal concept should be abstracted out of USE (for packages
> that have it) and be part of FEATURES (for all packages).
> In my case because I was using ROOT in portage to build out an initrd,
> I didn't really need or want man or documentation for the packages I
> was putting in.
>
> At the end of the day, maybe there should be a specific mix of
> FEATURES such as "nodoc noman" and/or a granular mix of "minimal"
> which encompasses the previous+more. Obviously it's open for a lot of
> discussion and the patches attached should/would probably not be a
> final solution...the goal was that this would be a start.
>
> We've been using this patch and it's worked out for us well. Your
> mileage may vary, if it does, please say something! :-)
>
> Thanks,
> John
>
> PS Sorry to the devs I was working with (you know who you are :-) for
> my inactivity lately...moving my life 1600 miles on a weeks' notice
> hasn't exactly been the easiest thing, definitely hasn't helped for
> the free time column.
> -- 
> gentoo-dev@gentoo.org mailing list
>

-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] FEATURES to cut the excess in portage
  2006-11-05 18:02 [gentoo-dev] FEATURES to cut the excess in portage John Jawed
  2006-11-05 19:08 ` Christian Heim
  2006-11-05 21:41 ` [gentoo-dev] " Brian Jackson
@ 2006-11-06  6:37 ` Donnie Berkholz
  2 siblings, 0 replies; 9+ messages in thread
From: Donnie Berkholz @ 2006-11-06  6:37 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

John Jawed wrote:
> At larger sizes the loading the initrd would actually cause a kernel
> panic on pivoting root...whether this was a result of a kernel config,
> a set maximum size limit, or something else I'm not exactly sure of.

Yes, there's a hardcoded limit in the kernel config that you can change.
With the sizes you're mentioning, however, I'd be prone to just using a
NFS root so files go across the network on-demand instead of shipping
whole initrd's all over the place unconditionally.

A more general discussion of netbooting ideas and implementations would
fit right in on the gentoo-cluster list, which you should definitely
sign up for if you aren't there yet. I'd like to hear more details on
your setup(s).

Thanks,
Donnie


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] FEATURES to cut the excess in portage
  2006-11-05 19:15   ` Tobias Scherbaum
  2006-11-05 21:33     ` John Jawed
@ 2006-11-22 14:51     ` Enrico Weigelt
  2006-11-22 14:59       ` Ciaran McCreesh
  2006-11-27  4:30       ` [gentoo-dev] " Ryan Hill
  1 sibling, 2 replies; 9+ messages in thread
From: Enrico Weigelt @ 2006-11-22 14:51 UTC (permalink / raw
  To: gentoo-dev

* Tobias Scherbaum <dertobi123@gentoo.org> schrieb:

Hi folks,

> > Err, isn't current portage already having FEATURES="noman" and "nodoc" ? At 
> > least last time I used it, it was there ...
> 
> Don't forget about "noinfo" ;)

Can those flags be used in dependencies ? 
Let's say, some package needs certain tools (ie. TeX) for building
its documentation, it would be stupid to build the whole docs
and so require these tools, if docs are not wanted at all.
 

cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] FEATURES to cut the excess in portage
  2006-11-22 14:51     ` Enrico Weigelt
@ 2006-11-22 14:59       ` Ciaran McCreesh
  2006-11-27  4:30       ` [gentoo-dev] " Ryan Hill
  1 sibling, 0 replies; 9+ messages in thread
From: Ciaran McCreesh @ 2006-11-22 14:59 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

On Wed, 22 Nov 2006 15:51:15 +0100 Enrico Weigelt <weigelt@metux.de>
wrote:
| * Tobias Scherbaum <dertobi123@gentoo.org> schrieb:
| > > Err, isn't current portage already having FEATURES="noman" and
| > > "nodoc" ? At least last time I used it, it was there ...
| > 
| > Don't forget about "noinfo" ;)
| 
| Can those flags be used in dependencies ? 
| Let's say, some package needs certain tools (ie. TeX) for building
| its documentation, it would be stupid to build the whole docs
| and so require these tools, if docs are not wanted at all.

Bug 82513.

-- 
Ciaran McCreesh
Mail                : ciaranm at ciaranm.org
Web                 : http://ciaranm.org/
as-needed is broken : http://ciaranm.org/show_post.pl?post_id=13


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-dev] Re: FEATURES to cut the excess in portage
  2006-11-22 14:51     ` Enrico Weigelt
  2006-11-22 14:59       ` Ciaran McCreesh
@ 2006-11-27  4:30       ` Ryan Hill
  1 sibling, 0 replies; 9+ messages in thread
From: Ryan Hill @ 2006-11-27  4:30 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

Enrico Weigelt <weigelt@metux.de> wrote:

> Can those flags be used in dependencies ?

Not as far as I know.  They're FEATURES, not flags, and are global.

> Let's say, some package needs certain tools (ie. TeX) for building
> its documentation, it would be stupid to build the whole docs
> and so require these tools, if docs are not wanted at all.

That's what the doc USE flag is for. ;)

-- 
                                        by design, by neglect
dirtyepic gentoo org            for a fact or just for effect
9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-11-27  4:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-05 18:02 [gentoo-dev] FEATURES to cut the excess in portage John Jawed
2006-11-05 19:08 ` Christian Heim
2006-11-05 19:15   ` Tobias Scherbaum
2006-11-05 21:33     ` John Jawed
2006-11-22 14:51     ` Enrico Weigelt
2006-11-22 14:59       ` Ciaran McCreesh
2006-11-27  4:30       ` [gentoo-dev] " Ryan Hill
2006-11-05 21:41 ` [gentoo-dev] " Brian Jackson
2006-11-06  6:37 ` Donnie Berkholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox