lots of moving

This commit is contained in:
Ella-0 2021-08-03 22:17:36 +00:00
parent e46f5d532a
commit 31d9629111
46 changed files with 0 additions and 0 deletions

View file

@ -1,28 +0,0 @@
pkgname=alsa-lib
pkgver=1.2.5.1
fetch() {
curl -L "http://www.alsa-project.org/files/pub/lib/alsa-lib-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,22 +0,0 @@
pkgname=bat
pkgver=0.17.1
fetch() {
curl -L "https://github.com/sharkdp/bat/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
cargo build --release --locked --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/"
}
license() {
cd $pkgname-$pkgver
cat LICENSE-MIT
}

View file

@ -1,26 +0,0 @@
pkgname=bin86
pkgver=0.16.21
fetch() {
curl "https://sources.archlinux.org/other/community/dev86/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cd $pkgname-$pkgver
curl -L "https://github.com/ataraxialinux/ataraxia/raw/master/stuff/bin86/bin86-0.16.17-x86_64-1.patch" | patch -p1
}
build() {
cd $pkgname-$pkgver
gmake PREFIX=/usr
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/usr/bin
install -d $pkgdir/usr/share/man/man1
gmake PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man/man1 install
}
license() {
cd $pkgname-$pkgver
cat README
}

View file

@ -1,30 +0,0 @@
pkgname=brotli
pkgver=1.0.9
fetch() {
curl -L "https://github.com/google/brotli/archive/refs/tags/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,30 +0,0 @@
pkgname=ccache
pkgver=4.2.1
fetch() {
curl -L "https://github.com/ccache/ccache/releases/download/v4.2.1/ccache-4.2.1.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,35 +0,0 @@
pkgname=distcc
pkgver=3.3.5
bad="gmake"
fetch() {
curl -L "https://github.com/distcc/distcc/releases/download/v$pkgver/distcc-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--without-libiberty
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
install -d $pkgdir/usr/lib/distcc
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/cc
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/c89
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/c99
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/c++
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -1,40 +0,0 @@
pkgname=dropbear
pkgver=2020.81
bad=gmake
ext=doc
fetch() {
curl "https://matt.ucc.asn.au/dropbear/releases/dropbear-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.bz2
tar -xf $pkgname-$pkgver.tar.bz2
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
gmake PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
ln -sr $pkgdir/usr/sbin/dropbear $pkgdir/usr/sbin/sshd
ln -sr $pkgdir/usr/bin/dbclient $pkgdir/usr/bin/ssh
rm -r $pkgdir/usr/share
}
package_doc() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/sbin
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,28 +0,0 @@
pkgname=ffmpeg
pkgver=4.4
fetch() {
curl "https://ffmpeg.org/releases/ffmpeg-4.3.2.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-openssl \
--cc=cc
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,32 +0,0 @@
pkgver=3.1.2
pkgname=fish
pkgrel=1
fetch() {
curl -L "https://github.com/fish-shell/fish-shell/releases/download/3.1.2/fish-3.1.2.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
patch -p1 < ../../output_tputs_cast.patch
}
build() {
cd $pkgname-$pkgver
mkdir build
cd build
cmake -G Ninja .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXE_LINKER_FLAGS=-lterminfo \
-DCMAKE_INSTALL_PREFIX='/usr'
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR="$pkgdir/" samu install
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -1,8 +0,0 @@
--- git_version_gen.sh.1
+++ git_version_gen.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Originally from the git sources (GIT-VERSION-GEN)
# Presumably (C) Junio C Hamano <junkio@cox.net>
# Reused under GPL v2.0

View file

@ -1,11 +0,0 @@
--- a/src/output.cpp
+++ b/src/output.cpp
@@ -364,7 +364,7 @@
scoped_push<outputter_t *> push(&s_tputs_receiver, this);
// On some systems, tputs takes a char*, on others a const char*.
// Like tparm, we just cast it to unconst, that should work everywhere.
- return tputs(const_cast<char *>(str), affcnt, tputs_writer);
+ return tputs(const_cast<char *>(str), affcnt, (int (*)(int)) tputs_writer);
}
/// Write a wide character to the outputter. This should only be used when writing characters from

View file

@ -1,28 +0,0 @@
pkgname=flex
pkgver=2.6.4
fetch() {
curl -L "https://github.com/westes/flex/releases/download/v2.6.4/flex-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,23 +0,0 @@
pkgname=glibr
pkgver=main
fetch() {
curl -L "https://github.com/iglunix/glibr/archive/main.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
make
}
package() {
cd $pkgname-$pkgver
make install PREFIX=/usr DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,22 +0,0 @@
pkgname=glow
pkgver=1.3.0
fetch() {
curl -L "https://github.com/charmbracelet/glow/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
go build -o build/
}
package() {
cd $pkgname-$pkgver
install -Dm755 build/$pkgname $pkgdir/usr/bin/$pkgname
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,47 +0,0 @@
pkgver=main
pkgname=iglunix
pkgrel=1
deps="busybox:toybox"
bad=""
ext="dev:doc"
fetch() {
mkdir $pkgname-$pkgver
cp ../profile.sh .
cp ../motd .
cd $pkgname-$pkgver
cp ../../../../scripts/iglu*.sh .
cp ../../../../man/iglu.8 .
cp ../../../../LICENSE .
}
build() {
cd $pkgname-$pkgver
echo "Nothing to do"
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/etc/
install -Dm644 ../profile.sh $pkgdir/etc/profile
install -Dm644 ../motd $pkgdir/etc/
install -d $pkgdir/usr/sbin
install -Dm755 iglu.sh $pkgdir/usr/sbin/iglu
}
package_dev() {
cd $pkgname-$pkgver
install -d $pkgdir/usr/bin
install -Dm755 iglupkg.sh $pkgdir/usr/bin/iglupkg
}
package_doc() {
cd $pkgname-$pkgver
install -d $pkgdir/usr/share/man/man8
install -Dm644 iglu.8 $pkgdir/usr/share/man/man8
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,14 +0,0 @@
|
| |
|
| ________
| /\ | \
/ \ | \ |
/ \ \ |
/ \________\
\ / /
\ / /
\ / /
\/________/
Iglunix: Drop the Packages

View file

@ -1,20 +0,0 @@
# Setup Path
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
export POSIX_ME_HARDER=1
# Setup Shell Prompt
if [ "$(whoami)" == "root" ]; then
export PS1=$(hostname)"# "
else
export PS1=$(hostname)"$ "
fi
# Replace TERM with xterm because netbsd-curses doesn't include alacritty
if [ "$TERM" == "alacritty" ]; then
export TERM=xterm
fi
# load profile
for file in $(ls /etc/profile.d); do
. /etc/profile.d/$file
done

View file

@ -1,28 +0,0 @@
pkgname=libass
pkgver=0.15.0
fetch() {
curl -L "https://github.com/libass/libass/releases/download/0.15.0/libass-0.15.0.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--disable-asm
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -1,30 +0,0 @@
pkgver=3.3
pkgname=libffi
bad="gmake"
ext="dev"
fetch() {
curl -L "https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
package_dev() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,34 +0,0 @@
pkgname=libinput
pkgver=1.16.4
fetch() {
curl "https://www.freedesktop.org/software/libinput/libinput-1.16.4.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib \
-Dlibwacom=false \
-Ddocumentation=false \
-Ddebug-gui=false \
-Dtests=false
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,28 +0,0 @@
pkgname=libpng
pkgver=1.6.37
fetch() {
curl -L "https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,30 +0,0 @@
pkgname=librespot
pkgver=0.2.0
_clear_vendor_checksums() {
sed -i 's/\("files":{\)[^}]*/\1/' vendor/$1/.cargo-checksum.json
}
fetch() {
curl -L "https://github.com/librespot-org/librespot/archive/refs/tags/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cd $pkgname-$pkgver
mkdir -p .cargo
cargo vendor > .cargo/config
}
build() {
cd $pkgname-$pkgver
cargo build --release --locked --no-default-features --features alsa-backend
}
package() {
cd $pkgname-$pkgver
install -Dm755 target/release/$pkgname $pkgdir/usr/bin/$pkgname
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,26 +0,0 @@
pkgname=libudev-zero
pkgver=0.4.7
fetch() {
curl -L "https://github.com/illiliti/libudev-zero/archive/0.4.7.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
make
cd contrib
cc helper.c -o libudev-zero-hotplug-helper
}
package() {
cd $pkgname-$pkgver
make install PREFIX=/usr DESTDIR=$pkgdir
install -d $pkgdir/usr/sbin
install -Dm755 ./contrib/libudev-zero-hotplug-helper $pkgdir/usr/sbin/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,30 +0,0 @@
pkgver=2.9.10
pkgname=libxml2
bad=""
ext="dev"
fetch() {
curl "ftp://xmlsoft.org/libxml2/libxml2-2.9.10.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --without-python
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
package_dev() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat Copyright
}

View file

@ -1,42 +0,0 @@
pkgname=lilo
pkgver=24.2
fetch() {
curl "http://ftp.debian.org/debian/pool/main/l/lilo/lilo_$pkgver.orig.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cd $pkgname-$pkgver
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/0001-fix-build-with-clang.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/01_makefile-adds.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/03_keytab-lilo.8-debian-based.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/05_readme.disk-change.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/06_notinteractive.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/07_hardening-cflags%2Bcppflags.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/08_small-typos-in-manpages.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/09_fix-manpage-lilo-conf-5.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/10_fix-manpage-lilo-conf-5.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/11_fix-gcc-10.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/lilo-24.1-remove-O_ACCMODE.patch" | patch -p1
curl -L "https://raw.githubusercontent.com/ataraxialinux/ataraxia/master/stuff/lilo/lilo-24.1-remove__GLIBC__.patch" | patch -p1
sed -i Makefile src/Makefile \
-e '/strip/d;s|^ make| $(MAKE)|g' \
-e '/images install/d' \
-e '/images all/d'
patch -p1 < ../../checkit.patch
}
build() {
cd $pkgname-$pkgver
gmake CC="${CC:-clang}"
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -1,10 +0,0 @@
--- Makefile
+++ Makefile
@@ -88,7 +88,6 @@
#
test: test.img
test.img:
- ./checkit
echo Tested >test.img
#

View file

@ -1,31 +0,0 @@
pkgname=lynx
pkgver=2.8.9
fetch() {
curl "https://invisible-mirror.net/archives/lynx/tarballs/lynx2.8.9rel.1.tar.bz2" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv lynx2.8.9rel.1 $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--with-ssl=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,27 +0,0 @@
pkgname=mold
pkgver=main
deps="musl:libexecinfo"
fetch() {
curl -L "https://github.com/rui314/mold/archive/refs/heads/main.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
patch -p1 < ../../musl.patch
}
build() {
cd $pkgname-$pkgver
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
ln -sr $pkgdir/usr/bin/mold $pkgdir/usr/bin/ld.mold
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,95 +0,0 @@
diff --git a/Makefile b/Makefile
index 1b36943..c6e0407 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ CPPFLAGS = -g -Imimalloc/include -pthread -std=c++20 \
-DGIT_HASH=\"$(GIT_HASH)\" \
$(EXTRA_CPPFLAGS)
LDFLAGS += $(EXTRA_LDFLAGS) -rdynamic
-LIBS = -Wl,-as-needed -lcrypto -pthread -lz -lxxhash -ldl -lm
+LIBS = -Wl,-as-needed -lcrypto -pthread -lz -lxxhash -lexecinfo -ldl -lm
OBJS = main.o object_file.o input_sections.o output_chunks.o \
mapfile.o perf.o linker_script.o archive_file.o output_file.o \
subprocess.o gc_sections.o icf.o symbols.o cmdline.o filepath.o \
diff --git a/mold.h b/mold.h
index 550545c..8bab9b9 100644
--- a/mold.h
+++ b/mold.h
@@ -27,6 +27,7 @@
#include <tbb/task_group.h>
#include <unistd.h>
#include <unordered_set>
+#include <unordered_map>
#include <vector>
#include <xxh3.h>
@@ -41,6 +42,9 @@ typedef int32_t i32;
typedef int64_t i64;
static constexpr i32 SECTOR_SIZE = 512;
+#ifdef PAGE_SIZE
+#undef PAGE_SIZE
+#endif
static constexpr i32 PAGE_SIZE = 4096;
static constexpr i32 SHA256_SIZE = 32;
@@ -2198,7 +2202,7 @@ InputFile<E>::get_string(Context<E> &ctx, const ElfShdr<E> &shdr) {
u8 *end = begin + shdr.sh_size;
if (mb->data(ctx) + mb->size() < end)
Fatal(ctx) << *this << ": shdr corrupted";
- return {(char *)begin, (char *)end};
+ return {(char *)begin, (size_t)(end-begin)};
}
template <typename E>
diff --git a/oneTBB/include/oneapi/tbb/detail/_config.h b/oneTBB/include/oneapi/tbb/detail/_config.h
index 27a3dd7..bb422b0 100644
--- a/oneTBB/include/oneapi/tbb/detail/_config.h
+++ b/oneTBB/include/oneapi/tbb/detail/_config.h
@@ -257,7 +257,7 @@
#define __TBB_CPP20_COMPARISONS_PRESENT __TBB_CPP20_PRESENT
#endif
-#define __TBB_RESUMABLE_TASKS (!__TBB_WIN8UI_SUPPORT && !__ANDROID__)
+#define __TBB_RESUMABLE_TASKS (!__TBB_WIN8UI_SUPPORT && __GLIBC__)
/* This macro marks incomplete code or comments describing ideas which are considered for the future.
* See also for plain comment with TODO and FIXME marks for small improvement opportunities.
diff --git a/oneTBB/src/tbbmalloc_proxy/proxy.cpp b/oneTBB/src/tbbmalloc_proxy/proxy.cpp
index b286e51..8057708 100644
--- a/oneTBB/src/tbbmalloc_proxy/proxy.cpp
+++ b/oneTBB/src/tbbmalloc_proxy/proxy.cpp
@@ -24,7 +24,8 @@
// of aligned_alloc as required by new C++ standard, this makes it hard to
// redefine aligned_alloc here. However, running on systems with new libc
// version, it still needs it to be redefined, thus tricking system headers
-#if defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 16) && _GLIBCXX_HAVE_ALIGNED_ALLOC
+#if defined(__GLIBC_PREREQ)
+#if !__GLIBC_PREREQ(2, 16) && _GLIBCXX_HAVE_ALIGNED_ALLOC
// tell <cstdlib> that there is no aligned_alloc
#undef _GLIBCXX_HAVE_ALIGNED_ALLOC
// trick <stdlib.h> to define another symbol instead
@@ -33,6 +34,7 @@
#include <cstdlib>
#undef aligned_alloc
#endif // defined(__GLIBC_PREREQ)&&!__GLIBC_PREREQ(2, 16)&&_GLIBCXX_HAVE_ALIGNED_ALLOC
+#endif // defined(__GLIBC_PREREQ)
#endif // __linux__ && !__ANDROID__
#include "proxy.h"
@@ -256,6 +258,7 @@ int mallopt(int /*param*/, int /*value*/) __THROW
return 1;
}
+#ifdef __GLIBC__
struct mallinfo mallinfo() __THROW
{
struct mallinfo m;
@@ -263,6 +266,7 @@ struct mallinfo mallinfo() __THROW
return m;
}
+#endif
#if __ANDROID__
// Android doesn't have malloc_usable_size, provide it to be compatible

View file

@ -1,54 +0,0 @@
pkgname=ncspot
pkgver=0.7.3
_clear_vendor_checksums() {
sed -i 's/\("files":{\)[^}]*/\1/' vendor/$1/.cargo-checksum.json
}
fetch() {
curl -L "https://github.com/hrkfdn/ncspot/archive/refs/tags/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
# curl -L "https://github.com/sfackler/rust-openssl/archive/refs/tags/openssl-v0.10.34.tar.gz" -o rust-openssl.tar.gz
curl -L "https://github.com/Ella-0/ncurses-rs/archive/refs/heads/master.tar.gz" -o ncurses.tar.gz
curl -L "https://github.com/Ella-0/pancurses/archive/refs/heads/master.tar.gz" -o pancurses.tar.gz
tar -xf ncurses.tar.gz
mv ncurses-rs-master ncurses
tar -xf pancurses.tar.gz
mv pancurses-master pancurses
tar -xf $pkgname-$pkgver.tar.gz
tar -xf rust-openssl.tar.gz
cp ../cursive_ptr.patch .
cd $pkgname-$pkgver
mkdir -p .cargo
cargo vendor > .cargo/config
# _clear_vendor_checksums openssl-sys
# _clear_vendor_checksums openssl
_clear_vendor_checksums ncurses
_clear_vendor_checksums pancurses
_clear_vendor_checksums cursive
# cp -r ../rust-openssl-openssl-v0.10.34/openssl/ vendor/
# cp -r ../rust-openssl-openssl-v0.10.34/openssl-sys/ vendor/
cp -r ../ncurses/ vendor/
cp -r ../pancurses/ vendor/
# sed vendor/openssl/Cargo.toml -i -e 's/0.10.34/0.10.33/g'
# sed vendor/openssl/Cargo.toml -i -e 's/0.9.62/0.9.61/g'
# sed vendor/openssl-sys/Cargo.toml -i -e 's/0.9.62/0.9.61/g'
sed vendor/ncurses/Cargo.toml -i -e 's/5.100.0/5.101.0/g'
patch -p1 < ../cursive_ptr.patch
}
build() {
cd $pkgname-$pkgver
cargo build --release --no-default-features --features cursive/pancurses-backend,alsa_backend
}
package() {
cd $pkgname-$pkgver
install -Dm 755 target/release/$pkgname $pkgdir/usr/bin/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,11 +0,0 @@
--- a/vendor/cursive/src/backends/curses/pan.rs
+++ b/vendor/cursive/src/backends/curses/pan.rs
@@ -70,7 +70,7 @@
pancurses::mouseinterval(0);
pancurses::mousemask(
pancurses::ALL_MOUSE_EVENTS | pancurses::REPORT_MOUSE_POSITION,
- ::std::ptr::null_mut(),
+ None,
);
// This asks the terminal to provide us with mouse drag events

View file

@ -1,28 +0,0 @@
pkgname=openssh
pkgver=8.6p1
fetch() {
curl "https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--libexecdir=/usr/lib
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENCE
}

View file

@ -1,53 +0,0 @@
pkgname=perl
pkgver=5.32.1
fetch() {
curl "https://www.cpan.org/src/5.0/perl-5.32.1.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./Configure -des \
-Dccflags="$CFLAGS" \
-Dcccdlflags='-fPIC' \
-Dcccdlflags='-fPIC' \
-Dccdlflags='-rdynamic' \
-Dprefix=/usr \
-Dprivlib=/usr/share/perl5/core_perl \
-Darchlib=/usr/lib/perl5/core_perl \
-Dvendorprefix=/usr \
-Dvendorlib=/usr/share/perl5/vendor_perl \
-Dvendorarch=/usr/lib/perl5/vendor_perl \
-Dsiteprefix=/usr/local \
-Dsitelib=/usr/local/share/perl5/site_perl \
-Dsitearch=/usr/local/lib/perl5/site_perl \
-Dlocincpth=' ' \
-Duselargefiles \
-Dusethreads \
-Duseshrplib \
-Dd_semctl_semun \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dinstallman1dir=/usr/share/man/man1 \
-Dinstallman3dir=/usr/share/man/man3 \
-Dman1ext='1' \
-Dman3ext='3pm' \
-Dcf_by='Iglunix' \
-Ud_csh \
-Dusenm
make libperl.so && make || return 1
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -rf $pkgdir/usr/share/man
}
license() {
cd $pkgname-$pkgver
cat Copying
}

View file

@ -1,31 +0,0 @@
pkgname=pixman
pkgver=master
fetch() {
curl "https://gitlab.freedesktop.org/pixman/pixman/-/archive/master/pixman-master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--prefix=/usr \
--buildtype=release \
--libexecdir=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
# cat LICENSE
cat COPYING
}

View file

@ -1,34 +0,0 @@
pkgver=1.7.4
pkgname=pkgconf
bad=""
ext="doc"
fetch() {
curl https://distfiles.dereferenced.org/pkgconf/pkgconf-$pkgver.tar.xz -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
ln -sr $pkgdir/usr/bin/pkgconf $pkgdir/usr/bin/pkg-config
rm -r $pkgdir/usr/share
}
package_doc() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,30 +0,0 @@
pkgver=1.1.4
pkgname=python-mako
deps=python
bad=""
ext="doc"
fetch() {
curl -L "https://pypi.io/packages/source/M/Mako/Mako-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
mv Mako-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
python setup.py build
}
package() {
cd $pkgname-$pkgver
python setup.py install --prefix=/usr --root=$pkgdir
}
package_doc() {
echo $pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,29 +0,0 @@
pkgname=sqlite
pkgver=3350100
fetch() {
curl "https://sqlite.org/2021/sqlite-autoconf-3350100.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv $pkgname-autoconf-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,36 +0,0 @@
pkgname=tbb
pkgver=master
fetch() {
curl -L "https://github.com/oneapi-src/oneTBB/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv oneTBB-$pkgver $pkgname-$pkgver
mkdir $pkgname-$pkgver/build
cd $pkgname-$pkgver
patch -p1 < ../../musl-malloc-proxy.patch
patch -p1 < ../../musl-rtld.patch
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DTBB_TEST=OFF \
-DCMAKE_CXX_FLAGS=-Wno-unused-command-line-argument
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE.txt
# cat COPYING
}

View file

@ -1,38 +0,0 @@
--- a/src/tbbmalloc_proxy/proxy.cpp
+++ b/src/tbbmalloc_proxy/proxy.cpp
@@ -24,7 +24,8 @@
// of aligned_alloc as required by new C++ standard, this makes it hard to
// redefine aligned_alloc here. However, running on systems with new libc
// version, it still needs it to be redefined, thus tricking system headers
-#if defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 16) && _GLIBCXX_HAVE_ALIGNED_ALLOC
+#if defined(__GLIBC_PREREQ)
+#if !__GLIBC_PREREQ(2, 16) && _GLIBCXX_HAVE_ALIGNED_ALLOC
// tell <cstdlib> that there is no aligned_alloc
#undef _GLIBCXX_HAVE_ALIGNED_ALLOC
// trick <stdlib.h> to define another symbol instead
@@ -32,7 +33,8 @@
// Fix the state and undefine the trick
#include <cstdlib>
#undef aligned_alloc
-#endif // defined(__GLIBC_PREREQ)&&!__GLIBC_PREREQ(2, 16)&&_GLIBCXX_HAVE_ALIGNED_ALLOC
+#endif // !__GLIBC_PREREQ(2, 16)&&_GLIBCXX_HAVE_ALIGNED_ALLOC
+#endif // defined(__GLIBC_PREREQ)
#endif // __linux__ && !__ANDROID__
#include "proxy.h"
@@ -253,6 +255,7 @@
return 1;
}
+#ifdef __GLIBC__
struct mallinfo mallinfo() __THROW
{
struct mallinfo m;
@@ -260,6 +263,7 @@
return m;
}
+#endif
#if __ANDROID__
// Android doesn't have malloc_usable_size, provide it to be compatible

View file

@ -1,14 +0,0 @@
--- a/src/tbb/dynamic_link.cpp
+++ b/src/tbb/dynamic_link.cpp
@@ -413,9 +413,9 @@
int flags = RTLD_NOW;
if (local_binding) {
flags = flags | RTLD_LOCAL;
-#if __linux__ && !__ANDROID__ && !__TBB_USE_ADDRESS_SANITIZER
+#if __linux__ && defined(__GLIBC__) && !__TBB_USE_ADDRESS_SANITIZER
flags = flags | RTLD_DEEPBIND;
-#endif /*__linux__ && !__ANDROID__ && !__TBB_USE_ADDRESS_SANITIZER*/
+#endif /*__linux__ && defined(__GLIBC__) && !__TBB_USE_ADDRESS_SANITIZER*/
} else {
flags = flags | RTLD_GLOBAL;
}

View file

@ -1,25 +0,0 @@
pkgname=xxhash
pkgver=0.8.0
deps=musl
fetch() {
curl -L "https://github.com/Cyan4973/xxHash/archive/refs/tags/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv xxHash-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
gmake PREFIX=/usr
}
package() {
cd $pkgname-$pkgver
gmake install PREFIX=/usr DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -1,29 +0,0 @@
pkgver=2021.04.07
pkgname=youtube-dl
deps=python
bad=""
fetch() {
curl -L "https://github.com/ytdl-org/youtube-dl/releases/download/2021.04.07/youtube-dl-2021.04.07.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
mv $pkgname $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
python setup.py build
}
package() {
cd $pkgname-$pkgver
python setup.py install --prefix=/usr --root=$pkgdir
}
package_doc() {
echo $pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,25 +0,0 @@
pkgname=zsh-autosuggestions
pkgver=0.6.4
fetch() {
curl -L "https://github.com/zsh-users/$pkgname/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
#mv zsh-users-$pkgname-* $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
make
}
package() {
cd $pkgname-$pkgver
install -Dm644 ./$pkgname.zsh "$pkgdir/usr/share/zsh/plugins/$pkgname/"
install -Dm644 ./$pkgname.plugin.zsh "$pkgdir/usr/share/zsh/plugins/$pkgname/"
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

View file

@ -1,23 +0,0 @@
pkgname=zsh-syntax-highlighting
pkgver=0.7.1
fetch() {
curl -L "https://github.com/zsh-users/$pkgname/tarball/$pkgver" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv zsh-users-$pkgname-* $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
make
}
package() {
cd $pkgname-$pkgver
make PREFIX="/usr" SHARE_DIR="$pkgdir/usr/share/zsh/plugins/$pkgname" DESTDIR="$pkgdir" install
}
license() {
cd $pkgname-$pkgver
cat COPYING.md
}

View file

@ -1,38 +0,0 @@
pkgname=zsh
pkgver=5.8
ext=doc
fetch() {
curl "https://www.zsh.org/pub/zsh-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../zprofile.zsh .
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
install -d /etc
install -Dm644 ../zprofile.zsh $pkgdir/etc/zprofile
rm -rf $pkgdir/usr/share/man
}
package_doc() {
cd $pkgname-$pkgver
make install.man DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENCE
# cat COPYING
}

View file

@ -1,2 +0,0 @@
emulate sh -c 'source /etc/profile'
export PS1='%m%# '