To break a circular dep I added a %bcond bootstrap to this package:

  
https://src.fedoraproject.org/rpms/ocaml-yojson/c/16eec5b8b7ced5095199cad09ea4529cbfb81c80?branch=rawhide

It got built (in the following commit) with the %dist tag containing
'fc44-bootstrap', which I didn't expect, thus the package name is:

  ocaml-yojson-3.0.0-4.fc44~bootstrap

You can see the successful build here:

  https://koji.fedoraproject.org/koji/buildinfo?buildID=2843332

Anyway the strange dist tag seems to cause issues with tooling.  For
example:

  $ koji wait-repo f44-build-side-120774 --request 
--build=ocaml-yojson-3.0.0-4.fc44-bootstrap
  No ocaml-yojson-3.0.0 builds in tag f44-build-side-120774

Notice the name field is being parsed as "ocaml-yojson-3.0.0".

The koji code uses:

  def parse_NVR(nvr):
    """split N-V-R into dictionary of data"""
    ret = {}
    p2 = nvr.rfind("-", 0)

so I guess using '-' in a dist tag isn't going to work.

I think this comes from the following in usr/lib/rpm/macros.d/macros.dist:

  %dist                %{!?distprefix0:%{?distprefix}}%{expand:%{lua:for 
i=0,9999 do print("%{?distprefix" .. i .."}") 
end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}

So is something wrong here?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit

-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to