[Buildroot] [PATCH] package/libclc: switch to using LLVM's monorepo

Yann E. MORIN yann.morin.1998 at free.fr
Sat Jan 9 13:25:19 UTC 2021


Romain, All,

On 2021-01-09 12:25 +0100, Romain Naour spake thusly:
> Le 09/01/2021 à 11:33, Yann E. MORIN a écrit :
> > The LLVM project has switched to using a monorepo to host all their
> > components. The separate, individual repositories have been closed
> > late 2020 / early 2021. The libclc repository is no longer.
> > 
> > Switch to using the libclc source from the llvm monorepo; switch to
> > using the github helper, to avoid a huge git clone (still 115MiB
> > instead of the previous 172KiB...).
> 
> I didn't noticed that the repository is no longer available because I'm using a
> mirror locally: https://github.com/llvm-mirror/libclc.git

Ah, but then we would be back to square one when we eventually want to
update the libclc version, which is not going to be available in that
legacy mirror, but only in the official llvm-project repo...

> If we really care about thee download size, maybe we can use the mirror before
> updating to llvm 11.0 that's the first release providing an archive for libclc:
> https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/libclc-11.0.0.src.tar.xz

I would say that if people are concerned about the download size, they
would have to go to the llvm project and whine there.

[--SNIP--]
> > @@ -28,19 +27,19 @@ LIBCLC_CONF_OPTS = \
> >  	--with-cxx-compiler=$(HOSTCXX_NOCCACHE)
> >  
> >  define LIBCLC_CONFIGURE_CMDS
> > -	(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure.py $(LIBCLC_CONF_OPTS))
> > +	cd $(@D)/libclc && $(TARGET_CONFIGURE_OPTS) ./configure.py $(LIBCLC_CONF_OPTS)
> 
> Here you're removing the sub-shell but it's used for most other packages.

The subshell is totally useless; it is an anti-pattern.

That most packages use it is not a reason to keep it; instead, we should
get rid of it.

Note: I know we have similar constructs in the infras; that's not good,
at all...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list