[CentOS-devel] Centpkg and the converged git project

Pat Riehecky

riehecky at fnal.gov
Fri Feb 22 14:24:45 UTC 2019


I just got around to looking at this.

My primary use case for these tools is to checkout the Red Hat 
commits[1].  Any chance a similar feature can be added to centpkg?

Pat


[1] 
https://git.centos.org/blob/centos-git-common.git/master/show_possible_srpms.sh#L17

On 11/15/18 10:45 PM, Brian Stinson wrote:
>   Hi Folks,
>   
>   I've done a bit of work on centpkg, now that we have a testbed at
>   git.stg.centos.org. The goal here is to allow centpkg and fedpkg
>   (Fedora's site) to both understand the different formats. The test
>   version of centpkg described below is the first step in that direction.
>   
>   Basically you can try this out by pulling a container image:
>   
>   `podman pull quay.io/bstinsonmhk/centpkg:develop`
>   
>   Why a container image?
>    - The patches to make this happen involve invasive changes to rpkg,
>      that are still in flight (basically,
>      https://urldefense.proofpoint.com/v2/url?u=https-3A__pagure.io_rpkg_pull-2Drequest_393&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=OAMtP0DWou0nlXG7Kmxo2enjXJfwb1DXS9fwcaESuTE&m=N3-iWDAiYecOZ0rIXOL32BOLXSSpuiMmUBv1npzevD4&s=YrIiMLv6862dL_0Yu4urnQwQj6lkCStofoz4OuCTTUI&e=)
>   
>    - I wanted to bake in the sources and  configs to develop this a little
>      faster as we find problems.
>   
>   What's included, and where to file bugs?
>    - centpkg from:
>      https://urldefense.proofpoint.com/v2/url?u=https-3A__bitbucket.org_bstinsonmhk_centpkg_branch_develop&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=OAMtP0DWou0nlXG7Kmxo2enjXJfwb1DXS9fwcaESuTE&m=N3-iWDAiYecOZ0rIXOL32BOLXSSpuiMmUBv1npzevD4&s=Z8aldTBVPiffi8x7jTCwtdCbi0Cj5wrftPU50WDyjLU&e=
>    - rpkg from:
>      https://urldefense.proofpoint.com/v2/url?u=https-3A__pagure.io_fork_bstinson_rpkg_tree_centpkg-2Dinbound&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=OAMtP0DWou0nlXG7Kmxo2enjXJfwb1DXS9fwcaESuTE&m=N3-iWDAiYecOZ0rIXOL32BOLXSSpuiMmUBv1npzevD4&s=iUEAMr25lUMVGevZZ5KweBKT1eFocrIyxh4OHI3ahcY&e=
>    - fedpkg from:
>      https://urldefense.proofpoint.com/v2/url?u=https-3A__pagure.io_fedpkg_tree_master&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=OAMtP0DWou0nlXG7Kmxo2enjXJfwb1DXS9fwcaESuTE&m=N3-iWDAiYecOZ0rIXOL32BOLXSSpuiMmUBv1npzevD4&s=vrtfSnuGMYr5QeqUsFHHvW7Coj30LZ992DqvnZlFOSI&e=
>   
>   Here's how I run it for testing CentOS packages (substitute your centos
>   user certificate and a path to RPMs to fit your workstation):
>   
>   `podman run --rm -it -v
>   /home/bstinson/.centos.cert:/home/centpkg-user/.centos.cert:Z -v
>   /home/bstinson/rpms:/home/centpkg-user/rpms:Z
>   quay.io/bstinsonmhk/centpkg:develop`
>   
>   
>   If you're a SIG member, you can push to a sig branch. For example, if I
>   was a mamber of the atomic SIG I could do:
>   
>       # Clone the repo
>       $ centpkg clone -b c7 a2ps
>       
>       # Download the sources from C7
>       $ centpkg sources
>       
>       # Change to a SIG branch
>       $ git checkout -b c7-sig-atomic-cockpit-preview
>       
>       # Manual push is needed here until we work out a way to register the
>       # new branches
>       $ git push -u origin c7-sig-atomic-cockpit-preview
>   
>       # Upload sources to the SIG branch in the lookaside
>       $ centpkg upload SOURCES/a2ps-4.14.tar.gz SOURCES/i18n-fonts-0.1.tar.gz
>       
>       # CBS does not yet build from SCM, so still need srpms
>       $ centpkg scratch-build --srpm
>   
>       # Try out a fedora branch
>       $ centpkg switch-branch f28
>       $ centpkg clean
>   
>       # From a Fedora branch this should use your Fedora creds
>       $ centpkg scratch-build # this should work with Fedora's ko
>   
>   
>   What I need help with:
>   
>       - Review the open PRs to rpkg as they come in
>       - Help me find more places where we need to use the new 'Layout'
>         objects (that is where rpkg has paths hard-coded)
>       - Test Fedora workflows, and other commands with centpkg
>       - Help add new commands
>           - to request SIG branches
>           - to translate from one layout to another (ex. bringing a Fedora
>             branch into a CentOS SIG branch)
>   
>   Happy building!
>   
>   --Brian
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.centos.org_mailman_listinfo_centos-2Ddevel&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=OAMtP0DWou0nlXG7Kmxo2enjXJfwb1DXS9fwcaESuTE&m=N3-iWDAiYecOZ0rIXOL32BOLXSSpuiMmUBv1npzevD4&s=Jsk9FhCCg6x63n6rd5o_ZAjpEEsH3AgsyGL8sgeTeeo&e=

-- 
Pat Riehecky

Fermi National Accelerator Laboratory
www.fnal.gov
www.scientificlinux.org



More information about the CentOS-devel mailing list