You are not logged in.

#1 2021-10-30 21:20:13

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

[SOLVED][REQUEST] linux-rt-devel

I have tried to make a pkgbuild for linux-rt-devel, but I fail at source link to the most updated pre parched kernel. I'm aware there is a linux-rt in the aur, but that one is on the the stable kernel not mainline kenrel.

Last edited by JustCauseWhyNot (2021-11-07 01:03:07)

Offline

#2 2021-10-30 22:21:16

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

git clone https://github.com/archlinux/svntogit-packages.git --single-branch --branch "packages/linux" linux-rt-devel-git
cd linux-rt-devel-git/trunk

Apply the following diff

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 7379d2c..80b73df 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
 
-pkgbase=linux
-pkgver=5.14.15.arch1
+pkgbase=linux-rt-devel-git
+pkgver=5.15rc7.rt15.r0.gb83089a173c2
 pkgrel=1
 pkgdesc='Linux'
 _srctag=v${pkgver%.*}-${pkgver##*.}
@@ -14,16 +14,13 @@ makedepends=(
   git
 )
 options=('!strip')
-_srcname=archlinux-linux
+_srcname=linux-rt-devel-git
 source=(
-  "$_srcname::git+https://github.com/archlinux/linux?signed#tag=$_srctag"
+  "$_srcname::git+https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git#branch=linux-5.15.y-rt"
   config         # the main kernel config file
 )
 validpgpkeys=(
-  'ABAF11C65A2970B130ABE3C479BE3E4300411886'  # Linus Torvalds
-  '647F28654894E3BD457199BE38DBBDC86092693E'  # Greg Kroah-Hartman
-  'A2FF3A36AAA56654109064AB19802F8B0D70FC30'  # Jan Alexander Steffens (heftig)
-  'C7E7849466FE2358343588377258734B41C31549'  # David Runge <dvzrv@archlinux.org>
+  '64254695FFF0AA4466CC19E67B96E8162A8CF5D1'  # Sebastian Andrzej Siewior
 )
 sha256sums=('SKIP'
             'f5d3635520c9eb9519629f6df0d9a58091ed4b1ea4ddb1acd5caf5822d91a060')
@@ -58,6 +55,12 @@ prepare() {
   echo "Prepared $pkgbase version $(<version)"
 }
 
+pkgver() {
+  cd $_srcname
+
+  git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/'
+}
+
 build() {
   cd $_srcname
   make all

Note the gpg key is not used but I left it in,  in case you wanted to switch to a signed tag.
Edit:
Changed pkgbase to match.

Last edited by loqs (2021-10-30 22:32:58)

Offline

#3 2021-10-30 22:29:12

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Thank you very much. I've been obsessing over this for a few days. You've been amazingly helpful.

Offline

#4 2021-10-30 23:21:43

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Maybe I'm missing something, but when I enter "diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD" I just get unrecognized option --git. Am I doing something wrong?

Offline

#5 2021-10-30 23:28:24

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

Paste the contents of the diff to a file then

git apply -v filename.diff

Offline

#6 2021-10-30 23:37:06

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Thank you.

Offline

#7 2021-10-31 16:47:18

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

I'm sorry to ask but when do the contents of diff start? Is it after the maintainer line or after diff line? I feel awful to ask, I just want to get it right.

Offline

#8 2021-10-31 18:47:37

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

Everything in the second code block in post #2.  So the first line starts with diff and the last line ends with make all.

Offline

#9 2021-10-31 19:22:33

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Alright I got it. Thank you.

Offline

#10 2021-10-31 20:47:58

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Last question how do I type ^v & ^- in nvim? I can type them capitalized, but I can't figure out how to make them lower case? The reason I ask is for now I can't copy anything to a clipboard. So I'm typing the whole code block in post #2, and I'm almost done I just can't figure this out after searching for an hour. I'm trying to find answers before I ask you, but I can't find any.

Offline

#11 2021-10-31 21:22:00

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

I uploaded the diff to http://ix.io/3Dy1

curl -o linux-rt-devel-git.patch http://ix.io/3Dy1
git apply -v linux-rt-devel-git.patch

Last edited by loqs (2021-10-31 21:39:18)

Offline

#12 2021-10-31 21:38:32

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Thank you. Is there anything I can do to help you or pay you back? You've helped me tremendously.

Offline

#13 2021-10-31 21:40:58

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

No its fine.  I tested the package builds but I did not try to boot the kernel.

Offline

#14 2021-10-31 21:45:17

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

I'm sure the boot will work, but if it doesn't I likely will know why. Thank you.

Offline

#15 2021-11-06 23:30:49

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

I've been getting error: failed to get source. How would I fix this? I believe the source link is still correct. I've been researching and reading the wiki but I can't find an answer. I apologize for all I've asked from you, but I'm at a lost.

Offline

#16 2021-11-06 23:36:24

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

Please post the full output from makepkg.

Offline

#17 2021-11-06 23:43:48

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

/home/usr/build/linux-rt-devel-git/trunk/PKGBUILD/: line 207: syntax error: unexpected end of file
==> ERROR: Failed to source /home/usr/build/linux-rt-devel-git/trunk/PKGBUILD

Last edited by JustCauseWhyNot (2021-11-06 23:48:14)

Offline

#18 2021-11-06 23:49:35

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

Please post the full PKGBUILD.

Offline

#19 2021-11-06 23:57:45

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Its just the linux-rt stable with your patch. I had to change the version from 5.15 -> 5.14.15 and the sha256key.

It's a pain to paste the PKGBUILD, because I'm on mobile and I've not setup a de or wm to paste into browser. So I've got too type out the PKGBUILD on my phone from the PC.

Last edited by JustCauseWhyNot (2021-11-07 00:00:54)

Offline

#20 2021-11-07 00:06:26

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

The sha256sums array was correct,  it skipped the git repo and had the correct entry for config.
pkgver is generated by the pkgver function automatically.
Why would the pkgver be 5.14.15 when the branch you requested is 5.15.y-rt?
checksum of PKGBUILD after linked patch is applied to commit f80c19cfb1f7d07469ac73a15f7197c9a6680f42 which was the HEAD at the time

sha256sum PKGBUILD 
10891d5cb02760b8cb993067fa571b19a5986c0b04524b3f024752ec9c5119b5  PKGBUILD

Offline

#21 2021-11-07 00:08:00

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

Sorry I had to change the PKGBUILD before your patch was applied. I kept getting errors about patch failing to apply and it would show the difference. I believe the stable patch must've been updated.

Last edited by JustCauseWhyNot (2021-11-07 00:09:01)

Offline

#22 2021-11-07 00:10:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [SOLVED][REQUEST] linux-rt-devel

You don't need to have access to a wm or a DE to post your exact PKGBUILD as it exists on your system: https://wiki.archlinux.org/title/List_o … n_services

Please stop being so evasive about outputs, you waste your and everyone else's time.

Offline

#23 2021-11-07 00:13:03

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED][REQUEST] linux-rt-devel

cd linux-rt-devel-git/trunk/
git reset --hard # clear uncommitted changes
git checkout f80c19cfb1f7d07469ac73a15f7197c9a6680f42 # checkout the commit for 5.14.15
git apply -v linux-rt-devel-git.patch # patch should apply cleanly
sha256sum PKGBUILD # output should match output in post #20 and makepkg should not complain

Last edited by loqs (2021-11-07 00:13:21)

Offline

#24 2021-11-07 00:14:50

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

I do my best to provide as much information. I forgot about pastebin services, but that is very useful to know thank you. I will post pkgbuild in a second.

I'm working on figuring out how to post pkgbuild through ix.io then I will run those commands.

I can't get ix.io working I keep getting curl error. Curl: (26) Failed to open/read local data from file/application. I'm just going to run those command you posted. Sorry about post issues.

Last edited by JustCauseWhyNot (2021-11-07 00:44:48)

Offline

#25 2021-11-07 00:54:13

JustCauseWhyNot
Member
Registered: 2021-10-20
Posts: 34

Re: [SOLVED][REQUEST] linux-rt-devel

The commands did work. Thank you. I apologize about not posting the PKGBUILD. I will do better in the future.

Offline

Board footer

Powered by FluxBB