Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] Would such a patch be welcome in this ebuild?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
saturnalia0
Apprentice
Apprentice
Posts: 172
Joined: Thu Oct 13, 2016 3:09 am

[SOLVED] Would such a patch be welcome in this ebuild?

  • Quote

Post by saturnalia0 » Wed Aug 07, 2024 5:50 pm

app-misc/ranger is maintained upstream, but the release cycle is very slow (last release was in 2019), see discussion here https://github.com/ranger/ranger/issues/2702

There are several patches upstream already merged, but not yet released, which affect Gentoo users. For example https://github.com/ranger/ranger/commit ... eb7bc82091

The ebuild simply fetches the tgz from upstream https://gitweb.gentoo.org/repo/gentoo.g ... -r1.ebuild

The aforementioned diff is easy enough to apply

Code: Select all

$ git checkout v1.9.3
Previous HEAD position was bd9b37fa properly decode file:// urls given to ranger as argument (fixes #2900)
HEAD is now at 6045dc10 Tax loss harvesting release, nothing to see here
$ git cherry-pick 642d594b8328880d73d151852e4e41e7675ded6c
Auto-merging ranger/gui/color.py
[detached HEAD 6901b033] gui.color: Change dummy key
 Author: toonn <toonn@toonn.io>
 Date: Tue Mar 7 17:11:03 2023 +0100
 1 file changed, 1 insertion(+), 1 deletion(-)
$ git cherry-pick 82eef55b1664a66c774df969673435eb7bc82091
Auto-merging ranger/gui/color.py
[detached HEAD 9262c992] color: Catch Color number is greater than COLORS-1
 Author: toonn <toonn@toonn.io>
 Date: Tue Mar 7 17:27:59 2023 +0100
 1 file changed, 7 insertions(+)
This fixes the issue I'm having (crashes when previewing a JSON file).

Would that patch be something welcome in the ebuild, or is it generally frowned upon having such manual patches in ebuilds, relying on upstream release instead?
Last edited by saturnalia0 on Wed Aug 07, 2024 11:54 pm, edited 1 time in total.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Aug 07, 2024 6:05 pm

I do not speak for the Gentoo maintainer for this project. However, my observation has been that most maintainers would prefer that you nudge upstream to issue a release with the relevant fixes. Failing that, there is plenty of precedent for an ebuild that applies a backported patch from upstream's repository.
Top
grknight
Retired Dev
Retired Dev
Posts: 2556
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Wed Aug 07, 2024 6:08 pm

It is not uncommon for an ebuild maintainer to import an important commit which has a fix that would be beneficial to a user.
This is often not new features and should be tiny in nature.

Filing bugs is the best way with an explanation of why a patch should be included in a pervious release
Top
Ionen
Developer
Developer
User avatar
Posts: 3012
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Wed Aug 07, 2024 11:28 pm

Upstream really needs to do a new release, release version is also broken with python3.13 and been hoping won't have to figure out what needs backporting by the time of the python3.13 switch next year. I did try to ping them about this before but got no response. Would also rather not do a snapshot given haven't kept up with the state of things.

That aside, while I wouldn't want to backport new features or unimportant fixes, a small backport to fix an actual crash is always fair.

Normally this needs a bug filed to get maintainer attention, but I just happened to see this thread and I maintain ranger's ebuild, so I went ahead and did (hopefully haven't missed anything):
https://gitweb.gentoo.org/repo/gentoo.g ... f46138dbd6
Top
saturnalia0
Apprentice
Apprentice
Posts: 172
Joined: Thu Oct 13, 2016 3:09 am

  • Quote

Post by saturnalia0 » Wed Aug 07, 2024 11:54 pm

Thank you very much.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic