Skip to content

Commit

Permalink
PKGBUILD: Drop .install script (#310)
Browse files Browse the repository at this point in the history
The .install script we had all this time for the rt kernel was never ran on upgrades and installs due to being "sourced"
incorrectly in the PKGBUILD. It should have been "sourced" in `install=` instead for it to be ran. However, sourcing
it this way poses a few problems:

1. If we add `install=` along in the case statements for cpusched types, the post install script will be ran
for each kernel package installed.
2. We could add it to the _package() function for the kernel, but this needs if statements so that its ran on the
correct kernel flavour (clutter IMO). Adding it *only* for the rt kernel in case of `linux-cachyos-rt.install` would
make its PKGBUILD inconsistent with others (a case can be made that the default kernel is now inconsistent with the
other PKGBUILDs, but the default kernel in nature will always be subject to some changes that will not be seen by the other
kernel variants)

Due to the aforementioned problems, drop the post install scripts. This decision was also largely in part of the low
usage count of the rt kernel. We will also be removing `linux-cachyos.install` anyway as it is only a temporary addition
to smooth out migration.

Signed-off-by: Eric Naim <[email protected]>
  • Loading branch information
1Naim authored Oct 6, 2024
1 parent 37bdc2d commit 82a8dc3
Show file tree
Hide file tree
Showing 24 changed files with 21 additions and 187 deletions.
6 changes: 2 additions & 4 deletions linux-cachyos-bmq/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ case "$_cpusched" in
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-bmq/linux-cachyos-rt.install

This file was deleted.

6 changes: 2 additions & 4 deletions linux-cachyos-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ case "$_cpusched" in
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-bore/linux-cachyos-rt.install

This file was deleted.

6 changes: 2 additions & 4 deletions linux-cachyos-deckify/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,10 @@ case "$_cpusched" in
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-deckify/linux-cachyos-rt.install

This file was deleted.

6 changes: 2 additions & 4 deletions linux-cachyos-eevdf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ case "$_cpusched" in
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-eevdf/linux-cachyos-rt.install

This file was deleted.

6 changes: 2 additions & 4 deletions linux-cachyos-hardened/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,10 @@ case "$_cpusched" in
echo) ## ECHO Scheduler
source+=("${_patchsource}/sched/0001-echo-cachy.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-hardened/linux-cachyos-rt.install

This file was deleted.

6 changes: 2 additions & 4 deletions linux-cachyos-lts/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,10 @@ case "$_cpusched" in
bore) ## BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-lts/linux-cachyos-rt.install

This file was deleted.

12 changes: 0 additions & 12 deletions linux-cachyos-rc/linux-cachyos-rt.install

This file was deleted.

1 change: 0 additions & 1 deletion linux-cachyos-rt-bore/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pkgbase = linux-cachyos-rt-bore
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.11/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.11/misc/0001-rt.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.11/sched/0001-bore-cachy-rt.patch
source = linux-cachyos-rt.install
b2sums = 5720e8dd0bed0247dcfe0bdbce17e36e67bff56811611ae1b04f048b77b6e60c2a48303db73c5a0d4a56c7125cdd695116c4dfd965bd7cb28aa932f427bb3e7d
b2sums = 92e635bb3553896146bea23e5e414853723be9843c94750bc6d4bc327a76925bedb2b3b4481f2816a4691d684e417eae0279c1a2019cb37e9e852914696695da
b2sums = b1e964389424d43c398a76e7cee16a643ac027722b91fe59022afacb19956db5856b2808ca0dd484f6d0dfc170482982678d7a9a00779d98cd62d5105200a667
Expand Down
6 changes: 2 additions & 4 deletions linux-cachyos-rt-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ case "$_cpusched" in
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-rt-bore/linux-cachyos-rt.install

This file was deleted.

6 changes: 2 additions & 4 deletions linux-cachyos-sched-ext/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ case "$_cpusched" in
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-sched-ext/linux-cachyos-rt.install

This file was deleted.

6 changes: 2 additions & 4 deletions linux-cachyos-server/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ case "$_cpusched" in
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos-server/linux-cachyos-rt.install

This file was deleted.

1 change: 0 additions & 1 deletion linux-cachyos/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pkgbase = linux-cachyos
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.11/misc/dkms-clang.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.11/sched/0001-sched-ext.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.11/sched/0001-bore-cachy-ext.patch
source = linux-cachyos.install
b2sums = 5720e8dd0bed0247dcfe0bdbce17e36e67bff56811611ae1b04f048b77b6e60c2a48303db73c5a0d4a56c7125cdd695116c4dfd965bd7cb28aa932f427bb3e7d
b2sums = 92e635bb3553896146bea23e5e414853723be9843c94750bc6d4bc327a76925bedb2b3b4481f2816a4691d684e417eae0279c1a2019cb37e9e852914696695da
b2sums = b1e964389424d43c398a76e7cee16a643ac027722b91fe59022afacb19956db5856b2808ca0dd484f6d0dfc170482982678d7a9a00779d98cd62d5105200a667
Expand Down
9 changes: 3 additions & 6 deletions linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -243,21 +243,18 @@ fi
case "$_cpusched" in
cachyos) # CachyOS Scheduler (Sched-ext + BORE + Cachy Sauce)
source+=("${_patchsource}/sched/0001-sched-ext.patch"
"${_patchsource}/sched/0001-bore-cachy-ext.patch"
linux-cachyos.install);;
"${_patchsource}/sched/0001-bore-cachy-ext.patch");;
bore) ## BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch");;
bmq) ## Project C Scheduler
source+=("${_patchsource}/sched/0001-prjc-cachy.patch");;
eevdf) ## 6.12 EEVDF patches
source+=("${_patchsource}/sched/0001-eevdf-next.patch");;
rt) ## EEVDF with RT patches
source+=("${_patchsource}/misc/0001-rt.patch"
linux-cachyos-rt.install);;
source+=("${_patchsource}/misc/0001-rt.patch");;
rt-bore) ## RT with BORE Scheduler
source+=("${_patchsource}/misc/0001-rt.patch"
"${_patchsource}/sched/0001-bore-cachy-rt.patch"
linux-cachyos-rt.install);;
"${_patchsource}/sched/0001-bore-cachy-rt.patch");;
hardened) ## Hardened Patches with BORE Scheduler
source+=("${_patchsource}/sched/0001-bore-cachy.patch"
"${_patchsource}/misc/0001-hardened.patch");;
Expand Down
12 changes: 0 additions & 12 deletions linux-cachyos/linux-cachyos-rt.install

This file was deleted.

11 changes: 0 additions & 11 deletions linux-cachyos/linux-cachyos.install

This file was deleted.

0 comments on commit 82a8dc3

Please sign in to comment.