Skip to content

Instantly share code, notes, and snippets.

View ilyxa's full-sized avatar

Ilya Tyshchenko ilyxa

View GitHub Profile
@ilyxa
ilyxa / PKGBUILD.mt-st-git.1.14
Created August 29, 2021 20:37
Modern mt-st-git variant for Archlinux
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Sam Stuewe <halosghost at archlinux dot info>
# Contributor: skottish <skottish97215 at gmail com>
set -u
_pkgname='mt-st'
pkgname="${_pkgname}-git"
pkgver=1.4.r10.gfbfd923
pkgrel=1
pkgdesc='Utilities for managing magnetic tape storage devices'
@ilyxa
ilyxa / gist:34cfa182b84c159698f934e28b261665
Created December 21, 2017 16:15
git diff #solaris MPD compile error
diff --git a/src/util/WStringAPI.hxx b/src/util/WStringAPI.hxx
index 6ed7889..869f058 100644
--- a/src/util/WStringAPI.hxx
+++ b/src/util/WStringAPI.hxx
@@ -107,8 +107,12 @@ UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept
UnsafeCopyString(dest, src);
return dest + StringLength(dest);
#else
+#if defined(__sun) && defined (__SVR4)
+ return std::wcpcpy(dest, src);
@ilyxa
ilyxa / gist:853f834e2aa00cc421355bb0b87414cd
Created December 21, 2017 16:13
solaris 11.3 mpd compile error
$ gmake V=1
gmake all-am
gmake[1]: Entering directory `/develop/source/mpd/MPD'
depbase=`echo src/util/WStringCompare.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -std=c++14 -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -I/develop/source/mpd/boost -DSYSTEM_CONFIG_FILE_LOCATION='"/develop/build/etc/mpd.conf"' -I/usr/include -I/develop/build/include -D_POSIX_PTHREAD_SEMANTICS -pthread -g -O2 -fvisibility=hidden -fno-threadsafe-statics -fmerge-all-constants -ffast-math -ftree-vectorize -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -Wno-noexcept-type -MT src/util/WStringCompare.o -MD -MP -MF $depbase.Tpo -c -o src/util/WStringCompare.o src/util/WStringCompare.cxx &&\
mv -f $depbase.Tpo $depbase.Po
In file included from src/util/WStringCompare.hxx:34:0,
from src/util/WStringCompare.cxx:30:
src/util/WStringAPI.hxx: In function 'wchar_t* UnsafeCopyStringP(wchar_t*, const wchar_t*)':
src/util/WStringAPI.hxx:110:26:
@ilyxa
ilyxa / gist:5269753a723434f22d50107adcb4fc89
Created November 28, 2017 10:48
aac ffmpeg only for Solaris 11.3
./configure \
--strip=gstrip \
--prefix=/develop/build \
--disable-shared \
--enable-static \
--disable-debug \
--disable-avdevice \
--disable-avfilter \
--disable-swscale \
--enable-ffmpeg \