You are not logged in.

#1 2019-09-16 04:01:09

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

[SOLVED]Custom kernel not updating?

I am trying to follow the instructions on https://wiki.archlinux.org/index.php/Ke … ild_System in the section Updating.
I can proceed with changing the version to match my own as required.
At the bottom of a bunch of steps in code, all of which were successful for me, there is:

Now one should manually merge, probably copy, the files at linux-tmp to the files by the same name at its parent directory. After which, the directory linux-tmp/, with all the files in it, can be deleted. Then run manually most, if not all, of PKGBUILD::prepare().

I have taken some extra stupid pills tonight and cannot figure out how to do that last sentence.
Looking at the sh-code of PKGBUILD shows me that manually==nearly impossible?

If I try to jump ahead and do

makepkg --verifysource

it validates with sha256sums but then runs into a roadblock

    archlinux-linux ... Skipped
    config ... Passed
    60-linux.hook ... Passed
    90-linux.hook ... Passed
    linux.preset ... Passed
==> Verifying source file signatures with gpg...
    archlinux-linux git repo ... SIGNATURE NOT FOUND
==> ERROR: One or more PGP signatures could not be verified!

I am pretty sure it was a mistake to jump ahead, but how to I run prepare()? Use makepkg --nobuild? Or am I unrecoverably messed up?

Last edited by OrigBitmancer (2019-09-19 23:11:00)

Offline

#2 2019-09-16 11:55:06

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: [SOLVED]Custom kernel not updating?

OrigBitmancer wrote:

I can proceed with changing the version to match my own as required.

    archlinux-linux git repo ... SIGNATURE NOT FOUND

Was the version did you changed it to and is that version signed?

Offline

#3 2019-09-17 00:02:13

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [SOLVED]Custom kernel not updating?

Supposedly I updated it from
5.2.10.arch1-1
to
5.2.14-arch2-1, the latter as specified from the canonical source for pacman.

Offline

#4 2019-09-17 00:04:05

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: [SOLVED]Custom kernel not updating?

Please post the PKGBUILD.
Edit:
Also please always post the full output from a command.

Last edited by loqs (2019-09-17 00:07:23)

Offline

#5 2019-09-17 00:53:31

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [SOLVED]Custom kernel not updating?

PKGBUILD is visible at
https://gist.github.com/6d33c1e7b7f4ce9 … bfd4ddb132
output of

makepkg -s

is below:

