You are not logged in.

#1 2010-08-16 17:57:36

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Can't Submit package to AUR : Invalid name: only lowercase letters....

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

#2 2010-08-16 18:04:54

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Can't Submit package to AUR : Invalid name: only lowercase letters....

The AUR doesn't support split PKGBUILDs without kludgy workarounds. You'll either need to:

- use a kludgy workaround
- package headers along with the kernel, removing the need for a split PKGBUILD

Offline

#3 2010-08-16 18:15:08

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Re: Can't Submit package to AUR : Invalid name: only lowercase letters....

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

#4 2010-08-16 18:31:48

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Can't Submit package to AUR : Invalid name: only lowercase letters....

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

#5 2010-08-16 18:36:43

jwcxz
Member
Registered: 2008-09-23
Posts: 239
Website

Re: Can't Submit package to AUR : Invalid name: only lowercase letters....

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

#6 2010-08-17 08:31:24

ssri
Member
Registered: 2010-02-16
Posts: 216

Re: Can't Submit package to AUR : Invalid name: only lowercase letters....

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

#7 2010-08-17 11:49:14

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Re: Can't Submit package to AUR : Invalid name: only lowercase letters....

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

#8 2010-08-17 13:15:31

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Can't Submit package to AUR : Invalid name: only lowercase letters....

yossarianuk wrote:

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

Board footer

Powered by FluxBB