Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946666 - Instead of 404, provide a redirect to moved packages
Summary: Instead of 404, provide a redirect to moved packages
Status: UNCONFIRMED
Alias: None
Product: Websites
Classification: Unclassified
Component: Packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Packages Website
URL: https://packages.gentoo.org/packages/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-19 10:04 UTC by Sv. Lockal
Modified: 2024-12-19 10:04 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 Sv. Lockal 2024-12-19 10:04:50 UTC
Package moves break all external links (Gentoo Wiki, forums, reddits, google, etc.) are sometimes are untrivial. Example from https://github.com/gentoo/gentoo/blob/master/profiles/updates/4Q-2024:

  move dev-python/clang-python dev-python/clang
  move sys-libs/libomp llvm-runtimes/openmp
  move dev-ml/llvm-ocaml dev-ml/llvm

Instead of returning 404 on https://packages.gentoo.org/packages/sys-libs/libomp, could you parse profiles/updates files and return 301 Moved Permanently to a new package? Thanks!

Reproducible: Always

Steps to Reproduce:
1. Move a package
2. Search for package name in Google
3. Open the first link
Actual Results:  
404

Expected Results:  
301 -> 200