[packages/bcc] - rel 6, add patch from Gentoo to use modent reboot call
baggins
baggins at pld-linux.org
Sat Jun 6 22:32:48 CEST 2026
commit 69f87845f3ff065498c1a000481551480c82a5ec
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jun 6 22:32:20 2026 +0200
- rel 6, add patch from Gentoo to use modent reboot call
bcc.spec | 4 +++-
reboot.patch | 29 +++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/bcc.spec b/bcc.spec
index be482f0..5baa1c3 100644
--- a/bcc.spec
+++ b/bcc.spec
@@ -2,7 +2,7 @@ Summary: Bruce's C compiler
Summary(pl.UTF-8): Kompilator C Bruce'a
Name: bcc
Version: 0.16.21
-Release: 5
+Release: 6
License: GPL
Group: Development/Languages
# see also https://github.com/lkundrak/dev86/releases
@@ -17,6 +17,7 @@ Patch5: dev86-noelks.patch
Patch6: dev86-nostrip.patch
Patch7: dev86-make.patch
Patch8: %{name}-libx32.patch
+Patch9: reboot.patch
URL: http://v3.sk/~lkundrak/dev86/
Requires: bin86 >= %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,6 +54,7 @@ są odwzorowywane do jednego z innych typów całkowitych.
%if "%{_lib}" == "libx32"
%patch -P8 -p1
%endif
+%patch -P9 -p1
%{__mv} bootblocks/README README.bootblocks
%{__mv} copt/README README.copt
diff --git a/reboot.patch b/reboot.patch
new file mode 100644
index 0000000..000ff82
--- /dev/null
+++ b/reboot.patch
@@ -0,0 +1,29 @@
+use modern reboot
+diff --git a/elksemu/elks_sys.c b/elksemu/elks_sys.c
+index 5699edc..45c97f7 100644
+--- a/elksemu/elks_sys.c
++++ b/elksemu/elks_sys.c
+@@ -17,6 +17,8 @@
+ #include <signal.h>
+ #include <errno.h>
+ #include <sys/types.h>
++#include <linux/reboot.h>
++#include <sys/reboot.h>
+ #include <sys/resource.h>
+ #include <sys/wait.h>
+ #include <sys/ioctl.h>
+@@ -656,11 +658,11 @@ static int elks_reboot(int bx,int cx,int dx,int di,int si)
+ switch(dx)
+ {
+ /* graceful shutdown, C-A-D off, kill -? 1 */
+- case 0: return reboot(0xfee1dead, 672274793, 0);
++ case 0: return reboot(LINUX_REBOOT_CMD_CAD_OFF);
+ /* Enable C-A-D */
+- case 0xCAD: return reboot(0xfee1dead, 672274793, 0x89abcdef);
++ case 0xCAD: return reboot(LINUX_REBOOT_CMD_CAD_ON);
+ /* Time to die! */
+- case 0xD1E: return reboot(0xfee1dead, 672274793, 0x1234567);
++ case 0xD1E: return reboot(LINUX_REBOOT_CMD_RESTART);
+ }
+ return -1;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bcc.git/commitdiff/69f87845f3ff065498c1a000481551480c82a5ec
More information about the pld-cvs-commit
mailing list