Skip to content

Commit

Permalink
Initial import of files
Browse files Browse the repository at this point in the history
Signed-off-by: Jory Pratt <[email protected]>
  • Loading branch information
anarchpenguin committed Nov 30, 2019
0 parents commit 4baade8
Show file tree
Hide file tree
Showing 106 changed files with 4,128 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if [[ ${FEATURES} == *ccache* && ${EBUILD_PHASE_FUNC} == src_* ]]; then
if [[ ${CCACHE_DIR} == /var/cache/ccache ]]; then
export CCACHE_DIR=/var/cache/ccache/${CATEGORY}/${PN}:${SLOT}
mkdir -p "${CCACHE_DIR}" || die
fi
fi
41 changes: 41 additions & 0 deletions make.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ACCEPT_KEYWORDS="~arm64"

CHOST="aarch64-gentoo-linux-musl"

COMMON_FLAGS="-Os -mcpu=native -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=y --autounmask-keep-masks"
FEATURES="ccache network-sandbox userpriv usersandbox"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j2 --no-print-directory -l4"

PORTAGE_GPG_KEY="0x5E49A760C697EE3A"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-z -9 -f -S .xz"
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

LC_MESSAGES=C

USE="X aac -acl alsa bluetooth bzip2 cairo cdio cgroups -consolekit crypt
cups cxx dbus dri dri3 elogind ffmpeg gtk gtk3 hardened iconv icu introspection
ipv6 jpeg libcanberra libressl libsecret libtirpc lzma mp3 ncurses nptl -nls
opengl openmp pam pcre pdf pic pie png policykit postproc pulseaudio readline
seccomp spell sqlite ssh ssl ssp theora threads tiff truetype udev udisks unicode
upower vpx x264 xattr xcb xinerama xtpax xvid zlib"

CURL_SSL="libressl"
VIDEO_CARDS="fbdev vc4"
INPUT_DEVICES="evdev synaptics"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
L10N="en"

INSTALL_MASK="${INSTALL_MASK} /usr/lib/modules-load.d"

I_KNOW_WHAT_I_AM_DOING=y
DCO_SIGNED_OFF_BY="Jory Pratt <[email protected]>"
1 change: 1 addition & 0 deletions make.profile
1 change: 1 addition & 0 deletions package.keywords/app-editors
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
~app-editors/mousepad-0.4.2 **
6 changes: 6 additions & 0 deletions package.keywords/dev-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
~dev-libs/flatbuffers-1.11.0 **
~dev-libs/libfmt-6.0.0 **
~dev-libs/libfstrcmp-0.7 **
~dev-libs/crossguid-0_pre20150817 **
~dev-libs/rapidjson-1.1.0 **
~dev-libs/keybinder-0.3.2 **
1 change: 1 addition & 0 deletions package.keywords/media-tv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
~media-tv/kodi-18.5 **
1 change: 1 addition & 0 deletions package.keywords/net-irc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
~net-irc/hexchat-2.12.4 **
1 change: 1 addition & 0 deletions package.keywords/sys-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys-libs/fts-standalone **
2 changes: 2 additions & 0 deletions package.keywords/xfce-extra
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
xfce-extra/xfce4-whiskermenu-plugin **
~xfce-extra/xfce4-volumed-pulse-0.2.3 **
1 change: 1 addition & 0 deletions package.mask/dev-lang
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-lang/rust::gentoo
1 change: 1 addition & 0 deletions package.mask/dev-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-libs/elfutils::gentoo
1 change: 1 addition & 0 deletions package.mask/dev-util
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
>=dev-util/android-tools-8.1.0_p1
1 change: 1 addition & 0 deletions package.mask/gnome-base
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnome-base/gnome-keyring::gentoo
2 changes: 2 additions & 0 deletions package.mask/sys-devel
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sys-devel/gcc::gentoo
sys-devel/gdb::gentoo
1 change: 1 addition & 0 deletions package.mask/sys-kernel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys-kernel/linux-headers::musl
7 changes: 7 additions & 0 deletions package.mask/virtual
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Not ready for musl support
#~virtual/cargo-1.37.0
#~virtual/rust-1.37.0

