Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2014 01:54:24 -0800
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org, Garrett Cooper <ngie@FreeBSD.org>
Subject:   Re: svn commit: r275287 - in projects/building-blocks: share/mk tools/build/options
Message-ID:  <440D86F6-7005-43A2-96CE-6E7159ED653A@gmail.com>
In-Reply-To: <20141130094530.GI88765@ivaldir.etoilebsd.net>
References:  <201411300045.sAU0jXw6015374@svn.freebsd.org> <20141130094530.GI88765@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Nov 30, 2014, at 1:45, Baptiste Daroussin <bapt@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!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUeulQAAoJEMZr5QU6S73ed+sIAKnSsiJG+HdgcV28N474MqPA
9s9nk+BKyFW7PSqVHIprqNZ3YB3MeuUoW7xcx2E3U+wZw2IY1f1Buhtb4rR/zwJl
bpVrMKLYdtJf0dKJJ4tqm0HG7hbN1MEAIwfMDAd2Ok/iL8wBni2aj0qOmo0gXdV1
uL/lwyzNocKc++lISVkRqKeIAnozCVAn+YY72MByAlPMznJ9kGuw/7wQKKtjYRGC
7JpwD/KX6t+X5ZqWoBNlNpo5MjZBNuH/0IXx+2DIBLLVoMWbTYYjLpZOs5adQaXu
wLuakOxBXM9yU8eZCs03DGddJ0SxX/pOh18r5U919KkuafJPtiJBVIgkZboebLs=
=mdxx
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?440D86F6-7005-43A2-96CE-6E7159ED653A>