Bug 2030779 - Please branch and build coccinelle in epel9
Summary: Please branch and build coccinelle in epel9
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: coccinelle
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2098482 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-09 17:38 UTC by Chung
Modified: 2023-04-19 18:23 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-23 18:15:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chung 2021-12-09 17:38:56 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Richard W.M. Jones 2022-02-23 17:36:48 UTC
https://pagure.io/releng/fedora-scm-requests/issue/42528

Comment 2 Richard W.M. Jones 2022-02-23 18:14:29 UTC
The branch has been created.  I pushed the Rawhide package to EPEL 9
because as discussed I think we should keep the branches as close
as possible:

https://src.fedoraproject.org/rpms/coccinelle/tree/epel9

We may have to branch other ocaml-* packages (or other dependencies)
in EPEL 9 as and when we discover what they are.

Comment 3 Richard W.M. Jones 2022-02-23 18:15:18 UTC
Scratch build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=83235786

I expect this to fail, but it's probably a good way to find out
what dependencies are missing.

Comment 4 Richard W.M. Jones 2022-02-23 18:19:43 UTC
I think you should request branches (using BZ) for these packages:

DEBUG util.py:444:  No matching package to install: 'hevea'
DEBUG util.py:444:  No matching package to install: 'ocaml-menhir'
DEBUG util.py:444:  No matching package to install: 'ocaml-num-devel'
DEBUG util.py:444:  No matching package to install: 'ocaml-parmap-devel'
DEBUG util.py:444:  No matching package to install: 'ocaml-pcre-devel'

The following texlive packages are going to be more difficult to handle.
AIUI we cannot easily add these to EPEL.  The best thing in this
case is likely to disable documentation generation.  It's an easy
change to conditionalize that in the spec file:

DEBUG util.py:444:  No matching package to install: 'texlive-boxedminipage'
DEBUG util.py:444:  No matching package to install: 'texlive-comment'
DEBUG util.py:444:  No matching package to install: 'texlive-endnotes'
DEBUG util.py:444:  No matching package to install: 'texlive-ifsym'
DEBUG util.py:444:  No matching package to install: 'texlive-moreverb'
DEBUG util.py:444:  No matching package to install: 'texlive-xypic'

Comment 5 Richard W.M. Jones 2022-02-23 18:35:36 UTC
I conditionalized the docs.  In fact the only OCaml packages that
need to be added are:

hevea
ocaml-menhir
ocaml-num
ocaml-parmap
ocaml-pcre
ocaml-result
ocaml-graphics

Comment 6 Chung 2022-02-23 19:47:12 UTC
OK.  I will request those.  
By the way, when I build the epel9, this is the only package I need:

BuildRequires:  git
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  ocaml >= 3.10.0
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-ocamldoc
BuildRequires:  python3-devel
BuildRequires:  bash-completion
BuildRequires:  make
BuildRequires:  pcre-devel


I was able to build for Fedora34 and Fedora35 without those packages at all.
Do you think we really need the above packages?

When I look at the coccinelle-1.1.1 source, it actually provide the following:

Provides:       bundled(ocaml-pycaml) = 20200220
Provides:       bundled(ocaml-stdcompat) = 15
Provides:       bundled(ocaml-parmap) = 1.0-rc7
Provides:       bundled(ocaml-menhir) = 20181113
Provides:       bundled(ocaml-pcre) = v7.2.3

Thanks again for your help.

Comment 7 Richard W.M. Jones 2022-02-23 20:04:35 UTC
Yes, we must have them to avoid using the bundles:
https://github.com/coccinelle/coccinelle/tree/master/bundles
except for pycaml and stdcompat where we were granted a
special exception.

Comment 8 Chung Chung 2022-02-24 16:01:02 UTC
Got it. 

I have requested for the following:

hevea: https://bugzilla.redhat.com/show_bug.cgi?id=2058263
ocaml-menhir: https://bugzilla.redhat.com/show_bug.cgi?id=2058268
ocaml-num: https://bugzilla.redhat.com/show_bug.cgi?id=2058273
ocaml-pcre: https://bugzilla.redhat.com/show_bug.cgi?id=2058272
ocaml-result: https://bugzilla.redhat.com/show_bug.cgi?id=2058274

However, there is no 

ocaml-parmap
ocaml-graphics

on the component list.

Comment 9 Richard W.M. Jones 2022-02-28 08:40:29 UTC
These do exist as packages:

https://src.fedoraproject.org/rpms/ocaml-parmap
https://src.fedoraproject.org/rpms/ocaml-graphics

I also checked that they do not already exist in RHEL.

While they don't exist on the Bugzilla component list, which is
strange, it does say in the instructions what to do:

https://docs.fedoraproject.org/en-US/epel/epel-package-request/

Comment 10 Richard W.M. Jones 2022-03-01 07:55:26 UTC
The other branches have been created, but I'm still waiting for
the bug requests per comment 9 above.

Comment 11 Chung Chung 2022-03-01 12:56:22 UTC
Sorry, I was out yesterday.  I will take care of those two package today.

Comment 12 Chung Chung 2022-03-01 13:02:32 UTC
By the way, when I tried to do a epel9 build a few days ago with fedpkg mockbuild, I actually got the following missing packagae:

Last metadata expiration check: 0:00:37 ago on Sun Feb 27 19:46:32 2022.
Package make-1:4.3-7.el9.x86_64 is already installed.
No matching package to install: 'ocaml-menhir'
No matching package to install: 'ocaml-num-devel'
No matching package to install: 'ocaml-parmap-devel'
No matching package to install: 'ocaml-pcre-devel'
Not all dependencies satisfied
Error: Some packages could not be found.


And they are not in current epel9 packages, should I also do the same request?
Thanks!

Comment 13 Richard W.M. Jones 2022-03-01 17:07:53 UTC
It's probably better to do:

$ fedpkg build --scratch --srpm

In particular that will show that RHEL buildroot packages like ocaml and
ocaml-dune are also missing from EPEL.  See thread on epel-devel.

https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/thread/FHC3MQZNRT72QL6TPVZCQORYBGSJZMDO/

Comment 14 Chung Chung 2022-03-02 04:08:26 UTC
Here are the bugid for the other two packages:

ocaml-parmap: https://bugzilla.redhat.com/show_bug.cgi?id=2059802
ocaml-graphics: https://bugzilla.redhat.com/show_bug.cgi?id=2059804

Comment 15 Chung 2022-03-10 18:17:56 UTC
Hi Rich, 

  Since we won't have all the ocaml packages until end of this year, I am wondering if you want 
to use the spec file that I have which doesn't require all the ocaml packages to build so we can
provide coccinelle for RHEL9?

Thanks!

Chung

Comment 16 Richard W.M. Jones 2022-03-11 09:34:10 UTC
We don't even have dune so that won't help.  And we cannot bundle
packages because of Fedora policy reasons.

There's nothing much I can suggest at the moment as I'm incredibly
busy with work, but you might want to ask on epel-devel if there's
a sensible way to proceed here.

Comment 17 Richard W.M. Jones 2022-06-20 09:05:06 UTC
*** Bug 2098482 has been marked as a duplicate of this bug. ***

Comment 18 Martin.Oliveira 2023-04-19 18:12:32 UTC
Hi Rich,

I read the epel-devel thread mentioned on comment 13 and in that you mention that on RHEL9.1 it might be possible to build coccinelle, is there any update on this?

Thanks,
Martin

Comment 19 Richard W.M. Jones 2023-04-19 18:23:44 UTC
I don't really know why I'm the assignee on this bug as I'm the Fedora maintainer,
not the EPEL maintainer.  Please ask on epel-devel if someone there can help.


Note You need to log in before you can comment on or make changes to this bug.