Skip to content

Instantly share code, notes, and snippets.

View Cogitri's full-sized avatar

Rasmus Thomsen Cogitri

View GitHub Profile
@Cogitri
Cogitri / fix-poppler-082.patch
Created October 26, 2019 11:01
fix-poppler-082.patch
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx.orig 2019-10-26 12:40:49.670720552 +0200
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx 2019-10-26 12:40:52.894158294 +0200
@@ -232,10 +232,17 @@
virtual void eoClip(GfxState *state) override;
//----- text drawing
+#if POPPLER_CHECK_VERSION(0, 82, 0)
+ virtual void drawChar(GfxState *state, double x, double y,
+ double dx, double dy,
+ double originX, double originY,
@Cogitri
Cogitri / fix-poppler-082.patch
Created October 26, 2019 10:56
fix-poppler-082.patch
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx.orig 2019-10-26 12:40:49.670720552 +0200
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx 2019-10-26 12:40:52.894158294 +0200
@@ -232,10 +232,17 @@
virtual void eoClip(GfxState *state) override;
//----- text drawing
+#if POPPLER_CHECK_VERSION(0, 82, 0)
+ virtual void drawChar(GfxState *state, double x, double y,
+ double dx, double dy,
+ double originX, double originY,
@Cogitri
Cogitri / fix-poppler-082.patch
Created October 26, 2019 10:42
fix-poppler-082.patch
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx.orig 2019-10-26 12:40:49.670720552 +0200
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx 2019-10-26 12:40:52.894158294 +0200
@@ -232,10 +232,17 @@
virtual void eoClip(GfxState *state) override;
//----- text drawing
+#if POPPLER_CHECK_VERSION(0, 82, 0)
+ virtual void drawChar(GfxState *state, double x, double y,
+ double dx, double dy,
+ double originX, double originY,
@Cogitri
Cogitri / lo_log
Created October 26, 2019 09:50
lo_log
[C ] soltools/mkdepend/include.c
[C ] soltools/mkdepend/main.c
[C ] soltools/mkdepend/parse.c
[C ] soltools/mkdepend/pr.c
In file included from /home/rasmus/aports/community/libreoffice/src/libreoffice-6.3.2.2/sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx:24,
from /home/rasmus/aports/community/libreoffice/src/libreoffice-6.3.2.2/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx:20:
/home/rasmus/aports/community/libreoffice/src/libreoffice-6.3.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:235:22: error: 'virtual void pdfi::PDFOutDev::drawChar(GfxState*, double, double, double, double, double, double, CharCode, int, Unicode*, int)' marked 'override', but does not override
235 | virtual void drawChar(GfxState *state, double x, double y,
| ^~~~~~~~
/home/rasmus/aports/community/libreoffice/src/libreoffice-6.3.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:251:22: error: 'virtual void pdfi::PDFOutDev::drawImage(GfxState*, Object*, S
@Cogitri
Cogitri / log
Created October 24, 2019 07:00
log
This file has been truncated, but you can view the full file.
(1/226) Installing alsa-lib (1.1.9-r0)
(2/226) Installing alsa-lib-dev (1.1.9-r0)
(3/226) Installing m4 (1.4.18-r1)
(4/226) Installing perl (5.30.0-r0)
(5/226) Installing autoconf2.13 (2.13-r1)
(6/226) Installing automake (1.16.1-r0)
(7/226) Installing bsd-compat-headers (0.7.1-r0)
(8/226) Installing bzip2-dev (1.0.8-r1)
(9/226) Installing llvm-libunwind (9.0.0-r0)
(10/226) Installing llvm-libunwind-dev (9.0.0-r0)
@Cogitri
Cogitri / 0001-refactor-editview-use-a-GtkDrawingArea-in-a-GtkViewp.patch
Created October 20, 2019 08:14
0001-refactor-editview-use-a-GtkDrawingArea-in-a-GtkViewp.patch
From 2f25242ba6d169459989862ebad91480d3abd983 Mon Sep 17 00:00:00 2001
From: Rasmus Thomsen <oss@cogitri.dev>
Date: Sun, 20 Oct 2019 10:09:38 +0200
Subject: [PATCH] refactor(editview): use a GtkDrawingArea in a GtkViewport
instead of a GtkLayout
The GtkLayout has higher overhead and has been removed in GTK4. To switch we had
to change a few things:
* We previously tried to be too smart (as in we calculated vadj's value into
@Cogitri
Cogitri / aufgabe4.c
Created October 19, 2019 11:23
aufgabe4.c
/*******************************************
Project: Programmieren in C
Autor: Rasmus Thomsen & Thorben Rolf
Datum: 17.11.2019
*******************************************/
#include <stdio.h>
int main(void) {
float taxrate;
@Cogitri
Cogitri / homerasmustest-gnupg-collection-fail
Created October 15, 2019 13:00
/home/rasmus/test-gnupg-collection-fail
ERROR: test-gnupg-collection
============================
# ./build/tap-driver --test-name test-gnupg-collection --log-file test-gnupg-collection.log --trs-file test-gnupg-collection.trs --color-tests yes --enable-hard-errors yes --expect-failure no --format=tap -- ./build/tap-gtester ./test-gnupg-collection
# random seed: R02S515c7f26134d21e0dd709f9fa15cc235
1..3
# Start of gcr tests
# Start of gnupg-collection tests
ok 1 /gcr/gnupg-collection/properties
# Gcr-DEBUG: starting public load phase
@Cogitri
Cogitri / aegisub-output
Created September 22, 2019 21:56
aegisub-output
Gtk-Message: 23:55:06.429: Failed to load module "canberra-gtk-module"
Paths:
?user: "/home/rasmus/.var/app/org.aegisub.Aegisub/config/aegisub"
?local: "/home/rasmus/.var/app/org.aegisub.Aegisub/data/aegisub"
?data: "/app/share/aegisub"
?dictionary: "/app/share/hunspell"
?temp: "/home/rasmus/.var/app/org.aegisub.Aegisub/cache"
./src/unix/glx11.cpp(767): assert "ok" failed in GetGLXVersion(): GLX version not found
./src/unix/glx11.cpp(616): assert ""Assert failure"" failed in InitVisual(): Failed to get a XVisualInfo for the requested attributes.
@Cogitri
Cogitri / 0001-1.patch
Created September 15, 2019 13:02
0001-1.patch
From c1ead0c01623a20bbad04b31f2b9ee37bcd2379d Mon Sep 17 00:00:00 2001
From: Rasmus Thomsen <oss@cogitri.dev>
Date: Sun, 15 Sep 2019 14:20:45 +0200
Subject: [PATCH] 1
---
community/pulseaudio/APKBUILD | 3 +-
community/pulseaudio/link-libintl.patch | 133 ++++++++++++++++++++++++
2 files changed, 135 insertions(+), 1 deletion(-)
create mode 100644 community/pulseaudio/link-libintl.patch