Received: from nc-smtp3.sdv.fr (nc-smtp3.sdv.fr [212.95.69.93]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 3B202782E12 for <~alpine/devel@lists.alpinelinux.org>; Wed, 20 Jan 2021 09:32:20 +0000 (UTC) Received: from skarnet.org (140.156.124.78.rev.sfr.net [78.124.156.140]) by nc-smtp3.sdv.fr (Postfix) with SMTP id BD4A6A0484 for <~alpine/devel@lists.alpinelinux.org>; Wed, 20 Jan 2021 10:32:19 +0100 (CET) Received: (qmail 11459 invoked from network); 20 Jan 2021 10:32:46 +0100 Received: from unknown (HELO ?192.168.0.237?) () by sinay.internal.skarnet.org. with SMTP; 20 Jan 2021 10:32:46 +0100 From: "Laurent Bercot" To: maxice8 , "Natanael Copa" Subject: Re: RFC on -static subpackages and being more static-linking friendly Cc: ~alpine/devel@lists.alpinelinux.org Date: Wed, 20 Jan 2021 09:32:19 +0000 Message-Id: In-Reply-To: <9d3541ec2a2890703a1cfdbda9d4d50136308699.camel@gmail.com> References: <20210119212733.11bcc69b@ncopa-desktop.lan> <9d3541ec2a2890703a1cfdbda9d4d50136308699.camel@gmail.com> Reply-To: "Laurent Bercot" User-Agent: eM_Client/8.1.979.0 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledruddvgddthecutefuodetggdotffvucfrrhhofhhilhgvmecupfgfoffgtffkveetuefngfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkfgjfhhrfgggtgfgsehtqhertddtreejnecuhfhrohhmpedfnfgruhhrvghnthcuuegvrhgtohhtfdcuoehskhgrqdguvghvvghlsehskhgrrhhnvghtrdhorhhgqeenucggtffrrghtthgvrhhnpeettdegjefgkeefveetfeevjeekuedugeefgeduudfggedvteegveeiueeuheelveenucffohhmrghinhepshhkrghrnhgvthdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht >The split has helped me only once, while dealing with skarnet software >suite, I don't think it is worth it to have a broken -static package >that can't even be used ootb to link statically. I find it difficult to believe that my software has to be treated differently from others. Could you please explain why and how -static helped you with my software when it did not with other packages? I have no opinion on having -static packages or not, as long as static libraries are made available in -dev if there is no -static. It is important to allow developers and packagers to use static libraries if they so choose. skarnet.org software uses static libraries by default, because it's small enough that doing so actually ends up in less RAM usage. In some cases (like utmps), the .a is actually *smaller* than the .so, so using a shared library really doesn't make sense from a resource usage standpoint. However, it can be trivially configured to use shared libraries instead: --disable-allstatic. This flag is present in all my APKBUILDs, to follow Alpine policy; and a policy change, or an alternative build, is just a matter of commenting the flag. I don't understand the "broken -static package that can't even be used ootb to link statically" part. Doesn't abuild create actually functional -static packages? -- Laurent