Hi Dave,

Dave Miner wrote:
> jan damborsky wrote:
>> Hi Mary,
>>
>>
>> mary ding wrote:
>>> Dave and Jan:
>>>
>>>
>>> I helped Jan to test out the fix with the reduced AI image and it 
>>> works.
>>>
>>> 1. However, I do notice that there are man pages in the microroot 
>>> and they do
>>> occupy
>>>  some spaces.  The  man command is not even available in the 
>>> microroot, can these man packages be removed in the AI microroot:
>>
>> Based on later Karen's comment, I assume you mean
>> that man pages are present in AI image/environment -
>> I have  verified that microroot itself doesn't contain
>> directories you mention below.
>>
>> I have taken a closer look at what is present in AI image
>> with respect to man pages and it seems that we can't
>> get easily get rid of them at this moment.
>>
>> The reason is that they are spread across packages
>> which deliver pieces we need in AI image.
>>
>> The good example might be SUNWopenssl package.
>> We utilize only couple of libraries from it but
>> it also delivers bunch of man pages and header
>> files and the final size of that package is more
>> than 10MB.
>>
>> I think that generic solution for this problem would
>> be if we could apply filtering when installing
>> IPS package into DC proto area - taking advantage
>> of so called 'facets' would be the solution - please
>> take a look at following thread, it gives the good
>> introduction about facets/variants and how we could
>> take advantage of them once they are implemented:
>>
>> http://mail.opensolaris.org/pipermail/pkg-discuss/2008-December/009092.html 
>>
>>
>> That said, I agree with you that there still might
>> be candidates in AI image which are not needed
>> and can be removed as a whole.
>>
>
> Right, that would be the way to address this, if we determine it's 
> desirable.  I'm not entirely convinced we don't want at least some of 
> the man pages on the image, though.  When you're struggling to debug a 
> problem, sometimes you really need a man page to advise you on syntax 
> of tools or options that you don't use often.

I agree that having possibility to take a look at man pages
is essential, but I think if it is necessary to have man
pages available in AI environment.

The assumption might be that when people play with AI, they
already have other and also maybe more convenient possibilities
where/how they could take a look and inspect documentation
(e.g. on AI server or different machine installed with Solaris).

That said, I am making that assumption mostly based on my
own experiences, so there might be scenarios, where this is not
correct.

>
>> I have created sorted list of packages we have
>> in AI Distro Constructor manifest after Dave's
>> reduction (list is attached).
>>
>> After taking a quick look, I can think at least
>> following packages could be removed (but I have to
>> verify):
>>
>> 10.66 MB SUNWsfinf GNU and open source info pages
>
> Possibly removable, though keep comments above in mind.

Please see my comment above.

>
>> 6.33 MB SUNWgccruntime GCC Runtime libraries
>
> Probably shouldn't be listed directly, anyway; might still end up 
> pulled in as a dependency.

You are right - I have taken a look at AI proto area and SUNWcs
requires SUNWgccruntime, so it will be pulled into AI image.

>
>> 4.54 MB SUNWgnu-coreutils coreutils - GNU core utilities
>
> This has a number of utilities which I think are likely to be 
> desirable to have for debug purposes.

I have looked at the content of that package and it seems that
it duplicates functionality of other tools already delivered by
SUNWcs, SUNWesu(Extended System Utilities) - those we already
have in AI image. Some stuff is unique to gnu-coreutils,
but I am not sure, what might be really needed:

usr/bin/[
usr/bin/base64
usr/bin/dircolors
usr/bin/ginstall
usr/bin/pinky
usr/bin/printenv
usr/bin/ptx
usr/bin/readlink
usr/bin/seq
usr/bin/sha1sum
usr/bin/sha224sum
usr/bin/sha256sum
usr/bin/sha384sum
usr/bin/sha512sum
usr/bin/shred
usr/bin/shuf
usr/bin/whoami
usr/gnu/bin/tsort
usr/gnu/bin/whoami


>
>> 1.85 MB SUNWpkgcmds SVr4 packaging commands
>
> Needed for adding drivers distributed in SVR4 format, at least.

This is a good point, I will leave it there.

>
>> 1.59 MB SUNWgnutls GNU transport layer security library
>
> Probably shouldn't be listed directly, but may be a dependency of 
> other packages.

I have verified this one is not pulled into AI image by other package.

>
>> 1.36 MB SUNWpcre Perl-Compatible Regular Expressions
>
> I'd guess it's removable.
>
>> 794.47 kB SUNWpython-cherrypy CherryPy
>>
>
> cherrypy is a dependency of SUNWipkg right now.

You are right. But I think we don't need that functionality
in AI image, if it is utilized only by IPS server side. I would
remove it from the list - in case SUNWipkg allows in future
installation only of client part.

Thank you very much for your comments !
Jan


>
>> Also, I plan to take a look at populated DC AI proto area,
>> if there are some interesting packages installed which are
>> not listed in AI manifest, but are pulled into the image
>> in order to fulfill dependencies.
>>
>>>
>>> root at opensolaris:/usr# more /tmp/man
>>> ./gnu/share/man
>>> ./has/man
>>> ./sfw/man
>>> ./sfw/share/man
>>> ./share/man
>>> root at opensolaris:/usr# du -skh /usr/gnu/share/man
>>> 235K    /usr/gnu/share/man
>>> root at opensolaris:/usr# du -skh /usr/has/man
>>> 108K    /usr/has/man
>>> root at opensolaris:/usr# du -skh /usr/sfw/man
>>> 512     /usr/sfw/man
>>> root at opensolaris:/usr# du -skh /usr/sfw/share/man
>>> 2.8M    /usr/sfw/share/man
>>> root at opensolaris:/usr# du -skh /usr/share/man
>>> 6.1M    /usr/share/man
>>> root at opensolaris:/usr#
>>>
>>>
>>>
>>> 2.  For Live CD, the man pages also occupy some space and should 
>>> they be removed also ???  In fact, just /usr/share/man alone had 
>>> already occupy 56 MB and this will definitely help the low memory 
>>> 512 MB
>>> system doing livecd install.
>>
>>
>> As far as LiveCD case is concerned, I think man pages
>> are mandatory there, since LiveCD represent working
>> Solaris environment and we need to provide potential
>> new user with as much help/docummentation/man pages
>> as possible in order to simplify the Solaris adoption.
>>
>
> Mary, keep in mind that nothing on /usr occupies any memory in a live 
> CD boot; /usr is loopback mounted from the media.  We may consider 
> reducing the man pages included on the CD by removing the 
> developer-oriented content (perhaps including only sections 1, 4 and 
> 5), but that would be only for media space reasons (and they compress 
> well, so actual usage is about 1/10 of the number above) and depends 
> on facets support in pkg.
>
> Dave



Reply via email to