Re: First experience with building a module: newbie queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2019-07-29, Ankur Sinha <sanjay.ankur@xxxxxxxxx> wrote:
> In the meantime, this was filed:
> https://bugzilla.redhat.com/show_bug.cgi?id=3D1732531
>
> "On Fedora Rawhide, the nest module does not have the default profile(s)
> set. Therefore, DNF will not install the module using `dnf module
> install librealsense`. It will only enable it. Since modules should be
> able to install using the aforementioned command, I consider this a
> bug." (sic)
>
The bug report is about "default profiles". Not about "default streams".

Each module stream can have a list of profiles. A profile is identified
by a name and contains a (possible emty) set of packages that are from
the stream.

E.g. mariadb:10.4
<https://src.fedoraproject.org/modules/mariadb/raw/10.4/f/mariadb.yaml>
defines four profiles, one of them is called "server" and consists of
one package ("mariadb-server").

A user can use "dnf module install mariadb:10.4/server" command to
install "server" profile of "mariadb:10.4" stream. The command will
enable "mariadb:10.4" stream and install "mariadb-server" package.

It is also possible to specify what profile of given stream is a default
one and then a user can ommit the profile from the DNF command and the
default one will be installed. E.g. here
<https://pagure.io/releng/fedora-module-defaults/raw/master/f/mariadb.yaml>
is a definition of mariadb default profiles. You can see that every of
the streams has a the same default profile called "server". Thereofre
"dnf module install mariadb:10.4" is equivalent to "dnf module install
mariadb:10.4/server".

Having a profile is an optional feature according to a modulemd
specification
<https://github.com/fedora-modularity/libmodulemd/blob/master/spec.v2.yaml#L152>
as will as Fedora packaging guide lines
<https://docs.fedoraproject.org/en-US/modularity/making-modules/packaging-guidelines/#_profiles>.
Your nest:2.18.0 stream does not have any. If you have no profiles,
obviously you cannot set a default one.

Having the profiles and having a default one is recommended, but not
required. If you think it's a good idea for your module, you can do
that (add a profile into your nest.yaml modulemd file, build the module,
and submit a pull-requst that adds a nest.yaml file similar to the
mariadb.yml into
https://pagure.io/releng/fedora-module-defaults/tree/master). Otherwise
I would closed the bug report as not-a-bug.

-- Petr
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux