Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-dev] FEATURES to cut the excess in portage

 
   Soft32 Home -> Linux -> Development RSS
Next:  [gentoo-dev] New doc developer: Naoaki Shindo  
Author Message
John Jawed

External


Since: Jul 19, 2006
Posts: 8



(Msg. 1) Posted: Sun Nov 05, 2006 1:10 pm
Post subject: [gentoo-dev] FEATURES to cut the excess in portage
Archived from groups: linux>gentoo>dev (more info?)

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! Smile

Thanks,
John

PS Sorry to the devs I was working with (you know who you are Smile 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.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
John Jawed

External


Since: Jul 19, 2006
Posts: 8



(Msg. 2) Posted: Sun Nov 05, 2006 4:40 pm
Post subject: Re: [gentoo-dev] FEATURES to cut the excess in portage [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ah yep, missed it. Nevermind my chatter Smile

On 11/5/06, Tobias Scherbaum <dertobi123.TakeThisOut@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" Wink
>
> Tobias
>
>
>
--
gentoo-dev.TakeThisOut@gentoo.org mailing list
Back to top
Login to vote
Brian Jackson

External


Since: Nov 20, 2003
Posts: 34



(Msg. 3) Posted: Sun Nov 05, 2006 4:50 pm
Post subject: Re: [gentoo-dev] FEATURES to cut the excess in portage [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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! Smile
>
> Thanks,
> John
>
> PS Sorry to the devs I was working with (you know who you are Smile 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.DeleteThis@gentoo.org mailing list
>

--
gentoo-dev.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
Enrico Weigelt

External


Since: May 30, 2006
Posts: 195



(Msg. 4) Posted: Wed Nov 22, 2006 10:00 am
Post subject: Re: [gentoo-dev] FEATURES to cut the excess in portage [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

* Tobias Scherbaum <dertobi123 RemoveThis @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" Wink

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 RemoveThis @gentoo.org mailing list
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-dev] FEATURES=test and the internet - I've been running my latest install with features=test, makes it simple to test packages requiring stablizization and..

[gentoo-dev] portage-ng concurse entry Was: Updated Portag.. - Sorry for the crosspost, but it looks like this topic is approximately equivalently active on either lis, and I did no...

[gentoo-dev] New portage tool: app-portage/metagen - Hi, I wrote a utility to create metadata.xml files in your current directory. It handles the tags herd, email, name,..

[gentoo-dev] Using some of the emerge features in external.. - Hi everyone, Firstly I want to say hello since this is the first e-mail I send to this mailing list. The second an...

[gentoo-dev] repoman, Manifest and FEATURES="strict" - Hi all! This is a short reminder to urge you to use repoman to commit *all* changes you make to packages in our tree....

[gentoo-dev] /usr/portage --> /var/portage - Hi all! I just wanted to ask: can we expect, in future versions of a Gentoo Linux, a move of /usr/portage to..
       Soft32 Home -> Linux -> Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]