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

2006-11-22 Thread Enrico Weigelt
* Tobias Scherbaum [EMAIL PROTECTED] 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



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

2006-11-22 Thread Ciaran McCreesh
On Wed, 22 Nov 2006 15:51:15 +0100 Enrico Weigelt [EMAIL PROTECTED]
wrote:
| * Tobias Scherbaum [EMAIL PROTECTED] 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



signature.asc
Description: PGP signature


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

2006-11-05 Thread John Jawed

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



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

2006-11-05 Thread 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 ...

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


pgp6nLgeb4qpl.pgp
Description: PGP signature


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

2006-11-05 Thread Tobias Scherbaum
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


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


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

2006-11-05 Thread John Jawed

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

On 11/5/06, Tobias Scherbaum [EMAIL PROTECTED] 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



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

2006-11-05 Thread Brian Jackson

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



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

2006-11-05 Thread Donnie Berkholz
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



signature.asc
Description: OpenPGP digital signature