Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [ISSUE] `lttng-modules-dkms` fails to build
Date: Sun, 30 Jun 2019 01:29:30 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12751@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2136 bytes --]

New issue by ranweiler on void-packages repository

https://github.com/void-linux/void-packages/issues/12751
Description: ### System

* xuname:  
```
Void 4.19.56_1 x86_64 GenuineIntel notuptodate rrrdFFFF
```
* package:  
`lttng-modules-dkms-2.10.9_1`

### Expected behavior
When installing the package, the kernel modules build without error for installed kernels with headers.

### Actual behavior

On installation, the kernel modules fail to build. The xbps console output includes:
```
Building DKMS module 'lttng-modules-2.10.9' for kernel-4.19.56_1... FAILED!
DKMS module 'lttng-modules-2.10.9' failed to build, please check /var/lib/dkms
for errors in the log file.
[...]
lttng-modules-dkms-2.10.9_1: installed successfully.
```

If we inspect the build log, we see:
```
$ cat /var/lib/dkms/lttng-modules/2.10.9/build/make.log
DKMS make.log for lttng-modules-2.10.9 for kernel 4.19.56_1 (x86_64)
Sat 29 Jun 2019 04:14:34 PM PDT
make: Entering directory '/usr/src/kernel-headers-4.19.56_1'
scripts/Makefile.build:45: /var/lib/dkms/lttng-modules/2.10.0/build/Makefile: No such file or directory
make[1]: *** No rule to make target '/var/lib/dkms/lttng-modules/2.10.0/build/Makefile'.  Stop.
make: *** [Makefile:1517: _module_/var/lib/dkms/lttng-modules/2.10.0/build] Error 2
make: Leaving directory '/usr/src/kernel-headers-4.19.56_1'
```

### Steps to reproduce the behavior
Attempt to install the package via `xbps-install -S lttng-modules-dkms`.

### Comments
The problem appears to be the [first line of the `dkms.conf` file](https://github.com/void-linux/void-packages/blob/master/srcpkgs/lttng-modules-dkms/files/dkms.conf#L1). It doesn't match the actual package/source version, so it ends up referring to a (in most cases) nonexistent directory.

I created a new (rev-bumped) package locally with that srcpkg file edited to read `PACKAGE_VERSION=2.10.9`. The module then builds as expected, and I was able to load it and trace kernel events.

I can open a PR with that narrow (manual) fix, but maybe there's a better way, that will ensure the file is auto-updated in the future.

             reply	other threads:[~2019-06-29 23:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-29 23:29 voidlinux-github [this message]
2019-06-29 23:35 ` voidlinux-github
2019-06-30  1:43 ` voidlinux-github
2019-06-30 12:17 ` [ISSUE] [CLOSED] " voidlinux-github

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12751@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /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).