DevHeads.net

Periods in compat package names

From the "Guidelines for Naming Fedora Packages" the example in the "Multiple packages with the same base name" section (<a href="https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidelines#Multiple_packages_with_the_same_base_name" title="https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidelines#Multiple_packages_with_the_same_base_name">https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuide...</a>) seems to contradict the "Separators" section (<a href="https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidelines#Separators" title="https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidelines#Separators">https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuide...</a>)

The example describes naming a package as python-sqlalchemy0.5 to show how to make a compatibility package, but the separators section says:
Is the period inside the appended version number not considered a delimiter for these purposes?

-Joseph

Comments

Re: Periods in compat package names

By Yaakov Selkowitz at 01/09/2019 - 13:16

On Wed, 2019-01-09 at 18:07 +0000, <a href="mailto: ... at penguincomputing dot com"> ... at penguincomputing dot com</a> wrote:
The Separators section says explicitly:

"Version numbers used in compat libraries do not need to omit the dot
'.' or change it into a dash"

Therefore, this is an exception and not a contradiction.

Re: Periods in compat package names

By jdunn at 01/09/2019 - 13:26

Somehow I completely missed that next line. Thank you for pointing it out. The docs are correct. Sorry for the noise.

Re: Periods in compat package names

By =?UTF-8?Q?Bj=c3... at 01/09/2019 - 13:15

Am Mittwoch, den 09.01.2019, 18:07 +0000 schrieb
... at penguincomputing dot com:

From what I know, and what is pratically done, one would name the
compatibility package "python-sqlalchemy05".

I assume the period slipped in the package name when preparing some
copy-pasta. :P

Anyways, this should be changed, so I'm adding the fedora-packaging ml.

Björn

Re: Re: Periods in compat package names

By Jason L Tibbitts III at 01/09/2019 - 14:03

Please see the relevant guidelines:

<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_multiple_packages_with_the_same_base_name" title="https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_multiple_packages_with_the_same_base_name">https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_multi...</a>

That package is the example used on that page. The name which should be
used is "python-sqlalchemy0.5".

The original message quoted the section about not using underscores,
plusses or periods as delimiters. But this isn't a delimiter. The
delimiter is the dash between "python" and "sqlalchemy" or between
"glibc" and "devel" in "glibc-devel".

No, not at all. The guidelines use that consistently. Though if you do
spot something you believe is a typo or other error in the guidelines,
please do open a ticket at <a href="https://pagure.io/packaging-committee/" title="https://pagure.io/packaging-committee/">https://pagure.io/packaging-committee/</a>. You
can even send us a pull request.

- J<