From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1988C4332F for ; Tue, 1 Nov 2022 18:17:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5E1A040462; Tue, 1 Nov 2022 18:17:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5E1A040462 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZenLgeGuUo4D; Tue, 1 Nov 2022 18:17:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 6822C4017C; Tue, 1 Nov 2022 18:17:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 6822C4017C Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 70CD11BF5F8 for ; Tue, 1 Nov 2022 18:17:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4ABFB60C21 for ; Tue, 1 Nov 2022 18:17:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4ABFB60C21 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4biYMkAng1yF for ; Tue, 1 Nov 2022 18:17:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 96E3A60595 Received: from smtpcmd10101.aruba.it (smtpcmd10101.aruba.it [62.149.156.101]) by smtp3.osuosl.org (Postfix) with ESMTP id 96E3A60595 for ; Tue, 1 Nov 2022 18:17:17 +0000 (UTC) Received: from smtpclient.apple ([151.36.0.209]) by Aruba Outgoing Smtp with ESMTPA id pvp4oNKw71jfKpvp5oHPlu; Tue, 01 Nov 2022 19:17:16 +0100 From: Giulio Benetti Mime-Version: 1.0 (1.0) Date: Tue, 1 Nov 2022 19:17:04 +0100 Message-Id: References: In-Reply-To: To: Angelo Compagnucci X-Mailer: iPhone Mail (20A392) X-CMAE-Envelope: MS4xfOBL311iz76a3rc2JkI6YIVlTm3DhyiTjVxw2sFJ8e6rYHTCj7ctbdm0PeVNk3f0+XOzz92jpZ1YbITY2qZV+iMWrUgbJLmr2ppEr73k9XaIcFKmuvzb BqotrMuZCq67QMutX0ONdxxDFRqEo+mVI3jGeBsZd8Cnnfv6ejP7xEUN0o8SWKHho14IeTEdyFcHLOA0wx7nHrM1REnL6NT4P3yNJEjfVTUrG0TDAUXHiuXp Lt25pw6+vpDTNf+zVVqk79KNIuGlJEIUZsHF4+EO/Ons+oNKZWkmRc78IonWsnU/ZdQ3FQFviK85YBbcLaHNEENmqj8Z2MBj/KiVUY+z4mzdw+9L8VlxkTJO jvdr2+2DCaSqssMSBmkx8oe11gIegA== X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1667326636; bh=Ag/zVsHGzRtqcaiN3P+h3wrL6gOhlB5mnc2JxWR24HA=; h=Content-Type:From:Mime-Version:Subject:Date:To; b=aRiXlWoIDOU4UDWh2MNjBEjMPSE4vK7T+D2aYDtBDb/PrHKEc+VoRPmTOWTXONioj Ik+B746T4KCOILlUDh2GUU22nI48clElWPwjfytXksT2jQtWKICo4o1QMc6PAGnmVo zYCCnQVGZMED1OqVevv8SKv5WKNBBh+YvNxNHOAHocHVQ9LS8qKk8YTSaoNMKY18zJ sEavqZyxMNBHXbIfFvuYXgnaFYOuamT2nUspChHV48ecjjqJYY+bZjPHi7UaiJVmBG aWaofeSDoULIs+kKHWzVJ5SKZ3i8K7ELrVoM3GHmBTznz2I0Gdd4Jkc0xDQ9HW7f23 FL1E+WhMoyMBQ== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=aRiXlWoI Subject: Re: [Buildroot] [PATCH] package/mono: allow to select which folders to install to target X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci , "Yann E. MORIN" , Thomas Petazzoni , Buildroot Mailing List Content-Type: multipart/mixed; boundary="===============7633690982959031854==" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" --===============7633690982959031854== Content-Type: multipart/alternative; boundary=Apple-Mail-D15D8A7D-1D58-44F6-B7A1-531C198D8328 Content-Transfer-Encoding: 7bit --Apple-Mail-D15D8A7D-1D58-44F6-B7A1-531C198D8328 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Angelo,

