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 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. > 6.33 MB SUNWgccruntime GCC Runtime libraries Probably shouldn't be listed directly, anyway; might still end up pulled in as a dependency. > 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. > 1.85 MB SUNWpkgcmds SVr4 packaging commands Needed for adding drivers distributed in SVR4 format, at least. > 1.59 MB SUNWgnutls GNU transport layer security library Probably shouldn't be listed directly, but may be a dependency of other packages. > 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. > 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
