From owner-svn-src-head@FreeBSD.ORG Wed Jul 9 18:05:31 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7314994C; Wed, 9 Jul 2014 18:05:31 +0000 (UTC) Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com [IPv6:2607:f8b0:400d:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DDE8E292F; Wed, 9 Jul 2014 18:05:30 +0000 (UTC) Received: by mail-qg0-f50.google.com with SMTP id j5so6697805qga.23 for ; Wed, 09 Jul 2014 11:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=tdHSqvInTzWy6R6P111dEadwvf7uwpDAVxDiMOMwz9U=; b=RUqzd/HCqEasSgZmCvbvm8v4kZdDdSfDXTieIc1R3Kfw4rSCQIhKqnB2FE/Me7hKpe 483aG3k6yVfnKplxepIlVvbwQZd6gClqtZxWwyZGoTgcl9Josu5kmDrwMQXPsVBJnJpN RHwpeC8uhy2myynPK0ZUad53I6sr90ks6WmrXR+SwUQ0n0Im+7QEl5IbxgKCISiAjnPE AtzaWsLjmeE4lLIw9lHEfOyIXfBDEaA10ocSKXktvY5LP2e6tYYExa3MYoXHE+3bt4qz PtveAU46uko51acaLBfnMeD1zh2X+waxerbF9EqeUgL7I8W9kMcmZGzINtoyMcsCPIOK WrKA== MIME-Version: 1.0 X-Received: by 10.140.47.48 with SMTP id l45mr67985016qga.24.1404929129912; Wed, 09 Jul 2014 11:05:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Wed, 9 Jul 2014 11:05:29 -0700 (PDT) In-Reply-To: <20140709172305.GD56040@ivaldir.etoilebsd.net> References: <201407091552.s69FqUon070685@svn.freebsd.org> <53BD68E4.1070706@freebsd.org> <20140709172305.GD56040@ivaldir.etoilebsd.net> Date: Wed, 9 Jul 2014 11:05:29 -0700 X-Google-Sender-Auth: ORJgjuM9Jf8fY2A2eDPC7a_v6KU Message-ID: Subject: Re: svn commit: r268461 - in head: . gnu/lib/libreadline gnu/lib/libreadline/history gnu/lib/libreadline/readline gnu/lib/libreadline/readline/doc gnu/usr.bin/gdb gnu/usr.bin/gdb/gdb gnu/usr.bin/gdb/gd... From: Adrian Chadd To: Baptiste Daroussin Content-Type: text/plain; charset=UTF-8 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , Pedro Giffuni , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 18:05:31 -0000 On 9 July 2014 10:23, Baptiste Daroussin wrote: > On Wed, Jul 09, 2014 at 10:12:27AM -0700, Adrian Chadd wrote: >> Hi, >> >> By doing this you're actually making more work for the really embedded >> people who have size constraints on things. >> >> I dislike privatelib but it at least allows for code sharing where >> before people would just statically link things into binaries. > > do you install gdb on your embedded environnement? because that is the only > user of libreadline. See below. >> >> I've had to actively undo this kind of dumb before in order to get >> things to fit on very small flash root filesystems. >> >> Shared libraries are good. Please stop assuming we have lots of disk >> space and RAM to have duplicates of things floating around. > > Facts: > Before > gdb + kgdb + gdbtui + libreadline.so.8 + libhistory.so.8 = 8976 k > After > gdb + kgdb + gdbtui = 8973 k > > I don't think I have damaged too much your embedded system am I wrong? > > Do I miss something? > > (Yes I have checked that before turning into an internallib given my first > approach was to turn into a privatelib. Sure, except for the people who have done things like rolled local configuration/management telnet interfaces for these things. They're also using libreadline (and things like the cisco UI library.) And yeah, I do install gdb in there from time to time. Code sometimes needs debugging. :-) -a