Skip to content

Instantly share code, notes, and snippets.

therealromster

Block or report user

Report or block therealromster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8dc3968dd5f1f3a92b1fef2e616f2c3d
root@space
Sun Sep 01 20:19:23
/usr/ports/contrib/gtkglextmm
# revdep -vvvv pangomm
** calculating deps
** checking 1 ports
** checking linking
pangomm:/usr/: checking file
pangomm:/usr/include/: checking file
pangomm:/usr/include/pangomm-1.4/: checking file
View gist:5206e7234a7e0a315c59285c7f391882
romster@arkanoid
Sun Sep 01 20:12:30
~/projects/crux/contrib
$ sudo prt-get update -fr pangomm gtkglextmm
Password:
prt-get: updating /usr/ports/contrib/pangomm
=======> Building '/usr/ports/contrib/pangomm/pangomm#2.42.0-1.pkg.tar.xz'.
bsdtar -p -o -C /usr/ports/work/pangomm/src -xf /var/ports/distfiles/pangomm-2.42.0.tar.xz
+ build
+ cd pangomm-2.42.0
View gist:ae4c490bd5a872cac20e32fb82729349
/usr/ports/xorg
# for p in *; do
> cd $p
> unset existing new update
> existing="$(grep '^# Depends on:' Pkgfile | tr ',' ' ' | tr -s ' ' | cut -d' ' -f4- | tr ' ' '\n' | sort | uniq | tr '\n' ' ')"
> new="$(finddeps $(basename $PWD) | cut -d' ' -f1 | sed -e '/\(glibc\|binutils\|gcc\)/d' | xargs)"
> update="$(echo "$existing $new" | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/^ \+//')"
> sed -i -e "s/\(^# Depends on:\).*/\1 $update/" Pkgfile
> findredundantdeps -s -f $(basename $PWD)
> cd - >/dev/null
@therealromster
therealromster / gist:90a66368ecf07344ae368f3299f454bb
Created Aug 24, 2019
i got lazy and fixed the dependencies
View gist:90a66368ecf07344ae368f3299f454bb
/usr/ports/xfce-pedja
# for p in *; do
> cd $p
> unset existing new
> existing="$(grep '^# Depends on:' Pkgfile | cut -d' ' -f4-)"
> new="$(finddeps $(basename $PWD) | cut -d' ' -f1 | sed -e '/\(glibc\|binutils\|gcc\)/d' | xargs)"
> sed -i -e "s/^# Depends on: /& $existing $new/" Pkgfile
> findredundantdeps -s -f $(basename $PWD)
> cd - >/dev/null
> done
View gist:71bb6cf76887509c62b40312cfa56e26
$ prt-get deptree steam-native-runtime
-- dependencies ([i] = installed, '-->' = seen before)
[i] steam-native-runtime
[i] brotli-32
[i] brotli
[i] cmake
[i] curl
[i] openssl
[i] zlib
[i] libarchive
@therealromster
therealromster / ports-1.5_permissions.patch
Created Feb 27, 2019
crux ports permisions as user pkgmk
View ports-1.5_permissions.patch
diff -pruN ports-1.5.orig ports-1.5
--- ports-1.5.orig/ports.in 2004-03-08 07:55:24.000000000 +1100
+++ ports-1.5/ports.in 2009-01-14 16:53:29.000000000 +1100
@@ -118,6 +118,11 @@
fi
}
+fix_permissions() {
+ chown -R pkgmk:pkgmk "${PORTS_DIR}"
+ find "${PORTS_DIR}" -type d -exec chmod 0775 {} \;
View gist:9e34bd7fa3417a46a78a24baad87a94a
$ diff -u ~/bin/finddeps /usr/bin/finddeps
--- /home/romster/bin/finddeps 2018-07-22 23:06:23.082149567 +1000
+++ /usr/bin/finddeps 2017-11-12 16:57:47.000000000 +1100
@@ -8,11 +8,11 @@
version=1.9.1
pkgdb="/var/lib/pkg/db"
-export LD_LIBRARY_PATH=/lib:/usr/lib:/lib32:/usr/lib32:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/X11/lib:$LD_LIBRARY_PATH
@therealromster
therealromster / build-contrib.sh
Created Jul 1, 2017
Build packages that depend on package and work though the tree while reducing the need to remove every package for each build
View build-contrib.sh
#!/bin/bash
cd /usr/ports/contrib
for a in $(for b in $(for b in $(for d in *; do
prt-get quickdep $d
done \
| sort | uniq | awk '{print NF" "$0}' | sort -gr | cut -d' ' -f2- | awk '{print $(NF-1)"/"$NF}' | sort); do
echo $b; done \
| sed -e 's|^/.*||g' -e '/^\s*$/d'); do
@therealromster
therealromster / Pkgfile
Created Jun 21, 2017
zlib-compat for Krita appimage
View Pkgfile
# Description: A compression/decompression Library
# URL: http://www.zlib.net/
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=zlib-compat
version=1.2.9
release=1
#source=(http://www.zlib.net/$name-$version.tar.gz)
source=(http://zlib.net/fossils/zlib-$version.tar.gz)
@therealromster
therealromster / fcron.log
Created Mar 12, 2017
opt/fcron fails to build asks to create user despite pre-install script (built in docker as root)
View fcron.log
prt-get: installing /usr/ports/opt/fcron
groupadd: GID '45' already exists
useradd: group 'fcron' does not exist
passwd: user 'fcron' does not exist
=======> Building '/var/ports/packages/fcron#3.2.1-1.pkg.tar.xz'.
bsdtar -p -o -C /usr/ports/opt/fcron/work/src -xf /usr/ports/opt/fcron/fcron-3.2.1.src.tar.gz
cp fcron /usr/ports/opt/fcron/work/src
cp systab.orig /usr/ports/opt/fcron/work/src
+ build
+ cd fcron-3.2.1
You can’t perform that action at this time.