myuser> GNUPGHOME=/etc/pacman.d/gnupg makepkg -s
==> Making package: linux-custom _srcver=5.2.14.arch2-1 (Sun 15 Sep 2019 10:30:01 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating archlinux-linux git repo...
Fetching origin
  -> Found config
  -> Found 60-linux.hook
  -> Found 90-linux.hook
  -> Found linux.preset
==> Validating source files with sha256sums...
    archlinux-linux ... Skipped
    config ... Passed
    60-linux.hook ... Passed
    90-linux.hook ... Passed
    linux.preset ... Passed
==> Verifying source file signatures with gpg...
archlinux-linux git repo ... SIGNATURE NOT FOUND
==> ERROR: One or more PGP signatures could not be verified!

Offline

#6 2019-09-17 01:23:10

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: [SOLVED]Custom kernel not updating?

_srcver=_srcver=5.2.14-arch2

Please try with

_srcver=5.2.14-arch2

Offline

#7 2019-09-17 02:12:10

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [SOLVED]Custom kernel not updating?

Oh My Goodness. Typo hell.

That took care of the SIGNATURE NOT FOUND error.

It also rewrote all the kernel config flags. I have to insert into PKGBUILD 

 make nconfig; make prepare

in place of the old

make olddefconfig

.

I hope it is safe to do

makepkg -s

because that is my next step.
EDIT:
NOPE:

makepkg -s
==> Making package: linux-custom 5.2.14.arch2-1 (Mon 16 Sep 2019 09:16:16 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating archlinux-linux git repo...
Fetching origin
  -> Found config
  -> Found 60-linux.hook
  -> Found 90-linux.hook
  -> Found linux.preset
==> Validating source files with sha256sums...
    archlinux-linux ... Skipped
    config ... Passed
    60-linux.hook ... Passed
    90-linux.hook ... Passed
    linux.preset ... Passed
==> Verifying source file signatures with gpg...
    archlinux-linux git repo ... Passed
==> Extracting sources...
  -> Creating working copy of archlinux-linux git repo...
warning: refname 'v5.2.14-arch2' is ambiguous.
Updating files: 100% (13348/13348), done.
warning: refname 'v5.2.14-arch2' is ambiguous.
fatal: Ambiguous object name: 'v5.2.14-arch2'.
==> ERROR: Failure while creating working copy of archlinux-linux git repo
    Aborting...
Mon Sep 16 21:16:46 ~/build/linux/trunk>


Is there a better way to say

Then run manually most, if not all, of PKGBUILD::prepare().

so that a bash newbie can do it?

Last edited by OrigBitmancer (2019-09-17 02:19:15)

Offline

#8 2019-09-17 02:28:09

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [SOLVED]Custom kernel not updating?

When I did a

git fetch --verbose

it output

 = [up to date]                v5.2-arch1     -> v5.2-arch1
 = [up to date]                v5.2-arch2     -> v5.2-arch2
 = [up to date]                v5.2.1-arch1   -> v5.2.1-arch1
 = [up to date]                v5.2.10-arch1  -> v5.2.10-arch1
 = [up to date]                v5.2.11-arch1  -> v5.2.11-arch1
 = [up to date]                v5.2.13-arch1  -> v5.2.13-arch1
 = [up to date]                v5.2.14-arch1  -> v5.2.14-arch1
 = [up to date]                v5.2.14-arch2  -> v5.2.14-arch2
 = [up to date]                v5.2.2-arch1   -> v5.2.2-arch1
 = [up to date]                v5.2.3-arch1   -> v5.2.3-arch1
 = [up to date]                v5.2.4-arch1   -> v5.2.4-arch1
 = [up to date]                v5.2.5-arch1   -> v5.2.5-arch1
 = [up to date]                v5.2.6-arch1   -> v5.2.6-arch1
 = [up to date]                v5.2.7-arch1   -> v5.2.7-arch1
 = [up to date]                v5.2.8-arch1   -> v5.2.8-arch1
 = [up to date]                v5.2.9-arch1   -> v5.2.9-arch1
 = [up to date]                v5.3-arch1     -> v5.3-arch1

So does that mean I am doing  "v5.3-arch1"   instead of "v5.2.14-arch2 "?
I did

git checkout master
git pull
git fetch --tag

and that printed as last line of output :::

* [new tag]                   v5.3-arch1 -> v5.3-arch1

I did not want to move into a new minor version.

Since all of the above were to manage an upgrade to a mostly-usual kernel, I bit the bullet and decided to redo the build from zero.
It is currently compiling the kernel modules. Nevertheless, there are holes in the Upgrade process that should be addressed.
Thanks to loqs for taking the time to work this with me.

This was not solved. I believe it should not reflect that in the title. How is something like that done? I read the rules, but nothing appeared.

Last edited by OrigBitmancer (2019-09-17 05:53:27)

Offline

#9 2019-09-17 09:46:54

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: [SOLVED]Custom kernel not updating?

What is the output of

git show-ref v5.2.14-arch2

https://stackoverflow.com/questions/122 … -ambiguous

Offline

#10 2019-09-17 19:37:31

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [SOLVED]Custom kernel not updating?

It gives:

d90441c6a629e51f7c16406c739ecac6cc4e79c7 refs/tags/v5.2.14-arch2
Tue Sep 17 14:34:48 ~/build/linux/trunk/archlinux-linux>

I am following the Kernel/Arch Build System wiki instruction page as closely as possible.

Offline

#11 2019-09-17 20:00:20

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: [SOLVED]Custom kernel not updating?

If you have not made any changes inside src that need to be preserved.

makepkg -C

This will remove the contents of the src directory before checking out the git tree again hopefully removing the ambiguity.

Offline

#12 2019-09-17 20:14:26

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [SOLVED]Custom kernel not updating?

It completed the build ok.
Will try again.
(when I do it now, in build/linux/trunk, it gives

==> ERROR: The package group has already been built. (use -f to overwrite)

so I started again with a clean tree at ~/build/ and did

$ asp update linux
$ asp checkout linux
cd linux/trunk/
emacs PKGBUILD <<< to clean pkgbase and _pkgver

Copied the old config over the new one (so the interactive config would be moot) Then

updpkgsums

and

makepkg -C

as suggested.
Next I will do

makepkg -f

as suggested.

Last edited by OrigBitmancer (2019-09-17 23:18:42)

Offline

#13 2019-09-17 20:22:54

loqs
Member
Registered: 2014-03-06
Posts: 19,100

Re: [SOLVED]Custom kernel not updating?

The following should now work

makepkg -f

If you wanted to preserve any changes you had made in src you would instead use.

makepkg -ef

Offline

#14 2019-09-19 23:10:15

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [SOLVED]Custom kernel not updating?

Thank you to @loqs for all your help. I will mark this solved.

Offline

Board footer

Powered by FluxBB