From: Denys Dmytriyenko <denis@denix.org>
To: Ryan Eatmon <reatmon@ti.com>
Cc: Randolph Sapp <rs@ti.com>,
afd@ti.com, detheridge@ti.com, meta-ti@lists.yoctoproject.org
Subject: Re: [EXTERNAL] Re: [EXTERNAL] Re: [meta-ti][master/kirkstone][PATCH] all: http to https everything
Date: Tue, 2 May 2023 19:09:27 -0400 [thread overview]
Message-ID: <20230502230927.GG9226@denix.org> (raw)
In-Reply-To: <0a08e0a2-1ba4-d003-7be9-0109ddf63fe8@ti.com>
On Tue, May 02, 2023 at 05:59:06PM -0500, Ryan Eatmon wrote:
>
>
> On 5/2/2023 17:47, Denys Dmytriyenko wrote:
> >On Tue, May 02, 2023 at 04:49:28PM -0500, Randolph Sapp wrote:
> >>On 5/2/23 14:09, Denys Dmytriyenko wrote:
> >>>On Fri, Apr 28, 2023 at 11:24:11AM -0500, Randolph Sapp wrote:
> >>>>On 4/27/23 20:59, Denys Dmytriyenko wrote:
> >>>>>On Thu, Apr 27, 2023 at 07:31:16PM -0500, Randolph Sapp wrote:
> >>>>>>On 4/27/23 19:28, rs@ti.com wrote:
> >>>>>>>From: Randolph Sapp <rs@ti.com>
> >>>>>>>
> >>>>>>>All of the software-dl links 302 to https urls anyway. Just jump
> >>>>>>>straight to the secure version.
> >>>>>>>
> >>>>>>>Signed-off-by: Randolph Sapp <rs@ti.com>
> >>>>>>>---
> >>>
> >>><snip>
> >>>
> >>>
> >>>>>>>diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc b/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc
> >>>>>>>index f0992aa7..77d23b6d 100644
> >>>>>>>--- a/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc
> >>>>>>>+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc
> >>>>>>>@@ -11,7 +11,7 @@ require ../includes/ti-eula-unpack.inc
> >>>>>>> S = "${WORKDIR}/cgt470_${PV}"
> >>>>>>>-SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin"
> >>>>>>>+SRC_URI = "https://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin"
> >>>>>>
> >>>>>>Don't actually merge this. Wanted to take this opportunity to ask
> >>>>>>what on earth theses SRC_URIs are. What do these mean, what's the
> >>>>>>story?
> >>>>>
> >>>>>Heh, these were placeholders for "clickwrap" packages, which at some point
> >>>>>long time ago TI Legal considered a "great" way to distribute software...
> >>>>>Basically, there was no direct download URL - you must have downloaded them
> >>>>>manually by filling out an online form and signing some sort of an agreement,
> >>>>>which would trigger the download. Then you "install the source into the local
> >>>>>downloads dir" (hence the name) by copying what you've downloaded manually
> >>>>>into your ${DL_DIR} and Bitbake would be able to find it there regardless of
> >>>>>the actual SRC_URI.
> >>>>>
> >>>>
> >>>>Oh cool, I hate it. (Thanks for the explanation, I just really don't
> >>>>like this idea.) Can we drop these (install methods or packages if
> >>>>necessary) or will policy not allow it?
> >>>
> >>>Nobody likes it on the engineering side! :) But it was forced back in the day
> >>>by sales/marketing/legal and took a lot of effort to convince everyone that
> >>>this clickwrap stuff doesn't bring much benefit, but causes damage...
> >>>
> >>>Since then most if not all of TI packages dropped clickwrap and allowed direct
> >>>download. Hence you don't see a lot of these weird URLs in recipes any more.
> >>>
> >>>Not sure about CodeGen Tool for TMS470 MCU and if there were newer releases or
> >>>if it's still active - nobody cared to update this recipe in over 10 years.
> >>>Other CGT recipes for ARM, PRU, C6x, C7x etc. in that recipes-ti/devtools
> >>>directory were kept mostly up to date, but not for TMS470. Not sure if there
> >>>are any downstream users anymore, maybe time to remove it...
> >>>
> >>
> >>I'll add a patch to drop codegen then. It'll be a little bit of a
> >>scream test but I'm sure it's fine. The C7 / C6 components I know
> >>still have a few dependents in meta-arago though, so I don't think
> >>those can be dropped. Will see if there is a non-clickwrapped source
> >>for those yet.
> >
> >Ah, there's still an older C6x CGT 7.4.16 that is clickwrapped - at some point
> >there was one component remaining that required it, while everything else got
> >migrated to C6x CGT 8.x, which enabled direct download and we have a recipe
> >for version 8.3.2 already. And the recipe for older 7.x was specifically in
> >its own namespace to allow both of them in the same build, until the last
> >dependency for it goes away.
> >
> >C7x CGT never was clickwrapped, as the arch is newer than those dark times :)
> >
> >BTW, assuming that meta-arago is the only consumer of meta-ti components is
> >not very safe.
>
> Agreed. We are already toying around with supporting OpenBMC which
> absolutely does not use arago.
Heh, and I was referring to customers, OEMs and the community at large. :)
> >But I think dropping CGT for TMS740 and old CGT 7.x for C6x
> >should be fine and those are the only remaining clickwrapped recipes.
> >
> >IIRC, TMS740 arch was an old ARM MCU, so generic ARM CGT should probably also
> >work, I guess.
> >
> >
> >>>>Also, is this URI
> >>>>functionality baked into the http fetcher or is this just leaning on
> >>>>bitbake being unable to resolve the domain and then falling back on
> >>>>the local copy?
> >>>
> >>>This is basic Bitbake fetcher functionality and is well documented. High level
> >>>order of operations to locate sources:
> >>>
> >>>1. Check if you already have them in your local DL_DIR
> >>>2. Go through the list of configured PREMIRRORS to locate the sources there
> >>>3. Actually hit the upstream SRC_URI and try to download the original src
> >>>4. If everything else fails, check through the list of "post" MIRRORS
> >>>
> >>>So, requiring user to pre-download the sources manually and placing them in
> >>>their local DL_DIR per the original documentation would shortcut the process
> >>>at step 1.
> >>>
> >>>Otherwise it would break at step 3 (and 4) and hopefully the weird URL would
> >>>give user some clues or at least force to read the docs...
> >>>
> >>>There's nothing special about the URL, besides the convention that .local is
> >>>reserved - https://en.wikipedia.org/wiki/.local - and the entire name
> >>>suggesting to install the sources in local dir :)
> >>>
> >>
> >>Ah, alright. At least this isn't that bad then. I still don't like
> >>the idea of being able to reach steps 3&4 in this case as it will
> >>check http sources. Local is reserved but it's still not a great
> >>idea to allow this fetch to go through, even if *ideally* it should
> >>fail to resolve.
> >
> >You can try adding do_fetch[network] = "0" to that recipe...
prev parent reply other threads:[~2023-05-02 23:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-28 0:28 [meta-ti][master/kirkstone][PATCH] all: http to https everything rs
2023-04-28 0:31 ` Randolph Sapp
2023-04-28 1:59 ` Denys Dmytriyenko
2023-04-28 16:24 ` [EXTERNAL] " Randolph Sapp
2023-05-02 19:09 ` Denys Dmytriyenko
2023-05-02 21:49 ` [EXTERNAL] " Randolph Sapp
2023-05-02 22:47 ` Denys Dmytriyenko
2023-05-02 22:59 ` Ryan Eatmon
2023-05-02 23:09 ` Denys Dmytriyenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230502230927.GG9226@denix.org \
--to=denis@denix.org \
--cc=afd@ti.com \
--cc=detheridge@ti.com \
--cc=meta-ti@lists.yoctoproject.org \
--cc=reatmon@ti.com \
--cc=rs@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.