Re: Soft scrolling on framebuffer consoles - with GPM Handling - revised for kernel 6.18.28 (etc.)

Alan Mackenzie <[email protected]> Thu, 14 May 2026 14:02:56 +0000
Newsgroups gmane.linux.gentoo.user
Message-ID <[email protected]>
Hello, Jack.

On Wed, May 13, 2026 at 19:45:58 -0400, Jack wrote:
> On 2026.05.13 10:24, Alan Mackenzie wrote:
> > On Wed, May 13, 2026 at 14:51:03 +1000, Alexis wrote:
> > > Ben Knoble <[email protected]> writes:

> > > > However, using /etc/portage/patches (or w/e the path is; on
> > > > mobile) it should be possible to make use of the patch somewhat
> > > > easy?

> > > You are indeed correct. :-) Here's the wiki page about it:

> > >   https://wiki.gentoo.org/wiki//etc/portage/patches

> > That is not a well written page.  There is no coherent description of
> > how one specifies the version(s) of a package a patch should be
> > applied to.  Just some cryptic meta-specifications and a few vague
> > examples.

> > The text ought to say what ranges of versions can be specified, and
> > how to do so.

> > The text specifically says "version(s)", so presumably there's some
> > syntax for specifying several versions.  But the examples only appear
> > to show one specific version each, or any version at all.

> > I would like to specify versions "6.18.n for n >= 26".  Is this
> > possible?  (I suspect not).  If so, how?  If not, what about "6.18.n
> > for any n"?

> > Is this documented anywhere?

> I don't know that it's documented, but I have a version of your patch
> stored as
> /etc/portage/patches/sys-kernel/=gentoo-sources-6.18*/6.18.18-GPM-NO-MD.20260317.diff
> and it has worked since then for all following 6.18 versions.  I moved
> to 6.19, and now 7.0, before it needed updating to your latest
> version.  I don't remember how I created that directory, but doing ls
> -l shows it in single quotes, so I don't think any fancier quoting is
> actually needed.

Thanks!

I tried renaming the element of the path from gentoo-source-6.18.29 to
'=gentoo-sources-6.18*' (enclosing in single quotes in the mv command
suffices), but it didn't work for me.

It also didn't work with '>=gentoo-sources-6.18.26'.

By "didn't work", I mean in directory
/var/db/repos/gentoo/sys-kernel/gentoo-sources, I typed in the command

    # ebuild gentoo-sources-6.18.29.ebuild clean prepare

, as documented in the /etc/portage/patches wiki page.  This operation
just ignored the "version" patch directory unless it was called
gentoo-sources-6.18.29 without any wildcards.

I even tried '\=gentoo-sources-6.18\*' in case it was insufficiently
quoted for the ebuild executable.  This didn't help either.

Have you any idea what I am doing/failing to do which prevents it working
for me?

> Jack

-- 
Alan Mackenzie (Nuremberg, Germany).