You are not logged in.
I am maintainer of kernel26-selinux in AUR. Recently I noticed that built kernel sais (uname -r) 2.6.35-selinux-gd4918f4-dirty instead just 2.6.35-selinux, which I would expect. I found option CONFIG_LOCALVERSION_AUTO which I think should solve it if set to no, but in that case the release string is actualy 2.6.35-selinux+ (note the plus symbol).
Would someone kindly tell me, what to change, so that uname -r would show just 2.6.35-selinux? Or give some arguments why the other way is better, in case it is?
PS Here is link for up-to-date tarball, as AUR doesn't yet support splitpackages: http://profi.edisk.cz/stahnout-soubor/1 … 1.9KB.html
PPS I am quite new to building kernel stuff, so please speak slowly to me.
Last edited by Nicky726 (2010-08-19 17:49:14)
"Although the masters make the rules
For the wise men and the fools
I got nothing, Ma, to live up to."
Offline
Check out kernel26-ice. I've contributed to the PKGBUILD before, and still do. I believe one of the issues I helped deal with was this, just need the appropriate sed somewhere.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Thank you. I guess I found it, building now.
"Although the masters make the rules
For the wise men and the fools
I got nothing, Ma, to live up to."
Offline
That sort of suffix is appended when you're building below the root of a git repo. The kernel source itself might not be in a repo, but, for example, you may have a repo in ~/ and you're building out of ~/abs. There's no way I know of to limit the "depth" of a git repo, so moving it is the only solution.
Offline
So that's it. I have a git repository for every AUR package and when I test-build I do it in it.
Bad thing about the hack is that it leaves just 2.6.35, when in fact I would like it to keep the -selinux.
"Although the masters make the rules
For the wise men and the fools
I got nothing, Ma, to live up to."
Offline
Well the sed line used in kernel26-ice is in fact wrong.
instead of:
sed 's/head=$(git rev-parse --verify --short HEAD 2>\/dev\/null)/0/' \
${srcdir}/linux-${_basekernel}/scripts/setlocalversion > \
${srcdir}/linux-${_basekernel}/scripts/setlocalversion
there should be:
sed -i 's/head=$(git rev-parse --verify --short HEAD 2>\/dev\/null)/0/' \
${srcdir}/linux-${_basekernel}/scripts/setlocalversion
as the former deletes contents of whole file.
EDIT:
And the contents of the if to be changed by the sed did changed too. So hopefully last modification of the hack is:
sed -i -e "s/head=\`git rev-parse --verify --short HEAD 2>\/dev\/null\`/0/" \
${srcdir}/linux-${_basekernel}/scripts/setlocalversion
Last edited by Nicky726 (2010-08-23 13:30:33)
"Although the masters make the rules
For the wise men and the fools
I got nothing, Ma, to live up to."
Offline
EDIT: nvm
Last edited by fukawi2 (2010-08-23 10:29:29)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Well the sed line used in kernel26-ice is in fact wrong.
instead of:
sed 's/head=$(git rev-parse --verify --short HEAD 2>\/dev\/null)/0/' \
${srcdir}/linux-${_basekernel}/scripts/setlocalversion > \
${srcdir}/linux-${_basekernel}/scripts/setlocalversionthere should be:
sed -i 's/head=$(git rev-parse --verify --short HEAD 2>\/dev\/null)/0/' \
${srcdir}/linux-${_basekernel}/scripts/setlocalversionas the former deletes contents of whole file.
EDIT:
And the contents of the if to be changed by the sed did changed too. So hopefully last modification of the hack is:
sed -i -e "s/head=\`git rev-parse --verify --short HEAD 2>\/dev\/null\`/0/" \
${srcdir}/linux-${_basekernel}/scripts/setlocalversion
Yes, if you read the comments I commented that I'd already fixed that, but in git. The maintainer just hasn't gotten around to updating my fix to the AUR PKGBUILD.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Ups... guess I should have read them. Went straight for the PKBUILD and reinventing invented... hope will have more luck next time. Thanx.
"Although the masters make the rules
For the wise men and the fools
I got nothing, Ma, to live up to."
Offline
If you add
LOCALVERSION=
to the make arguments it won't add that annoying plus.
Last edited by fr33ke (2010-08-25 12:05:19)
Offline