Il giorno 1 nov 2022, alle ore 10:20, Angelo Compagnucci &= lt;angelo@amarulasolutions.com> ha scritto:

=EF=BB=BF

=
Il mar 1= nov 2022, 09:32 Yann E. MORIN <yann.morin.1998@free.fr> ha scritto:
Giulio, All,

On 2022-11-01 03:27 +0100, Giulio Benetti spake thusly:
> On 31/10/22 13:54, Yann E. MORIN wrote:
> >On 2022-10-31 13:25 +0100, Thomas Petazzoni via buildroot spake thu= sly:
> >>On Wed, 19 Oct 2022 01:46:17 +0200
> >>Giulio Benetti <giulio.benetti@benettiengi= neering.com> wrote:
> >>>At the moment all APIs folders are copied to target increas= ing the size of
> >>>rootfs of ~190MB. Allow to select which API folders we want= to copy to
> >>>target to shrink rootfs down.
> >>>
> >>>Signed-off-by: Giulio Benetti <giulio.= benetti@benettiengineering.com>
> >>Practically speaking, could you describe which folders are need= ed in a
> >>typical scenario you've had?
> >Yes, can you provide a rationale for when only a subset of APIs is<= br> > >needed?
> I've answered on previous e-mail. I've realized only now that I could > answer to your e-mail for both.

Hey, what you answered Thomas is not a rationale, it is an example. ;-)
A rationale is "an explanation of controlling principles of opinion,
belief, practice, or phenomena", or "an underlying reason". [0]

As a rationale, I would have expected something that explains the reason
= why there are so many directories, and so why, under some circumstances,
= we can get rid of them (or not). It needs not be too long, but just
provide an overview. For example, here is a totally made up blurb:

    mono provides support for a lot of legacy APIs for backward     compatibility for existing applications, way back from the fir= st
    stable API, 2.0 and up to the current version. The set of APIs= are
    split in two categories: version-based APIs, and the rest (gac= , the
    FooBar set of common Baz; monodoc, which renders documentation= while
    riding a unicycle...).

    For a custom application, the set of required versioned APIs i= s
    limited; most often only the latest or the very few latest are=
    needed. Only gac is always required, and monodoc is never used= on
    the target as we never render the documentation there.

[0] https://www.merriam-webster.com/dic= tionary/rationale

[--SNIP--]
> >>Should we instead have a single string option
> >>BR2_PACKAGE_MONO_INSTALL_LIB_DIRS, which is empty by default. W= hen
> >>empty, it means all folders are installed. Otherwise, only the<= br> > >>specified folders are installed.
> >Agreed. I expect that having no API level installed would yield a > >non-working system, so:
> >     config BR2_PACKAGE_MONO_API_VERSIONS
> >         string "API versions to install"<= br> > >         help
> >           Keep empty to install all.=
> Ok, I go with that then!

ACK.

My two cents. Historically, the mono configure was offering some options t= o enable only some versions of the API which was lately removed 
<= div dir=3D"auto">So, removing older compatibility API folders should be perf= ectly fine. We cannot remove the Global Assembly Cache (GAC).

Thanks for pointing.


For the rest, it would be nice if Giulio could do some t= esting (I can try it too) to understand at what extent we can remove any oth= er folder.

Can you please d= o that and in case integrate this patch later with another patch?
= At the moment IMHO this patch is enough for its purpose.

Thank you!

Best regards
Giulio


Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.-----------------= ---.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics'= conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN    &nbs= p;|  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST    &= nbsp; |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL = ;   |   v   conspiracy.  |
'------------------------------^-------^------------------^-----------------= ---'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/l= istinfo/buildroot
= --Apple-Mail-D15D8A7D-1D58-44F6-B7A1-531C198D8328-- --===============7633690982959031854== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot --===============7633690982959031854==--