svn commit: r275287 - in projects/building-blocks: share/mk tools/build/options
Garrett Cooper
yaneurabeya at gmail.com
Sun Nov 30 09:54:25 UTC 2014
On Nov 30, 2014, at 1:45, Baptiste Daroussin <bapt at FreeBSD.org> wrote:
> On Sun, Nov 30, 2014 at 12:45:33AM +0000, Garrett Cooper wrote:
>> Author: ngie
>> Date: Sun Nov 30 00:45:33 2014
>> New Revision: 275287
>> URL: https://svnweb.freebsd.org/changeset/base/275287
>>
>> Log:
>> Add MK_FILE and MK_SQLITE3
>>
>> - MK_FILE will conditionalize building lib/libmagic and usr.bin/file
>> - MK_SQLITE3 will conditionalize building lib/libsqlite3, and will disable
>> MK_SVN/MK_SVNLITE by proxy
>
> Please avoid the MK_SQLITE3 except if you do plan to be able to ship freebsd
> without a manpage reader, newer mandoc which I'm planning to import soon is
> using sqlite3 and this is why I extracted it from svn(lite)
There’s MK_MAN/MK_MAN_UTILS — I’m ok with making MK_SQLITE3 set either one of these variables so man(1) isn’t installed on the image.
The reason why I was looking at removing it is that it adds ~1MB to install images:
$ ls -hl /scratch/1/usr/lib/private/libsqlite3.so.0
-r--r--r-- 1 ngie wheel 1.0M Nov 30 00:16 /scratch/1/usr/lib/private/libsqlite3.so.0
$ du -sh /scratch/[12]/lib/libc.so.7
1.6M /scratch/1/lib/libc.so.7
This is a fair amount of space compared to a lot of other libraries, and the savings is pretty huge given how far I’ve whittled down a make installworld/mergemaster-only install (the first directory was produced with SRCCONF=/dev/null, the second is my stripped down SRCCONF, which is sans bootloaders):
$ du -sh /scratch/[12]
404M /scratch/1
32M /scratch/2
Cheers!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20141130/13bcbd7b/attachment.sig>
More information about the svn-src-projects
mailing list