You are not logged in.
Hi.
I have created a PKGBUILD for kernel 2.6.35 with the desktop responsiveness patch included.
It builds,etc fine.
I have used
makepkg --source
And tried to upload the .src.tar.gz file - but I get the same message.
What do i have to do (I have tried just changing the file name)
Cheers
Offline
Offline
Hi falconindy - do you mean make 2 separate packages?
1 for the kernel and the other for kernel-headers ?
Here is the start of the PKGBUILD...
P.S I advise any desktop users to try the patch - its really good....
-------------------------------------------
# $Id: PKGBUILD 87487 2010-08-14 13:40:05Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Modified to add desktop responsive patch by Morgan cox <morgancoxuk@gmail.com>
pkgbase="kernel26"
pkgname=('kernel26-k8-testing' 'kernel26-k8-testing-headers') # Build stock -ARCH kernel
# pkgname=kernel26-custom # Build kernel with a different name
_kernelname=${pkgname#kernel26}
_basekernel=2.6.35
pkgver=${_basekernel}.2
Last edited by yossarianuk (2010-08-16 18:23:41)
Offline
No I mean comment out the pkgname array and use a pkgname that isn't an array. It requires the user to intervene and comment out the phony pkgname while uncommenting the real one.
Dividing the headers from the kernel in fully separate packages would be a rotten mess.
Offline
If you're sure you need to include a headers package (which you probably do given that you're working from testing), you could probably make the PKGBUILD modify itself and then run makepkg again. I haven't tried it myself, but it might work.
Edit: to clarify, makepkg runs sed s/phonyname/realnames/ on the PKGBUILD and the calls makepkg again by itself. It would look like a regular bulid to the user, kind of.
Last edited by jwcxz (2010-08-16 18:39:23)
-- jwc
http://jwcxz.com/ | blog
dotman - manage your dotfiles across multiple environments
icsy - an alarm for powernappers
Offline
I believe falconindy is trying to say is that the packager can include the headers with the package, i.e. (from kernel26-ck, last line):
# Maintainer: Cray "MP2E" Elliott <MP2E { AT } archlinux.us>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgbase="kernel26-ck"
pkgdesc="Linux Kernel built with Con Kolivas' patchset -ck"
pkgname="kernel26-ck"
# pkgname=kernel26-custom # Build kernel with a different name
_kernelname=-ck
_basekernel=2.6.35
pkgver=${_basekernel}.2
pkgrel=1
_archpatchversion=1
_patchname="patch-${pkgver}-${_archpatchversion}-ARCH"
_ckpatchversion=1
_ckpatchname="patch-${_basekernel}-ck${_ckpatchversion}"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://users.on.net/~ckolivas/kernel/"
depends=('coreutils' 'linux-firmware>=2.6.35' 'module-init-tools' 'mkinitcpio>=0.5.20')
conflicts=('kernel26-ck-headers')
install=kernel26.install
optdepends=('crda: to set the correct wireless channels of your country')
provides=('kernel26-ck-headers')
Last edited by ssri (2010-08-17 08:32:00)
Offline
Thanks ssri.
I followed what you said, but I am lacking the kernel headers...
i.e I can't install the nvidia drivers.
How do I build them in ?
Offline
Thanks ssri.
I followed what you said, but I am lacking the kernel headers...
i.e I can't install the nvidia drivers.
How do I build them in ?
Please look at the entire kernel26-ck PKGBUILD in the AUR. You need to incorporate the functionality of package_kernel26-headers() (in your original PKGBUILD) into the build() or package() function. If you need more examples, you can look at the official PKGBUILDs for kernel26 prior to 2.6.32.
Offline