backports.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] backports: no longer support kernels < 3.10
@ 2017-10-13  9:26 Johannes Berg
  2017-10-13  9:40 ` Arend van Spriel
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2017-10-13  9:26 UTC (permalink / raw)
  To: backports; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

Since CRYPTO_CMAC was introduced in 3.10, and mac80211
depends on it, we basically get nothing out of it anyway.

I'm not removing the support code (yet) since it actually
compiles, and perhaps somebody has a need for (certain)
kernel versions lower than 3.10.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 README                         |  2 +-
 devel/backports-update-manager | 10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/README b/README
index 8d544eb4870e..2b494c8c7238 100644
--- a/README
+++ b/README
@@ -8,7 +8,7 @@ down to older kernels. It currently backports the following subsystems:
   * WWAN
 
 This package provides the latest Linux kernel subsystem enhancements
-for kernels 3.0 and above.
+for kernels 3.10 and above.
 
 # Documentation
 
diff --git a/devel/backports-update-manager b/devel/backports-update-manager
index 64df29bcea26..dc9697253e84 100755
--- a/devel/backports-update-manager
+++ b/devel/backports-update-manager
@@ -18,6 +18,8 @@ SPACE_PER_KERNEL=101
 # ~13 MiB of both deb files
 SPACE_PER_KERNEL_DEB=13
 
+MIN_VERSION = (3, 10)
+
 GIT_TREES = [
     "git://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git",
     "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",
@@ -52,7 +54,7 @@ class backport_kernel_updater:
 
     @classmethod
     def _get_ubuntu_ppa_mainline_kernels(cls):
-        base = 'http://kernel.ubuntu.com/~kernel-ppa/mainline/'
+        base = KPATH
         html = urlopen(base).read()
         builds = re.findall(b'href="([-v.0-9a-z]*)/"', html)
         builds = [b.decode('ascii') for b in builds]
@@ -82,6 +84,12 @@ class backport_kernel_updater:
                 while len(sver[0]) < n:
                     sver[0].append(0)
 
+        filtered = {}
+        for subvers in last:
+            if tuple(make_version_tuple(subvers[1:])) >= MIN_VERSION:
+                filtered[subvers] = last[subvers]
+        last = filtered
+
         result = []
         for subvers in last.values():
             subvers.sort(reverse=True)
-- 
2.14.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] backports: no longer support kernels < 3.10
  2017-10-13  9:26 [PATCH] backports: no longer support kernels < 3.10 Johannes Berg
@ 2017-10-13  9:40 ` Arend van Spriel
  2017-10-13  9:41   ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Arend van Spriel @ 2017-10-13  9:40 UTC (permalink / raw)
  To: Johannes Berg, backports; +Cc: Johannes Berg

On 13-10-17 11:26, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> Since CRYPTO_CMAC was introduced in 3.10, and mac80211
> depends on it, we basically get nothing out of it anyway.
> 
> I'm not removing the support code (yet) since it actually
> compiles, and perhaps somebody has a need for (certain)
> kernel versions lower than 3.10.
> 
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> ---
>   README                         |  2 +-
>   devel/backports-update-manager | 10 +++++++++-
>   2 files changed, 10 insertions(+), 2 deletions(-)
> 

[ trimming ]

> diff --git a/devel/backports-update-manager b/devel/backports-update-manager
> index 64df29bcea26..dc9697253e84 100755
> --- a/devel/backports-update-manager
> +++ b/devel/backports-update-manager

[ more trimming ]

> @@ -52,7 +54,7 @@ class backport_kernel_updater:
>   
>       @classmethod
>       def _get_ubuntu_ppa_mainline_kernels(cls):
> -        base = 'http://kernel.ubuntu.com/~kernel-ppa/mainline/'
> +        base = KPATH

I guess this is not directly related to this change, right?

Regards,
Arend
--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] backports: no longer support kernels < 3.10
  2017-10-13  9:40 ` Arend van Spriel
@ 2017-10-13  9:41   ` Johannes Berg
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2017-10-13  9:41 UTC (permalink / raw)
  To: Arend van Spriel, backports; +Cc: Johannes Berg

On Fri, 2017-10-13 at 11:40 +0200, Arend van Spriel wrote:
> 
> > @@ -52,7 +54,7 @@ class backport_kernel_updater:
> >   
> >       @classmethod
> >       def _get_ubuntu_ppa_mainline_kernels(cls):
> > -        base = 'http://kernel.ubuntu.com/~kernel-ppa/mainline/'
> > +        base = KPATH
> 
> I guess this is not directly related to this change, right?

Oh, oops, yeah. I just thought I wanted to use the existing variable,
I'll split it out to another patch.

johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-13  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-13  9:26 [PATCH] backports: no longer support kernels < 3.10 Johannes Berg
2017-10-13  9:40 ` Arend van Spriel
2017-10-13  9:41   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).