From owner-svn-src-all@FreeBSD.ORG Wed Jul 9 19:09:04 2014 Return-Path: Delivered-To: svn-src-all@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 4F571183; Wed, 9 Jul 2014 19:09:04 +0000 (UTC) Received: from mail-vc0-x230.google.com (mail-vc0-x230.google.com [IPv6:2607:f8b0:400c:c03::230]) (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 B37A72ED5; Wed, 9 Jul 2014 19:09:03 +0000 (UTC) Received: by mail-vc0-f176.google.com with SMTP id ik5so7836761vcb.7 for ; Wed, 09 Jul 2014 12:09:02 -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=Fiioen5qRIsOj/oEN+JJdQ9unCqj+xvxMkiaURc8tmE=; b=fDnOG/OjNoFGkT+Tisohb8agkUo0+Z1Xydi0+QVqAd68V0HyRY3+phopXsPZKH4PWk ayvS3JuxH/BqndRPAYyckkVlblsbl14nvrZUW6oVwSLfllR+Pym2SneV0Y/DbrZ7zD6g q89qApRauFRzjrObNpv1UhkuZ4Fg+bI+KxCJuRU7XJ1ZvXGmCobbpw14MHkouRsfYYvT WwrdX+gxnmEpXS9YqnOVucgFZYO8lT28MaqvCqe2Wss4J8Bt5W3ahlIjDXFWq4Iz/LTd VY1lDRNT7jXjlTZpmJPkK/ouwKwh+53h4RQUXWq18+Q2qz2R3l0dh5V+3gmsOrcUsg5R bo2A== MIME-Version: 1.0 X-Received: by 10.221.44.73 with SMTP id uf9mr41616227vcb.9.1404932942515; Wed, 09 Jul 2014 12:09:02 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.202.193 with HTTP; Wed, 9 Jul 2014 12:09:02 -0700 (PDT) In-Reply-To: <20140709182745.GD93733@kib.kiev.ua> References: <201407091552.s69FqUon070685@svn.freebsd.org> <53BD68E4.1070706@freebsd.org> <20140709172305.GD56040@ivaldir.etoilebsd.net> <20140709182745.GD93733@kib.kiev.ua> Date: Wed, 9 Jul 2014 12:09:02 -0700 X-Google-Sender-Auth: eWoTDABwGDY0yUIAHC6kXx55oMg 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: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 Cc: "svn-src-head@freebsd.org" , Baptiste Daroussin , Pedro Giffuni , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 19:09:04 -0000 On 9 July 2014 11:27, Konstantin Belousov wrote: > On Wed, Jul 09, 2014 at 11:05:29AM -0700, Adrian Chadd wrote: >> 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. :-) >> > > What Baptiste did is the only correct way to handle the ABI and API > un-stability issues with the third-party libraries. The change is > good if only for this sole reason. Private libraries still conflict > with the same library installed by other means, in the single process > image. > > That said, if you do development directly on the tiny platforms, the > remote gdb server is probably better solution than the local gdb. > Also, WITH_SHARED_TOOLCHAIN probably would give you much bigger > savings both in disk space and used memory than libreadline and > libgnuregex. I just abandoned a hope to flip this knob. Alas, if only remote MIPS gdb for (at least kernel) worked.. :-) -a