You are not logged in.

#1 2012-04-05 11:28:47

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Dependency not meet after custom kernel built

This is the error I am getting. The kernel had not produced any error when I was compiling.




[o@o linux]$ sudo pacman -U linux-x-3.2.14-1-x86_64.pkg.tar.xz
loading packages...
resolving dependencies...
looking for inter-conflicts...
:: linux-x and linux are in conflict (kernel26). Remove linux? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia: requires linux>=3.2
:: nvidia: requires linux<3.3

I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#2 2012-04-05 11:43:14

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Dependency not meet after custom kernel built

Are you using provides=('kernel26') or conflicts=('kernel26') in your PKGBUILD by any chance? If so, don't.


Burninate!

Offline

#3 2012-04-05 11:55:57

Psykorgasm
Member
Registered: 2011-11-24
Posts: 178

Re: Dependency not meet after custom kernel built

Yeah, you need to change the 

provides=('kernel26') or conflicts=('kernel26')  replaces=('kernel26')

To something like

provides=('kernel32') or conflicts=('kernel32')  replaces=('kernel32')

For (depending on what you build) linux itself, the headers and docs (You definately need to also build the headers for nvidia)
Edit: Remember to change "package_linux-headers() {" to "package_linux-x-headers() {" - I often forget that myself.


You also need to build the nvidia package again and change the PKGBUILD to (for example):

pkgname=nvidia-x
pkgver=295.33
_extramodules=extramodules-3.2-x
_kernver="$(cat /lib/modules/${_extramodules}/version)"
pkgrel=1
pkgdesc="NVIDIA drivers for linux."
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
depends=('linux-x>=3.2' 'linux-x<3.3' "nvidia-utils=${pkgver}")
makedepends=('linux-x-headers>=3.2' 'linux-x-headers<3.3')
conflicts=('nvidia-96xx' 'nvidia-173xx')
license=('custom')
install=nvidia.install
options=(!strip)

and nvidia.install to:

post_install() {
    EXTRAMODULES='extramodules-3.2-x'
    depmod $(cat /lib/modules/$EXTRAMODULES/version)
    echo 'In order to use nvidia module, reboot the system.'
}

post_upgrade() {
    EXTRAMODULES='extramodules-3.2-x'
    depmod $(cat /lib/modules/$EXTRAMODULES/version)
}

post_remove() {
    EXTRAMODULES='extramodules-3.2-x'
    depmod $(cat /lib/modules/$EXTRAMODULES/version)
}

Last edited by Psykorgasm (2012-04-05 12:02:09)

Offline

Board footer

Powered by FluxBB