Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903987 - Include warning/notice when a package matches an entry in package.deprecated
Summary: Include warning/notice when a package matches an entry in package.deprecated
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Packages Website
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-07 18:57 UTC by Sam James
Modified: 2023-04-10 06:38 UTC (History)
0 users

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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-07 18:57:14 UTC
Right now, we have a warning in red for when a package on packages.gentoo.org matches an entry in package.mask to say that it may be removed soon.

We may want to do the same for package.deprecated. For example, when going to https://packages.gentoo.org/packages/dev-ruby/sass-listen, I would maybe be shown the package.deprecated message from earlier today I added:
"""
# Sam James <sam@gentoo.org> (2023-04-07)
# No longer supported upstream, fork of dev-ruby/listen.
# Please port your package to use dev-ruby/listen instead.
dev-ruby/sass-listen
"""
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-04-08 07:45:35 UTC
Deployed in packagestest.gentoo.org. I think in around 2 hours it will rebuild the packages.deprecated index and start showing it.
Comment 2 Larry the Git Cow gentoo-dev 2023-04-08 15:28:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/sites/soko.git/commit/?id=a46fe499eaee019e46834f9c327e4a3602f05aa3

commit a46fe499eaee019e46834f9c327e4a3602f05aa3
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-04-08 07:43:18 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-04-08 07:43:18 +0000

    app/packages: show deprecation warning
    
    Closes: https://bugs.gentoo.org/903987
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 pkg/app/handler/packages/show.go                |  1 +
 pkg/app/handler/packages/utils.go               | 22 ++++++++++++++++++
 pkg/models/version.go                           |  1 +
 web/templates/packages/components/overview.tmpl | 31 +++++++++++++++++++++++++
 4 files changed, 55 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/sites/soko.git/commit/?id=3f491e2eea87dfd70119e6c55b0bfe6d1fe60d70

commit 3f491e2eea87dfd70119e6c55b0bfe6d1fe60d70
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-04-08 07:14:34 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-04-08 07:17:39 +0000

    update/repo: add package.deprecated parser & collector
    
    Bug: https://bugs.gentoo.org/903987
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 pkg/database/connection.go           |   2 +
 pkg/models/deprecated.go             |  19 +++++
 pkg/portage/repository/deprecated.go | 145 +++++++++++++++++++++++++++++++++++
 pkg/portage/update.go                |   4 +-
 4 files changed, 169 insertions(+), 1 deletion(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-10 06:38:15 UTC
Thanks Arthur, that looks brilliant!