Skip to content

Instantly share code, notes, and snippets.

View Googulator's full-sized avatar

Googulator

  • I don't work for QuickHeal, despite what myce.com claims.
View GitHub Profile
#!/usr/bin/bash
# Source the environment:
. /steps/bootstrap.cfg
. /steps/env
. /steps/helpers.sh
# enable the loopback interface, which guix needs
ip link set lo up
@Googulator
Googulator / parse-preprocessed.c
Created April 14, 2024 22:18
parse.c before and after preprocessing
# 1 "parse.c"
# 74 "parse.c"
# 1 "flexdef.h" 1
# 37 "flexdef.h"
# 1 "/usr/include/stdio.h" 1
@Googulator
Googulator / Makefile
Created April 13, 2024 23:27
byacc Makefile.old updated for modern byacc
DEST = .
HDRS = defs.h
CFLAGS = -O -DNDEBUG
LDFLAGS =
LIBS =
@Googulator
Googulator / bare-metal-live-bootstrap-gentoo.sh
Last active February 21, 2024 17:40
Gentoo bootstrap on bare metal live-bootstrap (WIP)
# vim:set textwidth=0:
# This guide uses live-bootstrap instead of the old chain
# Modified from https://mid-kid.root.sx/git/mid-kid/bootstrap/src/branch/master/gentoo-2024/gentoo.txt
# NOTE: Not really a shell script, only named .sh for syntax highlighting
# live-bootstrap version: 60ec9ea80ceddd9f7394c2f595fce879ef073009 (Sun Feb 18 17:34:12 2024 +0100)
# LFS version: 12.0
# Gentoo version: 20240201
@Googulator
Googulator / xz.diff
Created February 8, 2024 00:10
Live-bootstrap with XZ
diff --git a/seed/seed.kaem b/seed/seed.kaem
index 68ae36a..b95242f 100755
--- a/seed/seed.kaem
+++ b/seed/seed.kaem
@@ -30,6 +30,7 @@ cp /${ARCH_DIR}/bin/sha256sum ${BINDIR}/sha256sum
cp /${ARCH_DIR}/bin/unbz2 ${BINDIR}/unbz2
cp /${ARCH_DIR}/bin/ungz ${BINDIR}/ungz
cp /${ARCH_DIR}/bin/untar ${BINDIR}/untar
+cp /${ARCH_DIR}/bin/unxz ${BINDIR}/unxz
cp /${ARCH_DIR}/bin/cp ${BINDIR}/cp
@Googulator
Googulator / M2-Planet.diff
Last active February 8, 2024 03:09
build environment for stage0 unxz
diff --git a/M2libc b/M2libc
index de7c75f..479d53d 160000
--- a/M2libc
+++ b/M2libc
@@ -1 +1 @@
-Subproject commit de7c75f144176c3b9be77695d9bf94440445aeae
+Subproject commit 479d53d78cb46f2da6efdad18e1cc87a46cce097
@Googulator
Googulator / lb0205.patch
Created February 5, 2024 03:59
live-bootstrap-nofilelist.patch
diff --git a/builder-hex0 b/builder-hex0
--- a/builder-hex0
+++ b/builder-hex0
@@ -1 +1 @@
-Subproject commit d49733d3e89538b2845f2be90ca6839deabf0042
+Subproject commit d49733d3e89538b2845f2be90ca6839deabf0042-dirty
diff --git a/lib/generator.py b/lib/generator.py
index 272f89f..1828fc6 100755
--- a/lib/generator.py
+++ b/lib/generator.py
@Googulator
Googulator / kconfig,diff
Created January 30, 2024 01:34
Kernel config diff for building 64-bit kernel
--- /steps/linux-4.9.10/files/config Thu Jan 1 00:00:00 1970
+++ /root/linux-4.9.10/.config Tue Jan 30 01:46:58 2024
@@ -1,27 +1,25 @@
-# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
-# SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
#
-# SPDX-License-Identifier: MIT
+# Automatically generated file; DO NOT EDIT.
+# Linux/x86 4.9.10-gnu Kernel Configuration
#
@Googulator
Googulator / perl.diff
Created December 27, 2023 22:14
Perl failure analysis
diff -ru perl-normal/usr/lib/perl5/5.32.1/i386-linux/Config_heavy.pl perl-weird/usr/lib/perl5/5.32.1/i386-linux/Config_heavy.pl
--- perl-normal/usr/lib/perl5/5.32.1/i386-linux/Config_heavy.pl 1970-01-01 01:00:00.000000000 +0100
+++ perl-weird/usr/lib/perl5/5.32.1/i386-linux/Config_heavy.pl 1970-01-01 01:00:00.000000000 +0100
@@ -941,7 +941,7 @@
i8size='1'
i8type='signed char'
i_arpainet='define'
-i_bfd='undef'
+i_bfd='define'
i_bsdioctl=''
@Googulator
Googulator / libtool.diff
Created December 27, 2023 21:02
Libtool failure analysis
diff -ru libtool-normal/usr/share/man/man1/libtool.1 libtool-weird/usr/share/man/man1/libtool.1
--- libtool-normal/usr/share/man/man1/libtool.1 1970-01-01 01:00:00.000000000 +0100
+++ libtool-weird/usr/share/man/man1/libtool.1 1970-01-01 01:00:00.000000000 +0100
@@ -102,7 +102,7 @@
linker: /usr/bin/ld (gnu? yes)
version: libtool (GNU libtool) 2.4.7
automake:
-autoconf: autoconf (GNU Autoconf) 2.53
+autoconf:
.SH AUTHOR