Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718122 - net-im/slack should be called net-im/slack-bin
Summary: net-im/slack should be called net-im/slack-bin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Vladimir Pavljuchenkov (SpiderX)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-19 08:14 UTC by Simon
Modified: 2020-10-17 14:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2020-04-19 08:14:06 UTC
I can't really find any relevant changes but net-im/slack-bin has been renamed to net-im/slack in this commit https://github.com/gentoo/gentoo/commit/4f24389a363ac207d3572d67b9d1af6b7e279428
I'm not sure why this was done and what was discussed and after searching I haven't been able to find a recent policy change either, but why are -bin postfixes removed from binary packages?
It seems to me that binary packages were always postfixed with -bin so the package should be called net-im/slack-bin.

How would one otherwise know a package is a binary?
If I'm searching for a package in the gentoo tree and it has no -bin postfix I'm assuming it's a source based package, which for a source based distro seems rather obvious. So seeing a net-im/slack package tells me it's a source based package which seems odd given that it's a proprietary application. Checking the ebuild indeed confirms it's a binary package.

Reproducible: Always
Comment 1 Ulrich Müller gentoo-dev 2020-04-19 11:01:18 UTC
(In reply to Simon from comment #0)
> I can't really find any relevant changes but net-im/slack-bin has been
> renamed to net-im/slack in this commit
> https://github.com/gentoo/gentoo/commit/
> 4f24389a363ac207d3572d67b9d1af6b7e279428
> I'm not sure why this was done and what was discussed and after searching I
> haven't been able to find a recent policy change either, but why are -bin
> postfixes removed from binary packages?
> It seems to me that binary packages were always postfixed with -bin so the
> package should be called net-im/slack-bin.

Best current practice is to use the upstream name, unless it would be ambiguous between a source-based and a binary package (so for example, Google Chrome is www-client/google-chrome, not www-client/google-chrome-bin):

https://devmanual.gentoo.org/ebuild-writing/file-format/index.html#binary-packages

This policy was clarified in a discussion in the gentoo-dev mailing list in 2016. There are still some older packages that don't follow it.

> How would one otherwise know a package is a binary?
> If I'm searching for a package in the gentoo tree and it has no -bin postfix
> I'm assuming it's a source based package, which for a source based distro
> seems rather obvious. So seeing a net-im/slack package tells me it's a
> source based package which seems odd given that it's a proprietary
> application. Checking the ebuild indeed confirms it's a binary package.

The package name is really a bad place to store such meta information. If at all, it should go to metadata.xml. As a matter of fact, there was a GLEP pre-draft for this, but it never made it to the draft stage: https://wiki.gentoo.org/wiki/User:Antarus/Package_Tags
Comment 2 Vladimir Pavljuchenkov (SpiderX) 2020-05-02 19:19:28 UTC
No action items in this bug.
The package name has been adjusted to current requirements.
Comment 3 Simon 2020-08-25 06:52:26 UTC
Can this change be reconsidered?

Since there is nothing in place yet to store information on whether a package is a binary package or not, removing the -bin postfix is removing functionality/useful information without any way to get this information back.

Assuming another way than the name of a package is to be used for showing a package is a binary package removing the -bin postfixes should only be done when this new way of determining whether a package is a binary is implemented.
Comment 4 Ulrich Müller gentoo-dev 2020-08-25 07:07:33 UTC
About the policy, see comment #1.

Also, once a package has been moved, it cannot be moved back:
https://projects.gentoo.org/pms/7/pms.html#x1-360004.4.4
"Any name that has appeared as the origin of a move must not be reused in the future."
Comment 5 Simon 2020-08-25 10:50:45 UTC
> Also, once a package has been moved, it cannot be moved back:
https://projects.gentoo.org/pms/7/pms.html#x1-360004.4.4
"Any name that has appeared as the origin of a move must not be reused in the future."

O, wow, I wasn't aware of that. That's even more reason not to rename any -bin packages until a working alternative solution for identifying them is in place then, because there's no way to go back.