Skip to content

Instantly share code, notes, and snippets.

Avatar

Sam James thesamesam

View GitHub Profile
View make.conf
# -fdiagnostics-color=always: just for colour
# -frecord-gcc-switches: must be in *ALL* *FLAGS* (harmless but not needed in LDFLAGS) to be effective, or Portage skips it
COMMON_FLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# You can use ${COMMON_FLAGS} here, but please remember to include as-needed manually then.
LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0"
@thesamesam
thesamesam / libxcrypt-migration.md
Last active Oct 21, 2021
Migrating to libxcrypt
View libxcrypt-migration.md

Migrating a Gentoo install to libxcrypt

This is a set of instructions for migrating a Gentoo glibc system's libcrypt provider from glibc[crypt] to libxcrypt[system].

See wiki notes for background, etc.

Fedora did this ~3 years ago, so we're not expecting many problems.

How can I help?

@thesamesam
thesamesam / commit-changed-pkgs
Created Jun 3, 2021
Bash script to commit all changes per-Gentoo-package
View commit-changed-pkgs
#!/bin/bash
## Name: commit-changed-pkgs
## Description:
## Commits all changes with a given template
## Can exclude by maintainer.
## Useful for e.g. big batch changes like a sed across tree
## Usage:
## - bash ~/scripts/commit-changed-pkgs
View gist:2be99bcb4f0178756d7b34430c2cd85f
from nattka.bugzilla import *
# Setup Nattka
nattka_bugzilla = NattkaBugzilla(api_url="http://127.0.0.1:8080/rest", api_key="")
#nattka_bugzilla = NattkaBugzilla("")
bugs = nattka_bugzilla.find_bugs(sanity_check=[True])
arch = "arm64"
for num,bug in bugs.items():