public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Install dkms: which package
@ 2016-07-15 17:20 Facundo Curti
  2016-07-15 21:54 ` Alarig Le Lay
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Facundo Curti @ 2016-07-15 17:20 UTC (permalink / raw
  To: gentoo-user

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

Hi there.

I need dkms to compile a driver. (aziokdb
https://bitbucket.org/Swoogan/aziokbd).

Any way, I cant find the package to do that :S

I tryed with sys-kernel/dkms and @module-rebuild, none exsists

Someone can tell me what package I need to install? Thx

[-- Attachment #2: Type: text/html, Size: 422 bytes --]

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-15 17:20 [gentoo-user] Install dkms: which package Facundo Curti
@ 2016-07-15 21:54 ` Alarig Le Lay
  2016-07-15 22:59   ` Facundo Curti
  2016-07-15 22:13 ` Fernando Rodriguez
  2016-07-15 23:29 ` Stroller
  2 siblings, 1 reply; 12+ messages in thread
From: Alarig Le Lay @ 2016-07-15 21:54 UTC (permalink / raw
  To: gentoo-user

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

On Fri Jul 15 14:20:39 2016, Facundo Curti wrote:
> Hi there.
> 
> I need dkms to compile a driver. (aziokdb
> https://bitbucket.org/Swoogan/aziokbd).
> 
> Any way, I cant find the package to do that :S
> 
> I tryed with sys-kernel/dkms and @module-rebuild, none exsists
> 
> Someone can tell me what package I need to install? Thx

Hi,

Why do you want DKMS whereas you already compile your own kernel?

-- 
alarig

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-15 17:20 [gentoo-user] Install dkms: which package Facundo Curti
  2016-07-15 21:54 ` Alarig Le Lay
@ 2016-07-15 22:13 ` Fernando Rodriguez
  2016-07-15 23:29 ` Stroller
  2 siblings, 0 replies; 12+ messages in thread
