Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Jonathon Fernyhough <jonathon.fernyhough@york.ac.uk>
To: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Advising in packages to load new module or reboot
Date: Wed, 9 Aug 2017 00:46:16 +0100	[thread overview]
Message-ID: <58b21d76-af42-b166-06d3-31b8d801ff98@york.ac.uk> (raw)
In-Reply-To: <CAHmME9q50iu1h+Wxi1CGji0MbD2dYtiCyGhPT3cvihsC0MsJNw@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1363 bytes --]

On 09/08/17 00:30, Jason A. Donenfeld wrote:
> For (1) and (2), though, what do you think of the warning I've added
> to Gentoo? That's what I meant by asking for thoughts on "this
> pattern" -- the whole thing with comparing running kernel and
> compiled-for-kernel and comparing loaded-module-version and
> compiled-module-version.
> 

Ah, righty. From my admittedly limited experience that seems fine - for
example, from the Debian/Ubuntu virtualbox-dkms package
(vboxdrv/Makefile, #192):

>  # kernel base directory
>  ifndef KERN_DIR
>   # build for the current kernel, version check
>   KERN_DIR := /lib/modules/$(shell uname -r)/build
>   ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
>    KERN_DIR := /usr/src/linux
>    ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
>     $(error Error: unable to find the sources of your current Linux kernel. \
> 	           Specify KERN_DIR=<directory> and run Make again)
>    endif
>    $(warning Warning: using /usr/src/linux as the source directory of your \
>                       Linux kernel. If this is not correct, specify \
> 		      KERN_DIR=<directory> and run Make again.)
>   endif
>  else
>   ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
>    $(error Error: KERN_DIR does not point to a directory)
>   endif
>  endif


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-08-08 23:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 23:16 Jason A. Donenfeld
2017-08-08 23:27 ` Jonathon Fernyhough
2017-08-08 23:30   ` Jason A. Donenfeld
2017-08-08 23:37     ` Bzzzz
2017-08-08 23:46     ` Jonathon Fernyhough [this message]
2017-08-09 11:16 ` Egbert Verhage
2017-08-09 17:05   ` Daniel Kahn Gillmor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58b21d76-af42-b166-06d3-31b8d801ff98@york.ac.uk \
    --to=jonathon.fernyhough@york.ac.uk \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).