[CentOS-devel] Dist-git's git structure in CBS

Fri Jan 28 16:56:32 UTC 2022
Brian Stinson <brian at bstinson.com>

On Fri, Jan 28, 2022, at 10:51, Pierre-Yves Chibon wrote:
> Good Morning Everyone,
>
> Nowadays we have different structures in the git repositories of the dist-git
> instance for CBS and for CentOS-Stream.
>
> CBS' dist-git (used by the SIG and for CentOS Linux 7, CentOS-Stream 8), uses
> something like:
> ├── .gitignore
> ├── .kernel.metadata
> ├── SOURCES
> │   ├─ ....
> │   ├── patch-5.14.0-redhat.patch
> │   ├─ ...
> │   └── x509.genkey.rhel
> └── SPECS
>     └── kernel.spec
>
> Ie: patches and other sources in a SOURCES folder, spec in a SPECS folder and
> the link between the git repo and the lookaside cache is done via the
> `.<packagename>.metadata` file.
>
> source: https://git.centos.org/rpms/kernel/tree/c8s
>
>
> On CentOS-Stream 9, the structure is similar to Fedora's structure where
> everything is in the top directory.
> source: https://gitlab.com/redhat/centos-stream/rpms/kernel
>
>
> I was wondering if there has been some thoughts given on harmonizing these
> structures? I am particularly interested on changing them for SIG building on
> the top of CS9. It would make pulling changes from gitlab onto the SIG's repo a
> lot easier I believe.
> I suspect there may be some work to do for this and if I'm pointed to the right
> direction, I wouldn't mind having a look at it but first I'd like to know if
> it's a good idea :)
>
> So... what do you think?

We are not going to force folks using the exploded-SRPM layout to change *yet*. But SIGs should evaluate moving toward the standard dist-git layout. I think I still have a couple of changes to make so that CBS supports both, but especially for new work: plan to use the dist-git layout.

>
>
> Thanks,
> Pierre
>
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> https://lists.centos.org/mailman/listinfo/centos-devel


--Brian