From owner-svn-src-all@FreeBSD.ORG Wed Jul 9 23:25:42 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 6DDF4176; Wed, 9 Jul 2014 23:25:42 +0000 (UTC) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (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 5DE872623; Wed, 9 Jul 2014 23:25:41 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id x48so8203140wes.25 for ; Wed, 09 Jul 2014 16:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ICm2rCzuFoPHw8tfwmNqcEVDzzrKrWFKH1uzzcNenrM=; b=wvXixGWDH/FN4xlJha0cHWNMoS7jib4bvrkUuU2rQNI66bY+Ykf+t4hlMbw+twNNT9 I48LBW+FS4mHhdsXVo3GAtmKOZpk71NcEJb7pJYFrNQLHCnmK31jjKq28q9MLm6Gdw1H V/KB0bjGHtB8MzpFcFClQvd6WA0Bnk4rrHLs8iiMFy24Q7pgKbPNq8q+ZG0fV2avf0ax mqo4GjFparOcAbyyZ1FjToTs49QA6GFxkkRs3KEdO2l0g1r5kqlDmonAzMg/vTU5MPZT Zdrl2LfqpvDCj0nuJeaKBoKeQzmzlMR1cfDbstx7H6YgLXKhQ1Y9xs6zu4AQe8vPn43R B0vw== X-Received: by 10.180.21.172 with SMTP id w12mr14989893wie.31.1404948339641; Wed, 09 Jul 2014 16:25:39 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id ey16sm24661756wid.14.2014.07.09.16.25.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jul 2014 16:25:38 -0700 (PDT) Sender: Baptiste Daroussin Date: Thu, 10 Jul 2014 01:25:36 +0200 From: Baptiste Daroussin To: Adrian Chadd 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... Message-ID: <20140709232536.GF56040@ivaldir.etoilebsd.net> References: <201407091552.s69FqUon070685@svn.freebsd.org> <53BD68E4.1070706@freebsd.org> <20140709172305.GD56040@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GLp9dJVi+aaipsRk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , Pedro Giffuni , "src-committers@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 23:25:42 -0000 --GLp9dJVi+aaipsRk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > See below. >=20 > >> > >> 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 =3D 8976 k > > After > > gdb + kgdb + gdbtui =3D 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 fi= rst > > approach was to turn into a privatelib. >=20 > 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.) >=20 > And yeah, I do install gdb in there from time to time. Code sometimes > needs debugging. :-) >=20 They can in that case use libedit which exports a libreadline compatibility interface in the base system (it is working well with the known cisco-like = UI things ;) so even in that case I save them space given libedit is required = for /bin/sh (the only known problem can happen if the are using unicode and fro= m my last test the cisco UI thing is not unicode friendly either so that should = make no difference here for them). The other thing is there are a couple of ABI incompatibilities between the libreadline version we have in base and newer libreadline which is getting = more and more use making it more complicated to manage ports that requires newer readline. regards, Bapt --GLp9dJVi+aaipsRk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlO9z3AACgkQ8kTtMUmk6Ew4IACfQ6mRfHJ9enFb436Hq/XGZoEZ Vv0AnAwwmjkVFLYCzyhPSZOI4Nq9k1+k =8NkS -----END PGP SIGNATURE----- --GLp9dJVi+aaipsRk--