You are not logged in.

#1 2007-09-06 15:04:54

Jack B
Member
Registered: 2006-06-27
Posts: 107
Website

2 kernel PKGBUILDs in wiki?

Hi all

I'm thinking of trying my first custom kernel (I'm after the hdaps_protect patch), so went to the wiki, and found these:
http://wiki.archlinux.org/index.php/Ker … n_with_ABS
http://wiki.archlinux.org/index.php/Cus … n_with_ABS

Both pages give a PKGBUILD but I'm not sure which one is better, indeed both pages seem to be written as though the other doesn't exist.

So, is there one page that supersedes the other, or are the two PKGBUILDs designed for different tasks? And in that case what's the difference?

Jack

Offline

#2 2007-09-06 16:34:50

FeatherMonkey
Member
Registered: 2007-02-26
Posts: 313

Re: 2 kernel PKGBUILDs in wiki?

I certainly don't know for sure but at the bottom of this one http://wiki.archlinux.org/index.php/Ker … n_with_ABS

You have this  => This is too complex. What was lacking in the old kernel PKGBUILD prototype?

I reckon this answers the question as from what my limited skills see "<snip>modified the package version variable in the build() procedure<snip>"

Seems to add up to the other version, but I'm certainly not 100% sure but that's my guess.

Offline

#3 2007-09-06 17:12:08

Jack B
Member
Registered: 2006-06-27
Posts: 107
Website

Re: 2 kernel PKGBUILDs in wiki?

Thanks FeatherMonkey

That does kinda make sense,  though I'm still not certain that refers to the other page. I don't see anywhere in the  build where $pkgver is altered. And both pages refer to an older PKGBUILD.

I checked the page history to see if that gave any clues, but both pages were apparently created on the same day, 23rd July 2005, within a few hours. I guess that was a migration to a new wiki or something.

Both also have modifications in July this year, so I guess people are still using both.

So I suppose my question becomes: which one should I use?

Jack

Offline

#4 2007-09-06 17:20:08

FeatherMonkey
Member
Registered: 2007-02-26
Posts: 313

Re: 2 kernel PKGBUILDs in wiki?

Here the one I linked to you

#DO NOT CHANGE INSIDE THIS BLOCK
pkgver=$_kerver

if [ ! -z "$_extraver" ]; then
  _scratch="_$_extraver"
  pkgver=$pkgver$_scratch
  _extraver=`echo "-$_extraver" | sed 's|_|-|'`
fi

pkgdesc="$_desc - ver: $_kerver$_extraver;"
pkgname=$_pkg_base

if [ ! -z "$_patchset" ]; then
  pkgdesc="$pkgdesc pset: $_patchset;"
  _patchset="-$_patchset"
  pkgname="$pkgname$_patchset"
fi

if [ ! -z "$_cfgname" ]; then
  pkgdesc="$pkgdesc cfg: $_cfgname;"
  _cfgname="-$_cfgname"
  pkgname="$pkgname$_cfgname"
fi

pkgdesc="$pkgdesc bld: $pkgrel"
_idstr="$_kerver$_extraver$_patchset$_cfgname"

Then after md5 check you get build() {

Where as with the other one it enters build almost straight away, but as said I'm far from sure.

build() {
  echo "_pkg_base: $_pkg_base"
  echo "_patchset: $_patchset"
  echo "_cfgname: $_cfgname"
  echo "_kerver: $_kerver"
  echo "_extraver: $_extraver"
  echo "pkgrel: $

Offline

#5 2007-09-06 17:58:43

Jack B
Member
Registered: 2006-06-27
Posts: 107
Website

Re: 2 kernel PKGBUILDs in wiki?

Oops, my mistake, I missed that bit of code.
I guess I'll probably run with this one then.

Maybe if someone with more experience (and certainty) happens across this they could update the Wiki?

Thanks Again

Jack

Offline

Board footer

Powered by FluxBB