Skip to content

Instantly share code, notes, and snippets.

View danielhams's full-sized avatar

Daniel Hams danielhams

View GitHub Profile
@danielhams
danielhams / quickstartformassive.txt
Created August 8, 2020 14:07
How to generate the world builder and minimal install set scripts
# Make some directories where stuff will be dumped
mkdir -p ~/build0.0.6/SCRIPTS
mkdir -p ~/build0.0.6/OUTPUT
cd ~/build0.0.6/SCRIPTS
# Run the world builder to generate a script that will build the world
# Be careful that the sgug-rse GIT repo should be on the release branch
# and up to date (you must do this manually)
sgug_world_builder -i /path/to/the/0.0.6/SRPMS -o ~/build0.0.6/OUTPUT -g ~/sgug-rse.git
# (It will run for a while)
# Now edit the generated file - it will remove everything under ~/rpmbuild when run - so
@danielhams
danielhams / xtrusstoleafy.txt
Created July 20, 2020 12:34
Trace of the X protocol chat of the simple GTK2 application that is crashing.
QueryExtension(name="BIG-REQUESTS") = {present=False, major-opcode=0, first-event=0, first-error=0}
CreateGC(cid=g#03400000, drawable=wp#0000004F, background=0x00FFFFFF)
GetProperty(window=w#0000004F, property=a"RESOURCE_MANAGER", type=a"STRING", long-offset=0, long-length=100000000, delete=False) = {type=None}
QueryExtension(name="XKEYBOARD") = {present=True, major-opcode=138, first-event=88, first-error=149}
XKEYBOARD:UnknownExtensionRequest0(bytes=8)
... XKEYBOARD:UnknownExtensionRequest0(bytes=8) = {<unable to decode reply data>}
InternAtom(name="UTF8_STRING", only-if-exists=False) = <unfinished>
InternAtom(name="WM_CLIENT_LEADER", only-if-exists=False) = <unfinished>
InternAtom(name="WM_DELETE_WINDOW", only-if-exists=False) = <unfinished>
InternAtom(name="WM_LOCALE_NAME", only-if-exists=False) = <unfinished>
diff -u -r gtk+-2.24.32-orig/demos/testpixbuf-color.c gtk+-2.24.32/demos/testpixbuf-color.c
--- gtk+-2.24.32-orig/demos/testpixbuf-color.c 2016-10-22 05:10:51.000000000 +0000
+++ gtk+-2.24.32/demos/testpixbuf-color.c 2020-07-18 15:49:18.220881080 +0000
@@ -6,7 +6,7 @@
#include <gtk/gtk.h>
-#define ICC_PROFILE "/usr/share/color/icc/bluish.icc"
+#define ICC_PROFILE "/usr/sgug/share/color/icc/bluish.icc"
#define ICC_PROFILE_SIZE 3966
@danielhams
danielhams / fullstacktrace.txt
Created July 20, 2020 11:24
Stack trace of the gdk_x_error triggered with the simple application
Breakpoint 1, gdk_x_error (display=0x10043630, error=0x7ffb72a8)
at gdkmain-x11.c:459
459 if (error->error_code)
(gdb) where
#0 gdk_x_error (display=0x10043630, error=0x7ffb72a8) at gdkmain-x11.c:459
#1 0x04a29650 in _XError (dpy=0x10043630, rep=0x101335f8) at XlibInt.c:1491
#2 0x04a232fc in handle_error (dpy=0x10043630, err=0x101335f8, in_XReply=0)
at xcb_io.c:200
#3 0x04a23aa4 in handle_response (dpy=0x10043630, response=0x101335f8,
in_XReply=0) at xcb_io.c:325
@danielhams
danielhams / main.c
Created July 20, 2020 11:19
Simplest GTK2 app for debugging
#include <gtk/gtk.h>
#define WIDTH 640
#define HEIGHT 480
int
main (int argc, char **argv)
{
GtkWidget *window;
@danielhams
danielhams / notyetin0.0.6.txt
Created July 16, 2020 18:04
List of packages in wipnonautomated not yet in releasepackages.lst
ImageMagick
ORBit2
SDL
ascii
aspell
atkmm
audiofile
autoconf-archive
bc
cairomm
@danielhams
danielhams / docbook-utils-build.txt
Created June 25, 2020 20:31
Success for docbook-utils build
warning: bogus date in %changelog: Tue Nov 05 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.14-12
Executing(%prep): /usr/sgug/bin/sh -e /usr/sgug/var/tmp/rpm-tmp.001077
+ umask 022
+ cd /usr/people/dan/rpmbuild/BUILD
+ cd /usr/people/dan/rpmbuild/BUILD
+ rm -rf docbook-utils-0.6.14
+ /usr/sgug/bin/gzip -dc /usr/people/dan/rpmbuild/SOURCES/docbook-utils-0.6.14.tar.gz
+ /usr/sgug/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
@danielhams
danielhams / pythonbuildstate.log
Created June 22, 2020 20:56
Packages + version to check for the python3 build issue you have:
[sgugshell dan@leafy sgug-rse.git]$ rpm -qa |sort >/tmp/sortedpackages.txt
alternatives-1.11-8.sgugbeta.mips
asciidoc-8.6.10-0.11.20180605git986f99d.sgugbeta.noarch
asciidoc-doc-8.6.10-0.11.20180605git986f99d.sgugbeta.noarch
aterm-1.0.1-30.sgugbeta.mips
atk-2.34.1-2.sgugbeta.mips
atk-devel-2.34.1-2.sgugbeta.mips
autoconf-2.69-33.sgugbeta.noarch
automake-1.16.1-14.sgugbeta.noarch
@danielhams
danielhams / python3build.log
Created June 20, 2020 21:52
Success build log
This file has been truncated, but you can view the full file.
[sgugshell dan@leafy SPECS]$ rpmbuild -ba python3.spec --nocheck 1>/tmp/python3build.log 2>&1
warning: line 340: It's not recommended to have unversioned Obsoletes: Obsoletes: python37
warning: extra tokens at the end of %endif directive in line 576: %endif # with debug_build
warning: extra tokens at the end of %else directive in line 578: %else # with flatpackage
warning: extra tokens at the end of %endif directive in line 602: %endif # with flatpackage
warning: extra tokens at the end of %endif directive in line 766: %endif # with debug_build
@danielhams
danielhams / devices.txt
Created June 19, 2020 16:39
List of /dev/ devices on leafy IRIX64
[sgugshell dan@leafy dev]$ pwd
/dev
[sgugshell dan@leafy dev]$ ls -alrt |sort
-rwxr-xr-x 1 root sys 28764 Jun 10 2018 MAKEDEV
crw------- 1 root sys 10, 31 Jun 19 17:38 if_sl
crw------- 1 root sys 10, 52 Jun 19 17:38 if_ppp
crw------- 1 root sys 45, 0 Jun 19 17:38 fsctl
crw------- 1 root sys 59, 0 Jun 19 17:38 ipfilter
crw------- 1 root sys 265, 0 Jun 19 17:38 xconns
crw------- 2 dan sys 15, 11 Jun 19 17:38 ttyq11