Skip to content

Instantly share code, notes, and snippets.

View Cogitri's full-sized avatar

Rasmus Thomsen Cogitri

View GitHub Profile
@Cogitri
Cogitri / lib
Created November 25, 2018 16:34
lib
gtkd-3.8.4_1: broken, unresolvable shlib `libdruntime-ldc-shared.so.81'
libvted-3.8.4_1: broken, unresolvable shlib `libdruntime-ldc-shared.so.81'
gtkd-3.8.4_1: broken, unresolvable shlib `libphobos2-ldc-shared.so.81'
libvted-3.8.4_1: broken, unresolvable shlib `libphobos2-ldc-shared.so.81'
Transaction aborted due to unresolved shlibs.
[*] Updating `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
[*] Updating `https://alpha.de.repo.voidlinux.org/current/debug/x86_64-repodata' ...
@Cogitri
Cogitri / err
Created November 29, 2018 13:21
err
error[E0277]: the size for values of type `(dyn std::error::Error + 'static)` cannot be known at compilation time
--> src/types.rs:56:6
|
56 | impl From<ErrorKind> for Error {
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `types::ErrorKind`, the trait `std::marker::Sized` is not implemented for `(dyn std::error::Error + 'static)`
= note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
= note: required because it appears within the type `types::ErrorKind`
@Cogitri
Cogitri / manpage
Created December 1, 2018 10:18
manpage
* Should contain explanation of help dialog
* Mention that GIT_AUTHOR_{NAME,EMAIL} and git config are used to determine
maintainer
* Mention need for xtools and that XBPS_XDISTDIR are set.
* Mention that `-u` will _not_ overwrite distfiles and as such will try
to download from the URL specified in distfiles (if it's not equal to
the download URL specified on crates.io/rubygems etc.)
* No download progress bar yet
@Cogitri
Cogitri / stdin
Created December 8, 2018 10:50
stdin
adb:
linux-vdso.so.1 (0x00007fff6e335000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fe14beb6000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fe14be95000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007fe14bd12000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007fe14bd08000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fe14bcee000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fe14bb2d000)
/lib64/ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x00007fe14c125000)
fastboot:
@Cogitri
Cogitri / 0001-fixup-chromium-update-to-71.0.3578.80.patch
Created December 8, 2018 17:02
0001-fixup-chromium-update-to-71.0.3578.80.patch
From b0b7b897f8b6e89279e9ca6b165b1d5029c3b536 Mon Sep 17 00:00:00 2001
From: Rasmus Thomsen <[email protected]>
Date: Sat, 8 Dec 2018 18:01:28 +0100
Subject: [PATCH] fixup! chromium: update to 71.0.3578.80.
---
srcpkgs/chromium/files/musl-patches/musl-hacks.patch | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 srcpkgs/chromium/files/musl-patches/musl-hacks.patch
@Cogitri
Cogitri / tarpaulin-output
Created December 9, 2018 17:53
tarpaulin-output
Finished dev [unoptimized + debuginfo] target(s) in 1m 11s
Processing libtmplgen
Launching test
running /home/rasmus/Projects/tmplgen/target/debug/deps/libtmplgen-b8e8c7132905fb18
running 24 tests
test tests::test_built_in ... ok
test tests::test_correct_license ... ok
test tests::test_crate_check_native_deps ... ok
test tests::test_determine_gem_run_deps ... ok
@Cogitri
Cogitri / 0001-webkit2gtk-update-to-2.22.5.patch
Created December 14, 2018 14:32
0001-webkit2gtk-update-to-2.22.5.patch
From d235d6f277ddc726d55760ebbfabc703f4c18185 Mon Sep 17 00:00:00 2001
From: Rasmus Thomsen <[email protected]>
Date: Fri, 14 Dec 2018 15:31:02 +0100
Subject: [PATCH] webkit2gtk: update to 2.22.5.
* enable WOFF
---
srcpkgs/webkit2gtk/template | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
@Cogitri
Cogitri / iter
Created December 20, 2018 12:37
iter
let correct_license = corrected_vals.licenses.par_iter()
.filter(|x| license == x.is)
.map(|x| x.should.to_string())
.collect::<String>();
@Cogitri
Cogitri / iter
Created December 20, 2018 12:39
iter
let correct_license = corrected_vals.licenses.iter()
// Only continue if we found a matching (wrong) license
.filter(|x| license == x.is)
// Replace it with the right (should-be) license
.map(|x| Some(x.should.to_string()))
.collect::<Option<String>>();
@Cogitri
Cogitri / 0001-systemd-fix-typo-sysuser.d-sysusers.d.patch
Created December 22, 2018 10:55
0001-systemd-fix-typo-sysuser.d-sysusers.d.patch
From 495b1a5022fcb4308c54c44eea899d6da095ff48 Mon Sep 17 00:00:00 2001
From: Rasmus Thomsen <[email protected]>
Date: Sat, 22 Dec 2018 11:54:57 +0100
Subject: [PATCH] systemd: fix typo: sysuser.d -> sysusers.d
---
srcpkgs/systemd/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template