Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 5A22F782B9F for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Jan 2021 22:02:32 +0000 (UTC) Received: by mail-qt1-f181.google.com with SMTP id d15so4646189qtw.12 for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Jan 2021 14:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=NpugSv/UuEZdWjGbPn/2rOwd7dvZsO/xe82up1DjVu8=; b=lk/uaebgLh8G/c+mihC0bykP6E+2/ogz9VGvr2ihNhUbaNE6cP3KEpxa6GI74gCDim R/p2Xo8wRgms2Vlq7FzdavAedsc0sTyQrWnqnq3/WoKGrRLZJy3ng2z85/N/rRalTdi3 oadzbnVmWxAI5VrqvO75eBhbL9FEglRG3rL4S/DaJtXjQeVyL5U2AnAYX60+IV2FtMIo Mu3+BPObxQ6IoHfyro4iF1D0ADgFNGqR0GArhzi0x9q8vtka0MyxQRQ8NqEw27lSRaFa 3tVbidcoP7rQoP7xOsgYSoLJsEzvqggHhsQNjFRJ8k++OK06LLyz5xrPELU6YDQzu6RX DJxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=NpugSv/UuEZdWjGbPn/2rOwd7dvZsO/xe82up1DjVu8=; b=PR0OROtzWs0SB2j/DSpzV/oC5PLiibSdWRPb6RJ6KhUOOImVwyI6FROAMFVH1S6qzE R2QC5OudtJPAO17ItWnvOxs/apxfdrzilTgzyIPj5EJuKioQs2gO7IJtbmAhC4Wt+dFK w2aLsXBC9/RosPiVKJUH29Rpoui1J1H8bO1TWmea3lE7LcV7hQ8X2xYrYIm4cH8oBQWc 3uGaP5+w6t/oKfF3zsJdHDTsEda3TplZGVBxt0ixNjxNE6vF+Exkz3qxgQCU+e79eBTf 9SnsD4rdLj+gxUMpBNEwsblHlWNN5BHuaOla7v/XIlVC4pe750XRyeSA1y1dy7rnSayG j+zQ== X-Gm-Message-State: AOAM531dTMRpkMw3jwEjSLpfdZIi+hIQhDvJaA6cn+xo5WO2sJIq1ldS 2rg7wKU+ajzp0qtwTkFhiTNzzuvZcDY= X-Google-Smtp-Source: ABdhPJyA9TTiEavx6jA6ua1TJoUxdwHgXSYo/3yywplxyfAEiOMw8NK5dAGUXnQ8uynmCNcynKZMsg== X-Received: by 2002:ac8:5a82:: with SMTP id c2mr21201609qtc.90.1610920951491; Sun, 17 Jan 2021 14:02:31 -0800 (PST) Received: from ?IPv6:2804:431:cfcd:9b4c:9efc:d38e:299:d439? ([2804:431:cfcd:9b4c:9efc:d38e:299:d439]) by smtp.gmail.com with ESMTPSA id 8sm9350642qkr.28.2021.01.17.14.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 14:02:31 -0800 (PST) Message-ID: <00f37776d7549deacc0beb6db4a7e1ad8a5fb6cc.camel@gmail.com> Subject: Re: RFC on -static subpackages and being more static-linking friendly From: maxice8 To: Rasmus Thomsen , ~alpine/devel@lists.alpinelinux.org Date: Sun, 17 Jan 2021 19:02:28 -0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.2 (3.38.2-1.module_f33+10736+4f8d5006) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit On Sun, 2021-01-17 at 22:51 +0100, Rasmus Thomsen wrote: > On Sat, 2021-01-16 at 03:28 -0300, maxice8 wrote: > > Hello > > > > [...] > > > > My proposals are: > > > > 1. Remove -static subpackages and move the static library to -dev, > > if > > backwards compat is a concern we can make `-dev` provides= and > > replaces= `-static` too. > > +1 on that. We should also trace dependencies for static libs via > `Requires.Private` to make sure we pull in the right pc:* packages. > Good news is that is already done via --print-requires-private, see abuild.in[1]. > > 2. Avoid using --disable-static or removing the static library with > > 'rm' and respect the upstream decision to build it by default or > > IMHO we should just enable static libs for packages where it's not > too > expensive so users don't have to make a Gitlab issue for when they > need > static libs too often. > I have no interest in hunting down whichever packages are expensive or not to enable static libraries, I prefer to wait for them to make a GitLab issue or ask for it on IRC (should be friendly enough, everyone can hop on IRC via a webclient and just ask for it). That said if someone wants to go through the process of quantifying `expensive` and enabling on those that do not qualify as `expensive`, go for it. At the most **extreme** I would encourage enabling static libraries by making `--disable-static` and equivalents on other build-systems a `MINOR` policy violation in atools. > Regards, > > Rasmus Thomsen > > > Regards > > Leo > > > [1]: https://gitlab.alpinelinux.org/alpine/abuild/-/blob/master/abuild.in#L1586