From: Fernando Rodriguez @ 2016-07-15 22:13 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 07/15/2016 01:20 PM, Facundo Curti wrote:
> Hi there.
> 
> I need dkms to compile a driver. (aziokdb https://bitbucket.org/Swoogan/aziokbd).
> 
> Any way, I cant find the package to do that :S
> 
> I tryed with sys-kernel/dkms and @module-rebuild, none exsists
> 
> Someone can tell me what package I need to install? Thx

None. Just use the Manual Install instructions.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXiWAHAAoJEPbOFX/5UlwcO+wP/ROAhsjIVwSglSScBGLWk1IM
H+o04DngsKS8qSsnqnOJ89z6PQQyNqm0H34gyo9PowYJiRtGtD5ryHFAFzu1P55M
XfX2CY/otzwCZDX8jULO6YL14y7BgMDDgnN1LyHpUu1xKchP8ifXCOHsnGc33atx
7CVgyb+r0PVNtXNynQPO4QOGWepCRaKyDp8CFPDlNQXyemutKdnc1w6Fv8JdQHfF
yJMru1vuiwjWyFaNlEK7yEqtmUEKkGpQzYFTknTIaKNc3qE0bkpOXJJunbreCa9D
mvunrvSLl66xoQMF+o8BTud+KfQOAL72PaFNdBbXCSnZXS8CnUf1mbIFpx1JD14y
kuPpncrYKoyh06U75Rsy9WNHgDFXbG37rV/UuK62O1gacRIWnMG/I7K7iPgOa9y2
JM58K2IVfJ/TN7Z3EoTYkkpJkrvVvegJaLW/NqDJ2Evdsd+BNrck1gD/697eB5Iu
/T/XeKEmMSfwPkF4YD/d6WjvZ87VoI3rGCcx5e28rdXB37RsvUQIOMVeTlHcogw3
4Qmcq5Q235Lrs5NPm2Xl9hwLu/Qfbt/ixOZ08qkKMfsyvHPL4swSXhEx9ayVFN77
reAZJ21ZAl37bV18swjQG5wIgw55VTwNIYjJgXUxs4rhAo9D0opYrgWrhXN2bblU
wYD5rhGbB6ozl5eSDT1w
=W/hy
-----END PGP SIGNATURE-----


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

* Re: [gentoo-user] Install dkms: which package
  2016-07-15 21:54 ` Alarig Le Lay
@ 2016-07-15 22:59   ` Facundo Curti
  2016-07-16  7:45     ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Facundo Curti @ 2016-07-15 22:59 UTC (permalink / raw
  To: gentoo-user

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

2016-07-15 18:54 GMT-03:00 Alarig Le Lay <alarig@swordarmor.fr>:

> On Fri Jul 15 14:20:39 2016, Facundo Curti wrote:
> > Hi there.
> >
> > I need dkms to compile a driver. (aziokdb
> > https://bitbucket.org/Swoogan/aziokbd).
> >
> > Any way, I cant find the package to do that :S
> >
> > I tryed with sys-kernel/dkms and @module-rebuild, none exsists
> >
> > Someone can tell me what package I need to install? Thx
>
> Hi,
>
> Why do you want DKMS whereas you already compile your own kernel?
>
> --
> alarig
>

Because I have a module that is outside the kernel tree:

See this
http://swoogan.blogspot.com.ar/2014/09/azio-l70-keyboard-linux-driver.html

Is the above, but with some modifications.

[-- Attachment #2: Type: text/html, Size: 1596 bytes --]

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-15 17:20 [gentoo-user] Install dkms: which package Facundo Curti
  2016-07-15 21:54 ` Alarig Le Lay
  2016-07-15 22:13 ` Fernando Rodriguez
@ 2016-07-15 23:29 ` Stroller
  2 siblings, 0 replies; 12+ messages in thread
From: Stroller @ 2016-07-15 23:29 UTC (permalink / raw
  To: gentoo-user

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


> On 15 Jul 2016, at 18:20, Facundo Curti <facu.curti@gmail.com> wrote:
> 
> Hi there.
> 
> I need dkms to compile a driver. (aziokdb https://bitbucket.org/Swoogan/aziokbd <https://bitbucket.org/Swoogan/aziokbd>).
> 
> Any way, I cant find the package to do that :S
> 
> I tryed with sys-kernel/dkms and @module-rebuild, none exsists

It looks like DKMS failed to find a maintainer 10 years ago. 

• https://forums.gentoo.org/viewtopic-t-579971-view-previous.html <https://forums.gentoo.org/viewtopic-t-579971-view-previous.html>
• https://bugs.gentoo.org/show_bug.cgi?id=100754 <https://bugs.gentoo.org/show_bug.cgi?id=100754>

Could it have been rolled into another package since then?

Stroller.


[-- Attachment #2: Type: text/html, Size: 1520 bytes --]

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-15 22:59   ` Facundo Curti
@ 2016-07-16  7:45     ` Neil Bothwick
  2016-07-16  9:37       ` Facundo Curti
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2016-07-16  7:45 UTC (permalink / raw
  To: gentoo-user

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

On Fri, 15 Jul 2016 19:59:51 -0300, Facundo Curti wrote:

> > Why do you want DKMS whereas you already compile your own kernel?

> Because I have a module that is outside the kernel tree:

You don't need DKMS for that, either re-emerge the module manually after
compiling a new kernel or run emerge @module-rebuild. If the module is
not in portage, manually reinstall it for each new kernel.

DKMS is for people that don't get involved in compiling kernels or
modules, it is for users of binary distros.


-- 
Neil Bothwick

Walking on water and writing software to specification is easy if they're
frozen.

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

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-16  7:45     ` Neil Bothwick
@ 2016-07-16  9:37       ` Facundo Curti
  2016-07-16 10:52         ` Jeremi Piotrowski
  2016-07-16 22:29         ` Alan McKinnon
  0 siblings, 2 replies; 12+ messages in thread
From: Facundo Curti @ 2016-07-16  9:37 UTC (permalink / raw
  To: gentoo-user

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

2016-07-16 4:45 GMT-03:00 Neil Bothwick <neil@digimed.co.uk>:

> On Fri, 15 Jul 2016 19:59:51 -0300, Facundo Curti wrote:
>
> > > Why do you want DKMS whereas you already compile your own kernel?
>
> > Because I have a module that is outside the kernel tree:
>
> You don't need DKMS for that, either re-emerge the module manually after
> compiling a new kernel or run emerge @module-rebuild. If the module is
> not in portage, manually reinstall it for each new kernel.
>
> DKMS is for people that don't get involved in compiling kernels or
> modules, it is for users of binary distros.
>
>
> --
> Neil Bothwick
>
> Walking on water and writing software to specification is easy if they're
> frozen.
>

It is not in portage. It is a unique module. Edited by me in the source
code.

But how can I install the module without dkms?  usually I make this
automatically with dkms :S

[-- Attachment #2: Type: text/html, Size: 1571 bytes --]

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-16  9:37       ` Facundo Curti
@ 2016-07-16 10:52         ` Jeremi Piotrowski
  2016-07-16 18:03           ` Facundo Curti
  2016-07-16 22:29         ` Alan McKinnon
  1 sibling, 1 reply; 12+ messages in thread
From: Jeremi Piotrowski @ 2016-07-16 10:52 UTC (permalink / raw
  To: gentoo-user

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

On Sat, Jul 16, 2016 at 06:37:28AM -0300, Facundo Curti wrote:
> 
> But how can I install the module without dkms?  usually I make this
> automatically with dkms :S

Come on - the module has an install.sh script that installs it without
dkms. 

    $ cd /usr/src
    $ hg clone https://bitbucket.org/Swoogan/aziokbd
    $ ./install.sh

or instead of running their script just do:

    $ make install

DKMS is a means of hooking into the kernel-update process in binary
distros to automatically recompile external modules. As we compile our own
kernels (most of us?), compiling modules manually is not that big of an
issue (we control when the kernel update happens).

However, as it is more practical to have portage handle the rebuilds, here
is a quickly written ebuild for you.


[-- Attachment #2: aziokbd-9999.ebuild --]
[-- Type: text/plain, Size: 818 bytes --]

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit eutils linux-info linux-mod

if [ "${PV}" = "9999" ]; then
	inherit mercurial
	EHG_REPO_URI="https://bitbucket.org/Swoogan/aziokbd"
	KEYWORDS=""
else
	SRC_URI="???"
	KEYWORDS="~x86 ~amd64"
fi

DESCRIPTION="Linux kernel driver for Microdia Keyboards"
HOMEPAGE="hg clone https://bitbucket.org/Swoogan/aziokbd"

LICENSE="GPL-2"
SLOT="0"
IUSE="-backslash-fix"

MODULE_NAMES="aziokbd(kernel/drivers/input/keyboard:${S})"
BUILD_TARGETS="clean default"
MODULESD_AZIOKBD_ADDITIONS=(
	"options usbhid quirk=0x0c45:0x7603:0x0007"
)

src_compile() {
	if use backslash-fix; then
		BKSLFIX=y
	else
		BKSLFIX=n
	fi
	BUILD_PARAMS="KSRC=${KERNEL_DIR} BKSLFIX=${BKSLFIX} M=${S}"
	linux-mod_src_compile
}

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-16 10:52         ` Jeremi Piotrowski
@ 2016-07-16 18:03           ` Facundo Curti
  2016-07-16 19:12             ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Facundo Curti @ 2016-07-16 18:03 UTC (permalink / raw
  To: gentoo-user

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

2016-07-16 7:52 GMT-03:00 Jeremi Piotrowski <jeremi.piotrowski@gmail.com>:

> On Sat, Jul 16, 2016 at 06:37:28AM -0300, Facundo Curti wrote:
> >
> > But how can I install the module without dkms?  usually I make this
> > automatically with dkms :S
>
> Come on - the module has an install.sh script that installs it without
> dkms.
>
>     $ cd /usr/src
>     $ hg clone https://bitbucket.org/Swoogan/aziokbd
>     $ ./install.sh
>
> or instead of running their script just do:
>
>     $ make install
>
> DKMS is a means of hooking into the kernel-update process in binary
> distros to automatically recompile external modules. As we compile our own
> kernels (most of us?), compiling modules manually is not that big of an
> issue (we control when the kernel update happens).
>
> However, as it is more practical to have portage handle the rebuilds, here
> is a quickly written ebuild for you.
>
>
> # Copyright 1999-2016 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Id$
>
> EAPI=6
>
> inherit eutils linux-info linux-mod
>
> if [ "${PV}" = "9999" ]; then
>         inherit mercurial
>         EHG_REPO_URI="https://bitbucket.org/Swoogan/aziokbd"
>         KEYWORDS=""
> else
>         SRC_URI="???"
>         KEYWORDS="~x86 ~amd64"
> fi
>
> DESCRIPTION="Linux kernel driver for Microdia Keyboards"
> HOMEPAGE="hg clone https://bitbucket.org/Swoogan/aziokbd"
>
> LICENSE="GPL-2"
> SLOT="0"
> IUSE="-backslash-fix"
>
> MODULE_NAMES="aziokbd(kernel/drivers/input/keyboard:${S})"
> BUILD_TARGETS="clean default"
> MODULESD_AZIOKBD_ADDITIONS=(
>         "options usbhid quirk=0x0c45:0x7603:0x0007"
> )
>
> src_compile() {
>         if use backslash-fix; then
>                 BKSLFIX=y
>         else
>                 BKSLFIX=n
>         fi
>         BUILD_PARAMS="KSRC=${KERNEL_DIR} BKSLFIX=${BKSLFIX} M=${S}"
>         linux-mod_src_compile
> }
>
>
Wow men. Thank you very much! Now it works. It was a very stupid problem. I
didn't know that the module could be installed without dksm :P jaja. I
always used to do ./install dkms.

Thanks for the ebuild! I will try to edit it to use my own sources (my
aziokdb is a litle edited, I changed some keys)

Finally I have my gentoo install complete :)

Bye! ;)

[-- Attachment #2: Type: text/html, Size: 3540 bytes --]

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-16 18:03           ` Facundo Curti
@ 2016-07-16 19:12             ` Neil Bothwick
  2016-07-16 22:29               ` Facundo Curti
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2016-07-16 19:12 UTC (permalink / raw
  To: gentoo-user

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

On Sat, 16 Jul 2016 15:03:27 -0300, Facundo Curti wrote:

> Thanks for the ebuild! I will try to edit it to use my own sources (my
> aziokdb is a litle edited, I changed some keys)

There's no need for that as it uses EAPI6. That means that if you put a
patch file in /etc/portage/patches/category/name, it will be
automatically applied after the sources are unpacked. That way, you don't
need to recreate a source tarball each times there's a new release, as
long as the patch still applies.


-- 
Neil Bothwick

I'm Pink, Therefore I'm Spam

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

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-16 19:12             ` Neil Bothwick
@ 2016-07-16 22:29               ` Facundo Curti
  0 siblings, 0 replies; 12+ messages in thread
From: Facundo Curti @ 2016-07-16 22:29 UTC (permalink / raw
  To: gentoo-user

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

2016-07-16 16:12 GMT-03:00 Neil Bothwick <neil@digimed.co.uk>:

> On Sat, 16 Jul 2016 15:03:27 -0300, Facundo Curti wrote:
>
> > Thanks for the ebuild! I will try to edit it to use my own sources (my
> > aziokdb is a litle edited, I changed some keys)
>
> There's no need for that as it uses EAPI6. That means that if you put a
> patch file in /etc/portage/patches/category/name, it will be
> automatically applied after the sources are unpacked. That way, you don't
> need to recreate a source tarball each times there's a new release, as
> long as the patch still applies.
>
>
> --
> Neil Bothwick
>
> I'm Pink, Therefore I'm Spam
>

Greate men! Thx. I will read about. I want to learn how portage and
ebuild's works.

[-- Attachment #2: Type: text/html, Size: 1200 bytes --]

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

* Re: [gentoo-user] Install dkms: which package
  2016-07-16  9:37       ` Facundo Curti
  2016-07-16 10:52         ` Jeremi Piotrowski
@ 2016-07-16 22:29         ` Alan McKinnon
  1 sibling, 0 replies; 12+ messages in thread
From: Alan McKinnon @ 2016-07-16 22:29 UTC (permalink / raw
  To: gentoo-user

On 16/07/2016 11:37, Facundo Curti wrote:
> 
> 2016-07-16 4:45 GMT-03:00 Neil Bothwick <neil@digimed.co.uk
> <mailto:neil@digimed.co.uk>>:
> 
>     On Fri, 15 Jul 2016 19:59:51 -0300, Facundo Curti wrote:
> 
>     > > Why do you want DKMS whereas you already compile your own kernel?
> 
>     > Because I have a module that is outside the kernel tree:
> 
>     You don't need DKMS for that, either re-emerge the module manually after
>     compiling a new kernel or run emerge @module-rebuild. If the module is
>     not in portage, manually reinstall it for each new kernel.
> 
>     DKMS is for people that don't get involved in compiling kernels or
>     modules, it is for users of binary distros.
> 
> 
>     --
>     Neil Bothwick
> 
>     Walking on water and writing software to specification is easy if
>     they're
>     frozen.
> 
> 
> It is not in portage. It is a unique module. Edited by me in the source
> code.
> 
> But how can I install the module without dkms?  usually I make this
> automatically with dkms :S
> 

make, make install, modprobe ?

-- 
Alan McKinnon
alan.mckinnon@gmail.com



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

end of thread, other threads:[~2016-07-16 22:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-15 17:20 [gentoo-user] Install dkms: which package Facundo Curti
2016-07-15 21:54 ` Alarig Le Lay
2016-07-15 22:59   ` Facundo Curti
2016-07-16  7:45     ` Neil Bothwick
2016-07-16  9:37       ` Facundo Curti
2016-07-16 10:52         ` Jeremi Piotrowski
2016-07-16 18:03           ` Facundo Curti
2016-07-16 19:12             ` Neil Bothwick
2016-07-16 22:29               ` Facundo Curti
2016-07-16 22:29         ` Alan McKinnon
2016-07-15 22:13 ` Fernando Rodriguez
2016-07-15 23:29 ` Stroller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox