GNU bug report logs - #34758
[PATCH 1/4] gnu: Add libmirage.

Previous Next

Package: guix-patches;

Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>

Date: Tue, 5 Mar 2019 17:27:01 UTC

Severity: normal

Tags: patch

Done: Pierre Neidhardt <mail <at> ambrevar.xyz>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34758 in the body.
You can then email your comments to 34758 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Tue, 05 Mar 2019 17:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierre Neidhardt <mail <at> ambrevar.xyz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 05 Mar 2019 17:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: guix-patches <at> gnu.org
Subject: [PATCH 1/4] gnu: Add libmirage.
Date: Tue,  5 Mar 2019 18:26:20 +0100
* gnu/packages/cdrom.scm (libmirage): New variable.
---
 gnu/packages/cdrom.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index cdbe25fe4..846ce705b 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -860,3 +860,31 @@ Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
 blanking CD-RW media, creating ISO-9660 file system images, extracting audio
 CD data, and more.  It's mostly compatible with @code{cdrtools}.")
     (license gpl2+)))
+
+(define-public libmirage
+  (package
+    (name "libmirage")
+    (version "3.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://downloads.sourceforge.net/cdemu/libmirage-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "1ydph33sfxplp4872dp8ghp574jk5d4qr8hqz61qnznq1b11cnbr"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("intltool" ,intltool)))
+    (inputs
+     `(("glib" ,glib)))
+    (arguments
+     ;; No tests.
+     '(#:tests? #f))
+    (home-page "https://cdemu.sourceforge.io/")
+    (synopsis "CD-ROM image (B6T/C2D/CCD/CDI/CIF/CUE/ISO/MDS/MDX/NRG/TOC) access library")
+    (description "libMirage is a CD-ROM image access library.  It is written
+in C and based on GLib.  Its aim is to provide uniform access to the data
+stored in various image formats.")
+    (license gpl2+)))
-- 
2.20.1





Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Tue, 05 Mar 2019 17:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: 34758 <at> debbugs.gnu.org
Subject: [PATCH 2/4] gnu: Add vhba.
Date: Tue,  5 Mar 2019 18:28:51 +0100
* gnu/packages/cdrom.scm (vhba): New variable.
---
 gnu/packages/cdrom.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 846ce705b..67b234e47 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -888,3 +888,31 @@ CD data, and more.  It's mostly compatible with @code{cdrtools}.")
 in C and based on GLib.  Its aim is to provide uniform access to the data
 stored in various image formats.")
     (license gpl2+)))
+
+(define-public vhba-module
+  (package
+    (name "vhba-module")
+    (version "20170610")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://downloads.sourceforge.net/cdemu/vhba-module-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "1v6r0bgx0a65vlh36b1l2965xybngbpga6rp54k4z74xk0zwjw3r"))))
+    (build-system gnu-build-system)
+    (arguments
+     ;; TODO: No tests?
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         ;; TODO: Compress kernel modules?
+         ;; TODO: Build does not work because it needs the Makefile in
+         ;; /lib/modules/$(KERNELRELEASE)/build which we don't ship in Guix.
+         (delete 'configure))))
+    (home-page "https://cdemu.sourceforge.io/")
+    (synopsis "Kernel module that emulates SCSI devices")
+    (description "VHBA module provides a Virtual (SCSI) HBA, which is the link
+between the CDemu userspace daemon and linux kernel.")
+    (license gpl2+)))
-- 
2.20.1





Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Tue, 05 Mar 2019 17:30:03 GMT) Full text and rfc822 format available.

Message #11 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: 34758 <at> debbugs.gnu.org
Subject: [PATCH 4/4] gnu: Add cdemu-client.
Date: Tue,  5 Mar 2019 18:28:53 +0100
* gnu/packages/cdrom.scm (cdemu-client): New variable.
---
 gnu/packages/cdrom.scm | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 48d6f58a2..9fd3b9201 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -945,3 +945,52 @@ between the CDemu userspace daemon and linux kernel.")
     (description "CDemu is a software suite designed to emulate an optical
 drive and disc (including CD-ROMs and DVD-ROMs).")
     (license gpl2+)))
+
+(define-public cdemu-client
+  (package
+    (name "cdemu-client")
+    (version "3.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://downloads.sourceforge.net/cdemu/cdemu-client-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "1zwz987pb2pakfk9kz8a6xa9hq1ip48cn4ryl9z85dik8k2sizm9"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("intltool" ,intltool)))
+    (inputs
+     `(("python" ,python)
+       ("python-pygobject" ,python-pygobject)
+       ("cdemu-daemon" ,cdemu-daemon)))
+    (arguments
+     ;; No tests.
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'patch-shebang
+           (lambda* (#:key outputs #:allow-other-keys)
+             (patch-shebang (string-append (assoc-ref outputs "out")
+                                           "/bin/cdemu"))
+             #t))
+         (add-after 'patch-shebang 'wrap-program
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((prog (string-append (assoc-ref outputs "out")
+                                        "/bin/cdemu")))
+               (wrap-program prog
+                 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
+                 ;; `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
+                 )
+               #t))))))
+    (home-page "https://cdemu.sourceforge.io/")
+    (synopsis "Command-line client for controlling cdemu-daemon")
+    (description "CDEmu client is a simple command-line client for controlling
+CDEmu daemon.
+
+It provides a way to perform the key tasks related to controlling the CDEmu
+daemon, such as loading and unloading devices, displaying devices' status and
+retrieving/setting devices' debug masks.")
+    (license gpl2+)))
-- 
2.20.1





Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Tue, 05 Mar 2019 17:30:03 GMT) Full text and rfc822 format available.

Message #14 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: 34758 <at> debbugs.gnu.org
Subject: [PATCH 3/4] gnu: Add cdemu-daemon.
Date: Tue,  5 Mar 2019 18:28:52 +0100
* gnu/packages/cdrom.scm (cdemu-daemon): New variable.
---
 gnu/packages/cdrom.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 67b234e47..48d6f58a2 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -916,3 +916,32 @@ stored in various image formats.")
     (description "VHBA module provides a Virtual (SCSI) HBA, which is the link
 between the CDemu userspace daemon and linux kernel.")
     (license gpl2+)))
+
+(define-public cdemu-daemon
+  (package
+    (name "cdemu-daemon")
+    (version "3.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://downloads.sourceforge.net/cdemu/cdemu-daemon/cdemu-daemon-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "171qqcziqgf6dd9n8xs9hc71krhjiyx9qr767s8znidyjj88hbc4"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("intltool" ,intltool)))
+    (inputs
+     `(("libmirage" ,libmirage)
+       ("glib" ,glib)
+       ("ao" ,ao)))
+    (arguments
+     ;; No tests.
+     '(#:tests? #f))
+    (home-page "https://cdemu.sourceforge.io/")
+    (synopsis "CD/DVD-ROM device emulator")
+    (description "CDemu is a software suite designed to emulate an optical
+drive and disc (including CD-ROMs and DVD-ROMs).")
+    (license gpl2+)))
-- 
2.20.1





Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Tue, 05 Mar 2019 17:45:02 GMT) Full text and rfc822 format available.

Message #17 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: 34758 <at> debbugs.gnu.org
Subject: Re: bug#34758: Acknowledgement ([PATCH 1/4] gnu: Add libmirage.)
Date: Tue, 05 Mar 2019 18:44:25 +0100
[Message part 1 (text/plain, inline)]
libmirage, cdemu-daemon and cdemu-client seems to be fine.

The VHBA kernel module is not package properly and this a blocker for
cdemu-daemon.

1. This raises the more general issue of building kernel modules on Guix.

For the record, here is the VHBA makefile:

--8<---------------cut here---------------start------------->8---
VHBA_VERSION := 20170610

KERNELRELEASE ?= $(shell uname -r)
KDIR ?= /lib/modules/$(KERNELRELEASE)/build
PWD ?= $(shell pwd)

obj-m := vhba.o
ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror

default: modules
install: modules_install

modules modules_install clean:
	$(MAKE) -C $(KDIR) M=$(PWD) $@
--8<---------------cut here---------------end--------------->8---

As you can see, it relies on the Makefile (and probably a bunch of other
files) in /lib/modules/$(KERNELRELEASE)/build.

In our linux-libre package, "build" is a broken symlink, e.g. to
/tmp/guix-build-linux-libre-4.20.12.../linux-4.20.12.

Shouldn't we include this folder in the linux-libre package?  Without
it, I can't see how to build kernel modules.

Once we have this, we will be able to build vhba-module.



2. Next question: how do we load this module?  In `operating-system' we
have `initrd-modules', but in this case vhba is probably not needed in
the initrd.  What we really want, I think, is a union of kernel modules
in say

/run/booted-system/kernel/lib/modules/4.20.7/

Makes sense?

Thoughts?

--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Fri, 22 Mar 2019 21:14:01 GMT) Full text and rfc822 format available.

Message #20 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 3/4] gnu: Add cdemu-daemon.
Date: Fri, 22 Mar 2019 22:13:13 +0100
Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> * gnu/packages/cdrom.scm (cdemu-daemon): New variable.

LGTM!




Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Fri, 22 Mar 2019 21:14:04 GMT) Full text and rfc822 format available.

Message #23 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 2/4] gnu: Add vhba.
Date: Fri, 22 Mar 2019 22:12:50 +0100
Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> * gnu/packages/cdrom.scm (vhba): New variable.

[...]

> +       (modify-phases %standard-phases
> +         ;; TODO: Compress kernel modules?
> +         ;; TODO: Build does not work because it needs the Makefile in
> +         ;; /lib/modules/$(KERNELRELEASE)/build which we don't ship in Guix.
> +         (delete 'configure))))

So it doesn’t build, right?  In that case I’d rather not add it.  :-)

It’s true that /build is a dangling link:

--8<---------------cut here---------------start------------->8---
$ readlink $(guix build linux-libre)/lib/modules/5.0.2-gnu/build
/tmp/guix-build-linux-libre-5.0.2.drv-0/linux-5.0.2
--8<---------------cut here---------------end--------------->8---

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Fri, 22 Mar 2019 21:15:02 GMT) Full text and rfc822 format available.

Message #26 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 4/4] gnu: Add cdemu-client.
Date: Fri, 22 Mar 2019 22:14:07 +0100
Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> * gnu/packages/cdrom.scm (cdemu-client): New variable.

[...]

> +         (add-after 'patch-shebang 'wrap-program
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (let ((prog (string-append (assoc-ref outputs "out")
> +                                        "/bin/cdemu")))
> +               (wrap-program prog
> +                 `("PYTHONPATH" = (,(getenv "PYTHONPATH")))
> +                 ;; `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
> +                 )

What’s the story with GI_TYPELIB_PATH?

Otherwise LGTM, thanks!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Fri, 22 Mar 2019 21:15:02 GMT) Full text and rfc822 format available.

Message #29 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 1/4] gnu: Add libmirage.
Date: Fri, 22 Mar 2019 22:10:41 +0100
Hello Pierre,

Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> * gnu/packages/cdrom.scm (libmirage): New variable.

[...]

> +              (uri (string-append
> +                    "https://downloads.sourceforge.net/cdemu/libmirage-"

Please use mirror://sourceforge instead (in the other patches as well).

> +    (home-page "https://cdemu.sourceforge.io/")
> +    (synopsis "CD-ROM image (B6T/C2D/CCD/CDI/CIF/CUE/ISO/MDS/MDX/NRG/TOC) access library")

I’d remove the list that’s in parentheses here.

Otherwise LGTM, thanks!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Fri, 22 Mar 2019 21:26:02 GMT) Full text and rfc822 format available.

Message #32 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 2/4] gnu: Add vhba.
Date: Fri, 22 Mar 2019 22:24:56 +0100
[Message part 1 (text/plain, inline)]
I should have explained a little bit more: the whole patchset makes no
sense (beside libmirage) without this kernel module.  CDEmu needs it or
it won't run.

This raises a general, important question: how do we build kernel
modules on guix?  At the moment, it seems that it's only possible by
re-building the kernel.

I suggest we add a "build" output to the kernel  that can be used as an
input to build kernel modules.  Maybe I should should an email to
guix-devel to ask for more opinions / advice. 

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Fri, 22 Mar 2019 21:26:03 GMT) Full text and rfc822 format available.

Message #35 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 4/4] gnu: Add cdemu-client.
Date: Fri, 22 Mar 2019 22:25:31 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> What’s the story with GI_TYPELIB_PATH?

Hasty copy-pasting! ;)

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Fri, 22 Mar 2019 21:28:02 GMT) Full text and rfc822 format available.

Message #38 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 2/4] gnu: Add vhba.
Date: Fri, 22 Mar 2019 22:27:11 +0100
[Message part 1 (text/plain, inline)]
Also see my other email from Tue, 05 Mar 2019 18:44:25 +0100 in this thread.

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Sat, 23 Mar 2019 14:53:02 GMT) Full text and rfc822 format available.

Message #41 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 2/4] gnu: Add vhba.
Date: Sat, 23 Mar 2019 15:52:03 +0100
Hello,

Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> I should have explained a little bit more: the whole patchset makes no
> sense (beside libmirage) without this kernel module.  CDEmu needs it or
> it won't run.

Oh I see, I didn’t know that.

> This raises a general, important question: how do we build kernel
> modules on guix?  At the moment, it seems that it's only possible by
> re-building the kernel.

… or maybe just unpacking the kernel source so you have the makefile
snippet around?  Perhaps that’s enough?

I’m generally dubious about out-of-tree modules.  Given the way kernel
development works, we’re often talking about modules of poor quality, or
proprietary modules.  Do you know the reason this one is not in the main
tree?

> I suggest we add a "build" output to the kernel  that can be used as an
> input to build kernel modules.  Maybe I should should an email to
> guix-devel to ask for more opinions / advice. 

Yes, sounds like a good idea.

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Mon, 25 Mar 2019 08:36:02 GMT) Full text and rfc822 format available.

Message #44 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 2/4] gnu: Add vhba.
Date: Mon, 25 Mar 2019 09:35:34 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

>> This raises a general, important question: how do we build kernel
>> modules on guix?  At the moment, it seems that it's only possible by
>> re-building the kernel.
>
> … or maybe just unpacking the kernel source so you have the makefile
> snippet around?  Perhaps that’s enough?

Nope, because we need the "build" folder which is only available after
building the kernel.  Re-building the kernel just to build a module
sounds like a waste of time :p

> I’m generally dubious about out-of-tree modules.  Given the way kernel
> development works, we’re often talking about modules of poor quality, or
> proprietary modules.  Do you know the reason this one is not in the main
> tree?

I don't.  I'll investigate a bit.

Anyways, I think it's nice as a _free software distribution_ to make it
accessible to the user to build custom modules.

>> I suggest we add a "build" output to the kernel  that can be used as an
>> input to build kernel modules.  Maybe I should should an email to
>> guix-devel to ask for more opinions / advice. 
>
> Yes, sounds like a good idea.

Will do!

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#34758; Package guix-patches. (Mon, 25 Mar 2019 21:11:01 GMT) Full text and rfc822 format available.

Message #47 received at 34758 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34758 <at> debbugs.gnu.org
Subject: Re: [bug#34758] [PATCH 2/4] gnu: Add vhba.
Date: Mon, 25 Mar 2019 22:10:03 +0100
Hi,

Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>>> This raises a general, important question: how do we build kernel
>>> modules on guix?  At the moment, it seems that it's only possible by
>>> re-building the kernel.
>>
>> … or maybe just unpacking the kernel source so you have the makefile
>> snippet around?  Perhaps that’s enough?
>
> Nope, because we need the "build" folder which is only available after
> building the kernel.  Re-building the kernel just to build a module
> sounds like a waste of time :p

I wasn’t suggesting a kernel rebuild.  I thought that perhaps it’s
enough to use the makefiles and build machinery directly from the kernel
source tree, without rebuilding the kernel itself.  Dunno if that’s possible.

>> I’m generally dubious about out-of-tree modules.  Given the way kernel
>> development works, we’re often talking about modules of poor quality, or
>> proprietary modules.  Do you know the reason this one is not in the main
>> tree?
>
> I don't.  I'll investigate a bit.
>
> Anyways, I think it's nice as a _free software distribution_ to make it
> accessible to the user to build custom modules.

I agree, no argument here.  :-)

Thanks,
Ludo’.




bug closed, send any further explanations to 34758 <at> debbugs.gnu.org and Pierre Neidhardt <mail <at> ambrevar.xyz> Request was from Pierre Neidhardt <mail <at> ambrevar.xyz> to control <at> debbugs.gnu.org. (Sun, 14 Apr 2019 17:03:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 13 May 2019 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 347 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.