Re: [gentoo-user] Install dkms: which package

2016-07-16 Thread Alan McKinnon
On 16/07/2016 11:37, Facundo Curti wrote:
> 
> 2016-07-16 4:45 GMT-03:00 Neil Bothwick  >:
> 
> 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.mckin...@gmail.com




Re: [gentoo-user] Install dkms: which package

2016-07-16 Thread Facundo Curti
2016-07-16 16:12 GMT-03:00 Neil Bothwick :

> 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.


Re: [gentoo-user] Install dkms: which package

2016-07-16 Thread Neil Bothwick
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


pgpSFQikFx9tJ.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Install dkms: which package

2016-07-16 Thread Facundo Curti
2016-07-16 7:52 GMT-03:00 Jeremi Piotrowski :

> 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}" = "" ]; 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! ;)


Re: [gentoo-user] Install dkms: which package

2016-07-16 Thread Jeremi Piotrowski
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}" = "" ]; 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
}


Re: [gentoo-user] Install dkms: which package

2016-07-16 Thread Facundo Curti
2016-07-16 4:45 GMT-03:00 Neil Bothwick :

> 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


Re: [gentoo-user] Install dkms: which package

2016-07-16 Thread Neil Bothwick
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.


pgpkuNMk0qbRP.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Install dkms: which package

2016-07-15 Thread Stroller

> On 15 Jul 2016, at 18:20, 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

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

• https://forums.gentoo.org/viewtopic-t-579971-view-previous.html 

• https://bugs.gentoo.org/show_bug.cgi?id=100754 


Could it have been rolled into another package since then?

Stroller.



Re: [gentoo-user] Install dkms: which package

2016-07-15 Thread Facundo Curti
2016-07-15 18:54 GMT-03:00 Alarig Le Lay :

> 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.


Re: [gentoo-user] Install dkms: which package

2016-07-15 Thread Fernando Rodriguez
-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-



Re: [gentoo-user] Install dkms: which package

2016-07-15 Thread Alarig Le Lay
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


signature.asc
Description: Digital signature


[gentoo-user] Install dkms: which package

2016-07-15 Thread Facundo Curti
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