Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657018 - Add links to upstream remotes
Summary: Add links to upstream remotes
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: 2018-05-31 21:59 UTC by Louis Sautier (sbraz)
Modified: 2020-09-09 12:45 UTC (History)
1 user (show)

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


Attachments
Draft implementation (patch.patch,4.31 KB, patch)
2018-07-18 22:49 UTC, Bruno Pinto
Details | Diff
Draft implementation (commits.patch,4.74 KB, patch)
2019-08-09 04:00 UTC, Bruno Pinto
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Sautier (sbraz) gentoo-dev 2018-05-31 21:59:34 UTC
It would be nice to add links to some of the most commonly used remotes like CPAN, GitHub, SourceForge, PyPI…

These would complement the link to the package's homepage.

Here are the number of remote-ids of each type that I counted in the tree:
  13169 cpan-module
   5038 github
   2683 sourceforge
   1613 cpan
   1498 pypi
    201 google-code
    194 bitbucket
    160 launchpad
    104 cpe
     63 sourceforge-jp
     61 rubygems
     53 pear
     29 freshmeat
     19 freecode
      9 gitlab
      2 ctan
      1 gentoo
Comment 1 Bruno Pinto 2018-07-15 21:35:46 UTC
What is the expected solution to this problem? Would it be to parse the existing "SRC_URI" on the ebuild file or would a new keyword be added to ebuilds or to the metadata file?
Comment 2 Louis Sautier (sbraz) gentoo-dev 2018-07-15 23:02:10 UTC
(In reply to Bruno Pinto from comment #1)
> What is the expected solution to this problem? Would it be to parse the
> existing "SRC_URI" on the ebuild file or would a new keyword be added to
> ebuilds or to the metadata file?
I'm not sure what you mean.

This info is already present in the packages' metadata.xml. This bug report is to ask the packages.gentoo.org maintainers to add it to the website.
Comment 3 Bruno Pinto 2018-07-18 22:49:04 UTC
Created attachment 540048 [details, diff]
Draft implementation

I just drafted some ideas to get this done, this basically adds N (number of remote-ids) links to the resources menu using the remote-id type as the name of the link and using the ID as part of the final link.

Suggestions for a final implementation?
Comment 4 Michael 'veremitz' Everitt 2019-07-17 00:26:46 UTC
(In reply to Bruno Pinto from comment #3)
> Created attachment 540048 [details, diff] [details, diff]
> Draft implementation
> 
> I just drafted some ideas to get this done, this basically adds N (number of
> remote-ids) links to the resources menu using the remote-id type as the name
> of the link and using the ID as part of the final link.
> 
> Suggestions for a final implementation?

Hey @bruno - looks like your patch is reversed, can you swap it around and re-submit?! cheers!
Comment 5 Bruno Pinto 2019-08-09 04:00:15 UTC
Created attachment 586284 [details, diff]
Draft implementation

@veremitz updated, sorry for the delayed response!
Comment 6 Larry the Git Cow gentoo-dev 2020-09-09 12:45:43 UTC
The bug has been closed via the following commit(s):

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

commit 527c1e69e674388acf16cefb423f9b8baad84a67
Author:     Max Magorsch <arzano@gentoo.org>
AuthorDate: 2020-09-09 12:41:35 +0000
Commit:     Max Magorsch <arzano@gentoo.org>
CommitDate: 2020-09-09 12:41:35 +0000

    Add links to upstream remotes
    
    Thanks to sbraz for the suggestion.
    
    Closes: https://bugs.gentoo.org/657018
    
    Signed-off-by: Max Magorsch <arzano@gentoo.org>

 pkg/app/handler/packages/utils.go    | 37 ++++++++++++++++++++++++++++++++++++
 pkg/models/package.go                |  6 ++++++
 pkg/portage/repository/package.go    | 21 ++++++++++++++++++++
 web/templates/packages/metadata.tmpl | 20 +++++++++++++++++++
 4 files changed, 84 insertions(+)