# Do not need any virtuals from smaeul's overlay
virtual/service-manager::smaeul
virtual/logger::smaeul
2 changes: 2 additions & 0 deletions package.use/app-crypt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
app-crypt/gnupg usb
app-crypt/pinentry gnome-keyring
1 change: 1 addition & 0 deletions package.use/app-office
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app-office/libreoffice pdfimport
1 change: 1 addition & 0 deletions package.use/app-portage
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app-portage/portage-utils -qmanifest
2 changes: 2 additions & 0 deletions package.use/app-text
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
app-text/mupdf -javascript
app-text/xmlto text
1 change: 1 addition & 0 deletions package.use/dev-db
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-db/sqlite secure-delete
2 changes: 2 additions & 0 deletions package.use/dev-lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dev-lang/php cli curl gd
dev-lang/rust jemalloc system-llvm
6 changes: 6 additions & 0 deletions package.use/dev-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dev-libs/boost nls
dev-libs/libressl static-libs
dev-libs/libxml2 python
dev-libs/nss utils
dev-libs/xmlsec nss
dev-libs/libpcre2 pcre16
1 change: 1 addition & 0 deletions package.use/gnome-extra
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnome-extra/nm-applet -modemmanager
1 change: 1 addition & 0 deletions package.use/mail-client
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mail-client/thunderbird custom-cflags custom-optimization lightning system-harfbuzz system-icu system-jpeg system-sqlite -system-libvpx
3 changes: 3 additions & 0 deletions package.use/media-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
media-libs/freetype -harfbuzz
media-libs/mesa vulkan
media-libs/libpng apng
1 change: 1 addition & 0 deletions package.use/media-plugins
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
media-plugins/alsa-plugins pulseaudio
1 change: 1 addition & 0 deletions package.use/media-tv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
media-tv/kodi -gdm X
2 changes: 2 additions & 0 deletions package.use/media-video
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
media-video/ffmpeg -openssl
media-video/vlc dvd ffmpeg mpeg mad wxwindows aac dts a52 ogg flac theora oggvorbis matroska freetype bidi xv svga gnutls stream vlm httpd cdda vcd cdio live lua
2 changes: 2 additions & 0 deletions package.use/net-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
net-libs/libpsl -idn
net-libs/nodejs bundled-ssl inspector
2 changes: 2 additions & 0 deletions package.use/net-misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
net-misc/curl http2
net-misc/networkmanager -bluetooth -consolekit iwd -modemmanager -ppp -wext
1 change: 1 addition & 0 deletions package.use/net-nds
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net-nds/openldap sasl
1 change: 1 addition & 0 deletions package.use/net-vpn
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net-vpn/tor tor-hardening
1 change: 1 addition & 0 deletions package.use/net-wireless
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net-wireless/iwd -crda
8 changes: 8 additions & 0 deletions package.use/sys-apps
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sys-apps/baselayout -split-usr
sys-apps/busybox -ipv6 -pam static
sys-apps/coreutils -split-usr
sys-apps/debianutils -installkernel
sys-apps/iproute2 -iptables
sys-apps/openrc -netifrc
sys-apps/portage gentoo-dev
sys-apps/util-linux -cramfs
2 changes: 2 additions & 0 deletions package.use/sys-auth
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sys-auth/elogind debug
sys-auth/pambase -consolekit
2 changes: 2 additions & 0 deletions package.use/sys-devel
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sys-devel/clang default-libcxx
sys-devel/clang-runtime libcxx
3 changes: 3 additions & 0 deletions package.use/sys-fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sys-fs/cryptsetup -argon2 libressl openssl
sys-fs/lvm2 -thin
sys-fs/udisks -lvm
3 changes: 3 additions & 0 deletions package.use/sys-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sys-libs/compiler-rt-sanitizers -libfuzzer -sanitize -xray
sys-libs/pam cracklib
sys-libs/zlib minizip
1 change: 1 addition & 0 deletions package.use/sys-process
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sys-process/procps modern-top
2 changes: 2 additions & 0 deletions package.use/www-client
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
www-client/firefox custom-cflags custom-optimization hwaccel -system-libvpx
www-client/torbrowser custom-cflags custom-optimization hwaccel system-harfbuzz system-icu system-jpeg system-libevent -system-libvpx system-sqlite
1 change: 1 addition & 0 deletions package.use/x11-base
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x11-base/xorg-server -suid
1 change: 1 addition & 0 deletions package.use/x11-drivers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x11-drivers/xf86-video-intel uxa
1 change: 1 addition & 0 deletions package.use/x11-libs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x11-libs/libxcb xkb
1 change: 1 addition & 0 deletions package.use/x11-terms
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x11-terms/rxvt-unicode xft
1 change: 1 addition & 0 deletions package.use/x11-themes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x11-themes/adwaita-icon-theme branding
1 change: 1 addition & 0 deletions package.use/xfce-extra
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xfce-extra/xfce4-power-manager networkmanager
24 changes: 24 additions & 0 deletions patches/app-emulation/libvirt/libvirt-5.2.0-missing-header.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 2d05a702c4daa7b45d67897f01ff6a9508ae9990 Mon Sep 17 00:00:00 2001
From: Jory Pratt <[email protected]>
Date: Sat, 18 May 2019 18:11:22 -0500
Subject: [PATCH] add missing paths header

---
src/storage/storage_backend_fs.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
index 97148ac..d904c79 100644
--- a/src/storage/storage_backend_fs.c
+++ b/src/storage/storage_backend_fs.c
@@ -24,6 +24,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <paths.h>

#include "virerror.h"
#include "storage_backend_fs.h"
--
2.21.0

27 changes: 27 additions & 0 deletions patches/app-emulation/libvirt/libvirt-5.2.0-musl-stderr-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 4670746d253d46a90e92e48e5a7b9516daf93c37 Mon Sep 17 00:00:00 2001
From:
Date: Sat, 18 May 2019 18:03:27 -0500
Subject: [PATCH] undefine stderr for when it is already defined

---
src/qemu/qemu_process.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index dc7317b..6f22a12 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -93,6 +93,10 @@

VIR_LOG_INIT("qemu.qemu_process");

+#ifdef stderr
+# undef stderr
+#endif
+
/**
* qemuProcessRemoveDomainStatus
*
--
2.21.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From bfcd698310256cd46e21ea98104e92bdcfc4f6b3 Mon Sep 17 00:00:00 2001
From:
Date: Sat, 18 May 2019 17:40:28 -0500
Subject: [PATCH 1/4] define SIGRTMIN-MAX for non-GNU libc's

---
linux-user/signal.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/linux-user/signal.c b/linux-user/signal.c
index e2c0b371..7a9494c7 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -26,6 +26,13 @@
#include "trace.h"
#include "signal-common.h"

+#ifndef __SIGRTMIN
+#define __SIGRTMIN 32
+#endif
+#ifndef __SIGRTMAX
+#define __SIGRTMAX (NSIG-1)
+#endif
+
struct target_sigaltstack target_sigaltstack_used = {
.ss_sp = 0,
.ss_size = 0,
--
2.21.0

68 changes: 68 additions & 0 deletions patches/app-emulation/qemu/0002-add-missing-headers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
From f4fb73b1476c7a26104f2c2b6a978f64367a848c Mon Sep 17 00:00:00 2001
From:
Date: Sat, 18 May 2019 17:43:45 -0500
Subject: [PATCH 2/4] add missing headers

---
accel/tcg/user-exec.c | 3 ++-
hw/9pfs/9p.c | 1 +
linux-user/host/ppc64/hostdep.h | 2 ++
linux-user/syscall.c | 1 +
4 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c
index 0789984f..5cc7f020 100644
--- a/accel/tcg/user-exec.c
+++ b/accel/tcg/user-exec.c
@@ -285,9 +285,10 @@ int cpu_signal_handler(int host_signum, void *pinfo,
* From Wine
*/
#ifdef linux
+#include <sys/user.h>
/* All Registers access - only for local access */
#define REG_sig(reg_name, context) \
- ((context)->uc_mcontext.regs->reg_name)
+ (((struct pt_regs *)(context)->uc_mcontext.regs)->reg_name)
/* Gpr Registers access */
#define GPR_sig(reg_num, context) REG_sig(gpr[reg_num], context)
/* Program counter */
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index 55821343..e0dd2361 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -11,6 +11,7 @@
*
*/

+#include <linux/limits.h>
#include "qemu/osdep.h"
#include <glib/gprintf.h>
#include "hw/virtio/virtio.h"
diff --git a/linux-user/host/ppc64/hostdep.h b/linux-user/host/ppc64/hostdep.h
index 98979ad9..58293b0e 100644
--- a/linux-user/host/ppc64/hostdep.h
+++ b/linux-user/host/ppc64/hostdep.h
@@ -17,6 +17,8 @@

#ifndef __ASSEMBLER__

+#include <asm/ptrace.h>
+
/* These are defined by the safe-syscall.inc.S file */
extern char safe_syscall_start[];
extern char safe_syscall_end[];
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 96cd4bf8..c7625858 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -34,6 +34,7 @@
#include <sys/resource.h>
#include <sys/swap.h>
#include <linux/capability.h>
+#include <linux/sockios.h>
#include <sched.h>
#include <sys/timex.h>
#include <sys/socket.h>
--
2.21.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From 4e6e86dfb95756e9cea7a234da9dcdb34e492d38 Mon Sep 17 00:00:00 2001
From:
Date: Sat, 18 May 2019 17:44:47 -0500
Subject: [PATCH 3/4] define F_SHLCK and F_EXLCK for musl

---
linux-user/syscall.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c7625858..426767da 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -113,6 +113,13 @@
#include "qemu.h"
#include "fd-trans.h"

+#ifndef F_SHLCK
+#define F_SHLCK 8
+#endif
+#ifndef F_EXLCK
+#define F_EXLCK 4
+#endif
+
#ifndef CLONE_IO
#define CLONE_IO 0x80000000 /* Clone io context */
#endif
--
2.21.0

Loading

0 comments on commit 4baade8

Please sign in to comment.