├── extra ├── gc │ ├── version │ ├── depends │ ├── sources │ ├── checksums │ ├── build │ └── patches │ │ └── gc-missing-header.patch ├── gdmd │ ├── version │ ├── depends │ ├── checksums │ ├── sources │ └── build ├── ldc │ ├── version │ ├── depends │ ├── checksums │ ├── sources │ ├── build │ └── patches │ │ ├── disable-static-assert.patch │ │ ├── 01-conf.patch │ │ ├── add-missing-musl-definitions.patch │ │ └── 3332.patch ├── lld │ ├── version │ ├── checksums │ ├── sources │ └── build ├── llvm11 │ ├── version │ ├── depends │ ├── checksums │ ├── sources │ └── build ├── pcre2 │ ├── version │ ├── sources │ ├── checksums │ └── build ├── libexecinfo │ ├── version │ ├── sources │ ├── checksums │ ├── build │ ├── patches │ │ ├── 20-define-gnu-source.patch │ │ ├── 30-linux-makefile.patch │ │ └── 10-execinfo.patch │ └── manifest └── gcc-multilib │ ├── version │ ├── files │ └── c99 │ ├── depends │ ├── sources │ ├── checksums │ └── build ├── languages ├── go │ ├── version │ ├── sources │ ├── checksums │ ├── build │ └── patches │ │ └── posix-build.patch ├── nelua │ ├── version │ ├── sources │ └── build ├── nim │ ├── version │ ├── checksums │ ├── sources │ └── build ├── zig │ ├── version │ ├── depends │ ├── checksums │ ├── sources │ └── build ├── crystal │ ├── version │ ├── depends │ ├── sources │ ├── checksums │ ├── build │ └── patches │ │ └── fix-crystal-sh.patch ├── d-lang │ ├── version │ ├── depends │ ├── checksums │ ├── files │ │ └── dmd-config.conf │ ├── sources │ ├── patches │ │ ├── dmd-remove-tests.patch │ │ └── dmd-musl.patch │ └── build ├── gforth │ ├── version │ ├── depends │ ├── sources │ ├── checksums │ └── build ├── ghc-bin │ ├── version │ ├── depends │ ├── files │ │ └── ghci │ ├── sources │ ├── checksums │ └── build ├── janet │ ├── version │ ├── sources │ ├── build │ └── checksums ├── julia │ ├── version │ ├── depends │ ├── sources │ ├── checksums │ └── build ├── lua │ ├── version │ ├── sources │ ├── checksums │ ├── build │ └── files │ │ └── lua.pc ├── luajit │ ├── version │ ├── sources │ ├── build │ └── checksums ├── ocaml │ ├── version │ ├── sources │ ├── checksums │ ├── build │ └── patches │ │ ├── fix-configure-musl.patch │ │ └── fix-mcontext-fields.patch ├── pforth │ ├── version │ ├── sources │ └── build ├── r-lang │ ├── version │ ├── depends │ ├── sources │ ├── checksums │ ├── build │ └── patches │ │ └── remove_po_dir.patch ├── retro │ ├── version │ ├── sources │ ├── checksums │ └── build ├── ruby │ ├── version │ ├── sources │ ├── checksums │ └── build ├── v-lang │ ├── version │ ├── sources │ └── build ├── vala │ ├── version │ ├── checksums │ ├── sources │ ├── depends │ └── build ├── chez-scheme │ ├── version │ ├── depends │ ├── checksums │ ├── sources │ └── build ├── mono │ ├── version │ ├── depends │ ├── sources │ ├── checksums │ ├── build │ ├── post-install │ └── patches │ │ └── mono-try-catch.patch └── racket-minimal │ ├── version │ ├── checksums │ ├── sources │ └── build ├── testing └── java │ ├── openjdk8-bin │ ├── version │ ├── checksums │ ├── depends │ ├── sources │ ├── build │ └── post-install │ └── openjdk-jre8-bin │ ├── version │ ├── checksums │ ├── depends │ ├── sources │ ├── build │ └── post-install ├── .github ├── FUNDING.yml ├── workflows │ └── main.yml └── PULL_REQUEST_TEMPLATE.md └── README.txt /extra/gc/version: -------------------------------------------------------------------------------- 1 | 8.2.0 1 2 | -------------------------------------------------------------------------------- /extra/gdmd/version: -------------------------------------------------------------------------------- 1 | 0.1.0 1 2 | -------------------------------------------------------------------------------- /extra/ldc/version: -------------------------------------------------------------------------------- 1 | 1.24.0 1 2 | -------------------------------------------------------------------------------- /extra/lld/version: -------------------------------------------------------------------------------- 1 | 11.1.0 1 2 | -------------------------------------------------------------------------------- /extra/llvm11/version: -------------------------------------------------------------------------------- 1 | 11.0.1 1 2 | -------------------------------------------------------------------------------- /extra/pcre2/version: -------------------------------------------------------------------------------- 1 | 10.37 1 2 | -------------------------------------------------------------------------------- /languages/go/version: -------------------------------------------------------------------------------- 1 | 1.19 1 2 | -------------------------------------------------------------------------------- /languages/nelua/version: -------------------------------------------------------------------------------- 1 | git 1 2 | -------------------------------------------------------------------------------- /languages/nim/version: -------------------------------------------------------------------------------- 1 | 1.6.6 1 2 | -------------------------------------------------------------------------------- /languages/zig/version: -------------------------------------------------------------------------------- 1 | 0.9.1 1 2 | -------------------------------------------------------------------------------- /extra/ldc/depends: -------------------------------------------------------------------------------- 1 | ncurses 2 | zlib 3 | -------------------------------------------------------------------------------- /extra/libexecinfo/version: -------------------------------------------------------------------------------- 1 | 1.1 1 2 | -------------------------------------------------------------------------------- /languages/crystal/version: -------------------------------------------------------------------------------- 1 | 1.5.0 1 2 | -------------------------------------------------------------------------------- /languages/d-lang/version: -------------------------------------------------------------------------------- 1 | 2.095.0 1 2 | -------------------------------------------------------------------------------- /languages/gforth/version: -------------------------------------------------------------------------------- 1 | 0.7.3 1 2 | -------------------------------------------------------------------------------- /languages/ghc-bin/version: -------------------------------------------------------------------------------- 1 | 9.4.1 1 2 | -------------------------------------------------------------------------------- /languages/janet/version: -------------------------------------------------------------------------------- 1 | 1.20.0 1 2 | -------------------------------------------------------------------------------- /languages/julia/version: -------------------------------------------------------------------------------- 1 | git 1 2 | -------------------------------------------------------------------------------- /languages/lua/version: -------------------------------------------------------------------------------- 1 | 5.4.4 1 2 | -------------------------------------------------------------------------------- /languages/luajit/version: -------------------------------------------------------------------------------- 1 | 2.2.0 1 2 | -------------------------------------------------------------------------------- /languages/ocaml/version: -------------------------------------------------------------------------------- 1 | 4.14.0 1 2 | -------------------------------------------------------------------------------- /languages/pforth/version: -------------------------------------------------------------------------------- 1 | git 1 2 | -------------------------------------------------------------------------------- /languages/r-lang/version: -------------------------------------------------------------------------------- 1 | 4.2.1 1 2 | -------------------------------------------------------------------------------- /languages/retro/version: -------------------------------------------------------------------------------- 1 | 2021.4 1 2 | -------------------------------------------------------------------------------- /languages/ruby/version: -------------------------------------------------------------------------------- 1 | 3.1.2 1 2 | -------------------------------------------------------------------------------- /languages/v-lang/version: -------------------------------------------------------------------------------- 1 | git 1 2 | -------------------------------------------------------------------------------- /languages/vala/version: -------------------------------------------------------------------------------- 1 | 0.52.4 1 2 | -------------------------------------------------------------------------------- /extra/gcc-multilib/version: -------------------------------------------------------------------------------- 1 | 11.1.0 1 2 | -------------------------------------------------------------------------------- /languages/chez-scheme/version: -------------------------------------------------------------------------------- 1 | 9.5.6 1 2 | -------------------------------------------------------------------------------- /languages/mono/version: -------------------------------------------------------------------------------- 1 | 6.12.0.122 1 2 | -------------------------------------------------------------------------------- /languages/racket-minimal/version: -------------------------------------------------------------------------------- 1 | 8.6 1 2 | -------------------------------------------------------------------------------- /extra/gdmd/depends: -------------------------------------------------------------------------------- 1 | perl 2 | gcc-multilib 3 | -------------------------------------------------------------------------------- /languages/chez-scheme/depends: -------------------------------------------------------------------------------- 1 | util-linux 2 | -------------------------------------------------------------------------------- /languages/d-lang/depends: -------------------------------------------------------------------------------- 1 | ldc 2 | libexecinfo 3 | -------------------------------------------------------------------------------- /languages/gforth/depends: -------------------------------------------------------------------------------- 1 | libffi 2 | libtool 3 | -------------------------------------------------------------------------------- /testing/java/openjdk8-bin/version: -------------------------------------------------------------------------------- 1 | 8u242b20 1 2 | -------------------------------------------------------------------------------- /languages/julia/depends: -------------------------------------------------------------------------------- 1 | python make 2 | perl make 3 | -------------------------------------------------------------------------------- /testing/java/openjdk-jre8-bin/version: -------------------------------------------------------------------------------- 1 | 8u242b20 1 2 | -------------------------------------------------------------------------------- /languages/ghc-bin/depends: -------------------------------------------------------------------------------- 1 | libffi 2 | gmp 3 | ncurses 4 | -------------------------------------------------------------------------------- /extra/llvm11/depends: -------------------------------------------------------------------------------- 1 | cmake make 2 | python make 3 | zlib 4 | -------------------------------------------------------------------------------- /languages/v-lang/sources: -------------------------------------------------------------------------------- 1 | git+https://github.com/vlang/v.git 2 | -------------------------------------------------------------------------------- /languages/zig/depends: -------------------------------------------------------------------------------- 1 | clang 2 | cmake make 3 | lld 4 | llvm 5 | -------------------------------------------------------------------------------- /extra/gcc-multilib/files/c99: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec cc -std=c99 "$@" 3 | -------------------------------------------------------------------------------- /languages/crystal/depends: -------------------------------------------------------------------------------- 1 | gc make 2 | libevent 3 | llvm 4 | pcre 5 | -------------------------------------------------------------------------------- /languages/pforth/sources: -------------------------------------------------------------------------------- 1 | git+https://github.com/philburk/pforth 2 | -------------------------------------------------------------------------------- /extra/gc/depends: -------------------------------------------------------------------------------- 1 | automake make 2 | autoconf make 3 | libtool make 4 | -------------------------------------------------------------------------------- /extra/pcre2/sources: -------------------------------------------------------------------------------- 1 | https://ftp.pcre.org/pub/pcre/pcre2-10.37.tar.bz2 2 | -------------------------------------------------------------------------------- /languages/julia/sources: -------------------------------------------------------------------------------- 1 | git+https://github.com/JuliaLang/julia.git 2 | -------------------------------------------------------------------------------- /languages/nelua/sources: -------------------------------------------------------------------------------- 1 | git+https://github.com/edubart/nelua-lang.git 2 | -------------------------------------------------------------------------------- /languages/r-lang/depends: -------------------------------------------------------------------------------- 1 | ncurses 2 | pcre2 3 | perl make 4 | readline 5 | -------------------------------------------------------------------------------- /languages/gforth/sources: -------------------------------------------------------------------------------- 1 | http://ftp.gnu.org/gnu/gforth/gforth-0.7.3.tar.gz 2 | -------------------------------------------------------------------------------- /extra/gcc-multilib/depends: -------------------------------------------------------------------------------- 1 | binutils 2 | bison make 3 | flex make 4 | zlib 5 | -------------------------------------------------------------------------------- /languages/lua/sources: -------------------------------------------------------------------------------- 1 | https://www.lua.org/ftp/lua-5.4.4.tar.gz 2 | files/lua.pc 3 | -------------------------------------------------------------------------------- /languages/retro/sources: -------------------------------------------------------------------------------- 1 | https://forthworks.com/retro/r/RETRO12-2021.4.tar.gz 2 | -------------------------------------------------------------------------------- /extra/lld/checksums: -------------------------------------------------------------------------------- 1 | 017a788cbe1ecc4a949abf10755870519086d058a2e99f438829aef24f0c66ce 2 | -------------------------------------------------------------------------------- /languages/janet/sources: -------------------------------------------------------------------------------- 1 | https://github.com/janet-lang/janet/archive/v1.20.0.tar.gz 2 | -------------------------------------------------------------------------------- /languages/luajit/sources: -------------------------------------------------------------------------------- 1 | https://github.com/moonjit/moonjit/archive/2.2.0.tar.gz 2 | -------------------------------------------------------------------------------- /languages/ruby/sources: -------------------------------------------------------------------------------- 1 | https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.2.tar.gz 2 | -------------------------------------------------------------------------------- /extra/gdmd/checksums: -------------------------------------------------------------------------------- 1 | 88dde6041981db4cf3be056ed12013e215b616ede85c75e7cbe51d368ce4d6da 2 | -------------------------------------------------------------------------------- /extra/gdmd/sources: -------------------------------------------------------------------------------- 1 | https://github.com/D-Programming-GDC/gdmd/archive/script-0.1.0.zip 2 | -------------------------------------------------------------------------------- /extra/llvm11/checksums: -------------------------------------------------------------------------------- 1 | ccd87c254b6aebc5077e4e6977d08d4be888e7eb672c6630a26a15d58b59b528 2 | -------------------------------------------------------------------------------- /extra/pcre2/checksums: -------------------------------------------------------------------------------- 1 | 4d95a96e8b80529893b4562be12648d798b957b1ba1aae39606bbc2ab956d270 2 | -------------------------------------------------------------------------------- /languages/ruby/checksums: -------------------------------------------------------------------------------- 1 | 61843112389f02b735428b53bb64cf988ad9fb81858b8248e22e57336f24a83e 2 | -------------------------------------------------------------------------------- /languages/vala/checksums: -------------------------------------------------------------------------------- 1 | ecde520e5160e659ee699f8b1cdc96065edbd44bbd08eb48ef5f2506751fdf31 2 | -------------------------------------------------------------------------------- /languages/vala/sources: -------------------------------------------------------------------------------- 1 | https://download.gnome.org/sources/vala/0.52/vala-0.52.4.tar.xz 2 | -------------------------------------------------------------------------------- /languages/zig/checksums: -------------------------------------------------------------------------------- 1 | 654df4eedff5354c9a463c9c214b6e5c706547febf55d9433050b363f8a93f76 2 | -------------------------------------------------------------------------------- /languages/gforth/checksums: -------------------------------------------------------------------------------- 1 | 2f62f2233bf022c23d01c920b1556aa13eab168e3236b13352ac5e9f18542bb0 2 | -------------------------------------------------------------------------------- /languages/janet/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | make PREFIX=/usr 4 | make install PREFIX="$1/usr" 5 | -------------------------------------------------------------------------------- /languages/janet/checksums: -------------------------------------------------------------------------------- 1 | cc2e617e2bdffaeca0fc330c890c73a83e2211b4ff65555d58973c47376bf5b1 2 | -------------------------------------------------------------------------------- /languages/julia/checksums: -------------------------------------------------------------------------------- 1 | 0847943dd65001f3322b00c7dc4e12f56e70e98c6b798ccbd4f02d27ce161fef 2 | -------------------------------------------------------------------------------- /languages/luajit/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | make 4 | make DESTDIR="$1" PREFIX=/usr install 5 | -------------------------------------------------------------------------------- /languages/luajit/checksums: -------------------------------------------------------------------------------- 1 | 83deb2c880488dfe7dd8ebf09e3b1e7613ef4b8420de53de6f712f01aabca2b6 2 | -------------------------------------------------------------------------------- /languages/retro/checksums: -------------------------------------------------------------------------------- 1 | 9d43aae72527e7b18fdbd3b4237d425b79ad95bb3d0dee6655264970478524b0 2 | -------------------------------------------------------------------------------- /languages/zig/sources: -------------------------------------------------------------------------------- 1 | https://github.com/ziglang/zig-bootstrap/archive/refs/tags/0.9.1.tar.gz 2 | -------------------------------------------------------------------------------- /languages/chez-scheme/checksums: -------------------------------------------------------------------------------- 1 | 9aaa208c63eda8edfad72566790db0f9cedc7c6bb860157c400c98e22583c6b4 2 | -------------------------------------------------------------------------------- /languages/racket-minimal/checksums: -------------------------------------------------------------------------------- 1 | 01d509d5ffd82920ff4bb41de84c07ecc6af9122953716ad43d84aa7b3939f48 2 | -------------------------------------------------------------------------------- /languages/vala/depends: -------------------------------------------------------------------------------- 1 | bash make 2 | bison make 3 | flex make 4 | glib 5 | libffi 6 | pkgconf make 7 | -------------------------------------------------------------------------------- /extra/gdmd/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | install -Dm755 gdmd-script-0.1.0/dmd-script "$1/usr/bin/gdmd" 4 | -------------------------------------------------------------------------------- /testing/java/openjdk-jre8-bin/checksums: -------------------------------------------------------------------------------- 1 | 44a628391c1fca7e656dab1dfbc2383332f6c610190de02116df7582e9519589 2 | -------------------------------------------------------------------------------- /testing/java/openjdk8-bin/checksums: -------------------------------------------------------------------------------- 1 | 1910df13769824abdf82ce565e3150d6c2fa455f752133b092e5e800caef5f80 2 | -------------------------------------------------------------------------------- /extra/lld/sources: -------------------------------------------------------------------------------- 1 | https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/lld-11.1.0.src.tar.xz 2 | -------------------------------------------------------------------------------- /languages/chez-scheme/sources: -------------------------------------------------------------------------------- 1 | https://github.com/cisco/ChezScheme/releases/download/v9.5.6/csv9.5.6.tar.gz 2 | -------------------------------------------------------------------------------- /extra/llvm11/sources: -------------------------------------------------------------------------------- 1 | https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.1/llvm-11.0.1.src.tar.xz 2 | -------------------------------------------------------------------------------- /languages/r-lang/sources: -------------------------------------------------------------------------------- 1 | https://cran.r-project.org/src/base/R-4/R-4.2.1.tar.gz 2 | patches/remove_po_dir.patch 3 | -------------------------------------------------------------------------------- /languages/racket-minimal/sources: -------------------------------------------------------------------------------- 1 | https://download.racket-lang.org/releases/8.6/installers/racket-minimal-8.6-src.tgz 2 | -------------------------------------------------------------------------------- /extra/gc/sources: -------------------------------------------------------------------------------- 1 | https://github.com/ivmai/bdwgc/releases/download/v8.2.0/gc-8.2.0.tar.gz 2 | patches/gc-missing-header.patch 3 | -------------------------------------------------------------------------------- /languages/mono/depends: -------------------------------------------------------------------------------- 1 | autoconf make 2 | automake make 3 | cmake make 4 | libtool make 5 | linux-headers make 6 | python 7 | -------------------------------------------------------------------------------- /testing/java/openjdk8-bin/depends: -------------------------------------------------------------------------------- 1 | libX11 2 | libXau 3 | libXext 4 | libXi 5 | libXrender 6 | libXtst 7 | libxcb 8 | zlib 9 | -------------------------------------------------------------------------------- /languages/mono/sources: -------------------------------------------------------------------------------- 1 | https://download.mono-project.com/sources/mono/mono-6.12.0.122.tar.xz 2 | patches/mono-try-catch.patch 3 | -------------------------------------------------------------------------------- /languages/ocaml/sources: -------------------------------------------------------------------------------- 1 | https://caml.inria.fr/pub/distrib/ocaml-4.14/ocaml-4.14.0.tar.xz 2 | patches/fix-configure-musl.patch 3 | -------------------------------------------------------------------------------- /testing/java/openjdk-jre8-bin/depends: -------------------------------------------------------------------------------- 1 | alsa-lib 2 | libX11 3 | libXau 4 | libXext 5 | libXi 6 | libXrender 7 | libXtst 8 | libxcb 9 | -------------------------------------------------------------------------------- /testing/java/openjdk8-bin/sources: -------------------------------------------------------------------------------- 1 | https://cdn.azul.com/zulu/bin/zulu8.44.0.11-ca-jdk8.0.242-linux_musl_x64.tar.gz openjdk-8-bin 2 | -------------------------------------------------------------------------------- /languages/ghc-bin/files/ghci: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DIR="$(dirname "$0")" 4 | executable="$DIR/ghc" 5 | exec "$executable" --interactive "$@" 6 | -------------------------------------------------------------------------------- /testing/java/openjdk-jre8-bin/sources: -------------------------------------------------------------------------------- 1 | https://cdn.azul.com/zulu/bin/zulu8.44.0.11-ca-jre8.0.242-linux_musl_x64.tar.gz openjdk-jre-8-bin 2 | -------------------------------------------------------------------------------- /languages/ghc-bin/sources: -------------------------------------------------------------------------------- 1 | https://downloads.haskell.org/~ghc/9.4.1/ghc-9.4.1-x86_64-alpine3_12-linux-static-int_native.tar.xz 2 | files/ghci 3 | -------------------------------------------------------------------------------- /languages/nelua/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" PREFIX=/usr 4 | make install DESTDIR="$1" PREFIX=/usr 5 | -------------------------------------------------------------------------------- /extra/gc/checksums: -------------------------------------------------------------------------------- 1 | 2540f7356cb74f6c5b75326c6d38a066edd796361fd7d4ed26e494d9856fed8f 2 | 048bff8e713ec1dbf7a06ff02175ab407db5433a15707d6687b9bcf212e6b1bf 3 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [mmatongo] 4 | patreon: mmatongo 5 | ko_fi: mmatongo 6 | liberapay: mmatongo 7 | -------------------------------------------------------------------------------- /languages/lua/checksums: -------------------------------------------------------------------------------- 1 | 164c7849653b80ae67bec4b7473b884bf5cc8d2dca05653475ec2ed27b9ebf61 2 | c58f3ff3aecd07fc409486e31e65461eb10a919c0ee225836c88d5558933b3b5 3 | -------------------------------------------------------------------------------- /languages/mono/checksums: -------------------------------------------------------------------------------- 1 | 29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23 2 | 0d4107d4478e5747c9b071e39b9fe36e8ce7684cfb3535b9edf709e80b25791a 3 | -------------------------------------------------------------------------------- /languages/nim/checksums: -------------------------------------------------------------------------------- 1 | 59836a85c1291b59af699a121b0b765703d6a0e44ed9f3ede363ff2b3e09d527 2 | 71c823444c794a12da9027d19d6a717dd7759521ecbbe28190b08372142607ec 3 | -------------------------------------------------------------------------------- /languages/ocaml/checksums: -------------------------------------------------------------------------------- 1 | 36abd8cca53ff593d5e7cd8b98eee2f1f36bd49aaf6ff26dc4c4dd21d861ac2b 2 | c5ba99f020c8c60ca9b405d45c9f2d026b1a6436439f61545a7abcb65fc53da5 3 | -------------------------------------------------------------------------------- /languages/retro/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | mkdir -p "$1/usr/share/man/man1" 4 | make 5 | make DESTDIR="$1" PREFIX=/usr MANDIR="$1/usr/share/man/man1" install 6 | -------------------------------------------------------------------------------- /testing/java/openjdk8-bin/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | cd openjdk-8-bin 4 | 5 | mkdir -p "$1/usr/lib/jvm/openjdk8" 6 | 7 | cp -r * "$1/usr/lib/jvm/openjdk8" 8 | -------------------------------------------------------------------------------- /languages/ghc-bin/checksums: -------------------------------------------------------------------------------- 1 | 6f552083f36576699af17c37c0ab78f95e6dcda77658531f2ca803637e2f0db9 2 | d47669a616d312da10bc7819dd4adff32c2042d4a4d7ce8bc4c0236b236557d5 3 | -------------------------------------------------------------------------------- /languages/r-lang/checksums: -------------------------------------------------------------------------------- 1 | 4d52db486d27848e54613d4ee977ad952ec08ce17807e1b525b10cd4436c643f 2 | a631cd22bb2dac46afdb8b210040a91eaff48cacf09e41912d8ba4c046376d3b 3 | -------------------------------------------------------------------------------- /languages/go/sources: -------------------------------------------------------------------------------- 1 | https://go.dev/dl/go1.19.src.tar.gz go-current 2 | https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz go1.4-bootstrap 3 | patches/posix-build.patch 4 | -------------------------------------------------------------------------------- /testing/java/openjdk-jre8-bin/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | cd openjdk-jre-8-bin 4 | 5 | mkdir -p "$1/usr/lib/jvm/openjdk-jre8" 6 | 7 | cp -r * "$1/usr/lib/jvm/openjdk-jre8" 8 | -------------------------------------------------------------------------------- /languages/gforth/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | CFLAGS="$CFLAGS -std=gnu99" ./configure \ 4 | --prefix=/usr \ 5 | --without-check 6 | 7 | make -j1 8 | make DESTDIR="$1" install 9 | -------------------------------------------------------------------------------- /languages/nim/sources: -------------------------------------------------------------------------------- 1 | https://github.com/nim-lang/Nim/archive/v1.6.6.tar.gz 2 | https://github.com/nim-lang/csources_v1/archive/561b417c65791cd8356b5f73620914ceff845d10.tar.gz csources 3 | -------------------------------------------------------------------------------- /extra/libexecinfo/sources: -------------------------------------------------------------------------------- 1 | http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-1.1.tar.bz2 2 | patches/10-execinfo.patch 3 | patches/20-define-gnu-source.patch 4 | patches/30-linux-makefile.patch 5 | -------------------------------------------------------------------------------- /languages/crystal/sources: -------------------------------------------------------------------------------- 1 | https://github.com/crystal-lang/crystal/archive/1.5.0.tar.gz 2 | https://dev.alpinelinux.org/archive/crystal/crystal-1.4.1-x86_64-alpine-linux-musl.tar.gz core 3 | patches/fix-crystal-sh.patch 4 | -------------------------------------------------------------------------------- /extra/ldc/checksums: -------------------------------------------------------------------------------- 1 | fd9561ade916e9279bdcc166cf0e4836449c24e695ab4470297882588adbba3c 2 | 28beb263ec6954dd9f3b688d4bbf4283332bf83fd30ca0802399b7f9d561e106 3 | 46e33541372b937fa53c1794b20305e75d585e90cfb8e7aafd57bd36966b387f 4 | -------------------------------------------------------------------------------- /extra/lld/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | export DESTDIR="$1" 4 | 5 | cmake -B build \ 6 | -DCMAKE_BUILD_TYPE=Release \ 7 | -DCMAKE_INSTALL_PREFIX=/usr 8 | 9 | cmake --build build 10 | cmake --install build 11 | -------------------------------------------------------------------------------- /languages/d-lang/checksums: -------------------------------------------------------------------------------- 1 | 483630755290902a00bea84f897846665f0df9859cdf0487bc6876223615ec8b 2 | 21408d16e79729bd984c48aa31352c5fc29261191706f8c60f99074aa842a08c 3 | 3d639e89528fed1da90006f4dfb2b0fdc41308da5a96d953381ff4ccf257c035 4 | -------------------------------------------------------------------------------- /languages/d-lang/files/dmd-config.conf: -------------------------------------------------------------------------------- 1 | [Environment32] 2 | DFLAGS=-I/usr/include/dlang/dmd -L-L/usr/lib32 -L--export-dynamic -fPIC 3 | 4 | [Environment64] 5 | DFLAGS=-I/usr/include/dlang/dmd -L-L/usr/lib -L--export-dynamic -fPIC 6 | -------------------------------------------------------------------------------- /languages/go/checksums: -------------------------------------------------------------------------------- 1 | 9419cc70dc5a2523f29a77053cafff658ed21ef3561d9b6b020280ebceab28b9 2 | f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52 3 | 41b02749da3b5a59ba5cdfac4c521e00107313e9e4f4d22ef602890efce520a2 4 | -------------------------------------------------------------------------------- /languages/crystal/checksums: -------------------------------------------------------------------------------- 1 | f53e459ef6c7227df922a76fb62e350c90d52d30bfaa84b90feda9731bb98655 2 | 8e047ae1843929be93b7969200d5b25892f25897d92a4815cb629b363ad4f0f0 3 | c361bed9e90b26cb18c908f690de7149addb3d89190e0f8fef8f960b8432981b 4 | -------------------------------------------------------------------------------- /languages/chez-scheme/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | ./configure \ 4 | --installprefix=/usr \ 5 | --temproot="$1" \ 6 | --threads \ 7 | --disable-x11 \ 8 | --disable-curses 9 | 10 | make DESTDIR="$1" install 11 | -------------------------------------------------------------------------------- /extra/ldc/sources: -------------------------------------------------------------------------------- 1 | https://github.com/ldc-developers/ldc/releases/download/v1.24.0/ldc-1.24.0-src.tar.gz 2 | patches/01-conf.patch 3 | #patches/3332.patch 4 | #patches/add-missing-musl-definitions.patch 5 | patches/disable-static-assert.patch 6 | -------------------------------------------------------------------------------- /extra/gcc-multilib/sources: -------------------------------------------------------------------------------- 1 | https://gcc.gnu.org/pub/gcc/releases/gcc-11.1.0/gcc-11.1.0.tar.xz gcc 2 | https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz gcc/gmp 3 | https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz gcc/mpfr 4 | https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz gcc/mpc 5 | files/c99 6 | -------------------------------------------------------------------------------- /languages/ruby/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | ./configure \ 4 | --prefix=/usr \ 5 | --enable-shared \ 6 | --disable-rpath \ 7 | --with-openssl-dir=/usr 8 | 9 | sed 's/} > $@/} | tee $@/g' Makefile > _ 10 | mv -f _ Makefile 11 | 12 | make 13 | make DESTDIR="$1" install 14 | -------------------------------------------------------------------------------- /extra/gc/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | patch -p1 < gc-missing-header.patch 4 | 5 | ./autogen.sh 6 | ./configure --enable-static --disable-shared --enable-cplusplus --disable-docs 7 | 8 | sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool 9 | 10 | make -j"$(nproc)" 11 | make install 12 | -------------------------------------------------------------------------------- /languages/vala/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | ./configure \ 4 | --prefix=/usr \ 5 | --disable-valadoc 6 | 7 | make 8 | make DESTDIR="$1" install 9 | 10 | # Remove unnecessary stuff 11 | find "$1" -name "*.la" -exec rm -rf {} + 12 | 13 | # Dir is not needed 14 | rm -rf "$1/usr/share/devhelp" 15 | -------------------------------------------------------------------------------- /extra/pcre2/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | ./configure \ 4 | --prefix=/usr \ 5 | --enable-utf8 \ 6 | --enable-unicode-properties \ 7 | --enable-pcre2-8 \ 8 | --enable-pcre2-16 \ 9 | --enable-pcre2-32 \ 10 | --with-match-limit-depth=8192 11 | 12 | make 13 | make DESTDIR="$1" install 14 | -------------------------------------------------------------------------------- /languages/lua/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | make MYCFLAGS="$CFLAGS -fPIC" \ 4 | MYLDFLAGS="$LDFLAGS" \ 5 | posix 6 | 7 | make INSTALL_TOP="$1/usr" \ 8 | INSTALL_MAN="$1/usr/share/man/man1" \ 9 | INSTALL_DATA="cp -d" \ 10 | install 11 | 12 | install -Dm 644 lua.pc "$1/usr/lib/pkgconfig/lua.pc" 13 | -------------------------------------------------------------------------------- /languages/zig/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | unset AR NM CC CXX RANLIB DESTDIR 4 | 5 | TARGET="x86_64-linux-musl" 6 | MCPU="native" 7 | 8 | ./build -j"$(nproc)" "$TARGET" "$MCPU" 9 | 10 | mkdir -p "$1/usr/bin" 11 | cp "out/zig-${TARGET}-${MCPU}/bin/zig" "$1/usr/bin/zig" 12 | cp -r "out/zig-${TARGET}-${MCPU}/lib" "$1/usr" 13 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Shellcheck 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v1 12 | - name: Run shellcheck. 13 | run: | 14 | shopt -s nullglob 15 | shellcheck */*/build */*/post-install 16 | -------------------------------------------------------------------------------- /languages/pforth/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | cd platforms/unix 4 | make all EXTRA_CCOPTS='-DPF_DEFAULT_DICTIONARY=\"/usr/share/pforth/pforth.dic\"' 5 | 6 | mkdir -p "$1/usr/bin" 7 | mkdir -p "$1/usr/share/pforth" 8 | 9 | mv ./pforth "$1/usr/bin" 10 | mv ./pforth_standalone "$1/usr/bin" 11 | mv ./pforth.dic "$1/usr/share/pforth" 12 | -------------------------------------------------------------------------------- /languages/ghc-bin/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | mkdir -p "$1/usr" 4 | 5 | cp -r bin "$1/usr" 6 | cp -r include "$1/usr" 7 | cp -r lib "$1/usr" 8 | 9 | # These are provided by libffi. 10 | rm -f "$1/usr/lib/libffi.so" \ 11 | "$1/usr/include/ffitarget.h" \ 12 | "$1/usr/include/ffi.h" 13 | 14 | install -Dm755 ghci "$1/usr/bin" 15 | -------------------------------------------------------------------------------- /languages/racket-minimal/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | rm -Rf src/foreign/libffi 4 | 5 | cd src 6 | 7 | ./configure \ 8 | --prefix=/usr \ 9 | --sysconfdir=/etc \ 10 | --enable-shared \ 11 | --disable-docs 12 | 13 | make 14 | make install DESTDIR="$1" 15 | 16 | rm -Rf "$1/usr/share/applications" 17 | rm -Rf "$1/usr/lib/racket/gracket" 18 | -------------------------------------------------------------------------------- /extra/gcc-multilib/checksums: -------------------------------------------------------------------------------- 1 | 4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf 2 | fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2 3 | 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f 4 | 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459 5 | 765614b3396d70bca3fa0ae4a813632486c6dca320e2bd13c8c39dca52be4a4c 6 | -------------------------------------------------------------------------------- /languages/d-lang/sources: -------------------------------------------------------------------------------- 1 | git+https://github.com/dlang/dmd#385312b93239311c038ffd8c221ac62738006382 dmd 2 | git+https://github.com/dlang/druntime#92f73826aa27e2c663c369b4167c65ca2ffcf8c4 druntime 3 | git+https://github.com/dlang/phobos#8c85c386025c62906a8fa6653b3c68265caec15c phobos 4 | patches/dmd-musl.patch 5 | patches/dmd-remove-tests.patch 6 | files/dmd-config.conf 7 | -------------------------------------------------------------------------------- /testing/java/openjdk8-bin/post-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | cat < export JAVA_HOME=/usr/lib/jvm/openjdk8 8 | 9 | -> Add '/usr/lib/jvm/openjdk8/bin' to your 'PATH' 10 | 11 | NOTE: The that this is not a native build. 12 | Please report all bugs and errors. 13 | EOF 14 | -------------------------------------------------------------------------------- /extra/libexecinfo/checksums: -------------------------------------------------------------------------------- 1 | c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f libexecinfo-1.1.tar.bz2 2 | 346727e58d9ffec3e8ffda8fb3ed3d72e66cdfe52c521e668e1c117e18ebfb23 10-execinfo.patch 3 | 5690b663157b140a697746b9f279acb7646a63500d9e244013837b3eb233b1b2 20-define-gnu-source.patch 4 | 4ac57be3adacdbdd05705e86a826f43252bcf576c4fba191b774c0fa6fe410c3 30-linux-makefile.patch 5 | -------------------------------------------------------------------------------- /testing/java/openjdk-jre8-bin/post-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | cat < export JAVA_HOME=$JAVA_HOME:/usr/lib/jvm/openjdk-jre8" 8 | 9 | -> Add '/usr/lib/jvm/openjdk-jre8/bin' to your 'PATH' 10 | 11 | NOTE: The that this is not a native build. 12 | Please report all bugs and errors. 13 | EOF 14 | -------------------------------------------------------------------------------- /languages/julia/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | export PATH="bin:$PATH" 4 | 5 | git submodule init 6 | git submodule update 7 | 8 | make release VERBOSE=1 JLDFLAGS="${LDFLAGS}" \ 9 | prefix=/usr \ 10 | bindir=/usr/bin \ 11 | sysconfdir=/etc \ 12 | MARCH=x86-64 13 | 14 | make DESTDIR="$1" install VERBOSE=1 \ 15 | prefix=/usr \ 16 | bindir=/usr/bin \ 17 | sysconfdir=/etc \ 18 | MARCH=x86-64 19 | -------------------------------------------------------------------------------- /languages/v-lang/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | export VFLAGS='-cc gcc' 4 | 5 | make 6 | 7 | mkdir -p "$1/usr/lib/vlang" 8 | mkdir -p "$1/usr/share/vlang" 9 | mkdir -p "$1/usr/bin" 10 | 11 | install -Dm755 v "$1/usr/lib/vlang/v" 12 | 13 | cp -r cmd "$1/usr/lib/vlang/" 14 | cp -r examples "$1/usr/share/vlang/" 15 | cp -r thirdparty "$1/usr/lib/vlang/" 16 | cp -r vlib "$1/usr/lib/vlang/" 17 | 18 | cp v.mod "$1/usr/lib/vlang/" 19 | 20 | ln -s /usr/lib/vlang/v "$1/usr/bin/v" 21 | -------------------------------------------------------------------------------- /extra/libexecinfo/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | for patch in *.patch; do 4 | patch -p1 < "$patch" 5 | done 6 | 7 | export CFLAGS="${CFLAGS} -fno-omit-frame-pointer" 8 | 9 | make 10 | 11 | install -Dm755 execinfo.h "$1/usr/include/execinfo.h" 12 | install -Dm755 stacktraverse.h "$1/usr/include/stacktraverse.h" 13 | install -Dm755 libexecinfo.a "$1/usr/lib/libexecinfo.a" 14 | install -Dm755 libexecinfo.so.1 "$1/usr/lib/libexecinfo.so.1" 15 | ln -s libexecinfo.so.1 "$1/usr/lib/libexecinfo.so" 16 | -------------------------------------------------------------------------------- /languages/crystal/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | patch -p1 < fix-crystal-sh.patch 4 | 5 | export PATH="core/bin:$PATH" 6 | export CRYSTAL_CONFIG_VERSION="1.3.2" 7 | export EXPORT_CC="CC=cc" 8 | 9 | make crystal \ 10 | CRYSTAL_CONFIG_PATH="/usr/lib/crystal" \ 11 | CRYSTAL_CACHE_DIR=".tmp/crystal" \ 12 | LLVM_CONFIG="/usr/bin/llvm-config" \ 13 | release=1 \ 14 | FLAGS="--no-debug" 15 | 16 | install -Dm755 .build/crystal "$1/usr/bin/crystal" 17 | 18 | mkdir -p "$1/usr/lib" 19 | 20 | cp -a src "$1/usr/lib/crystal" 21 | -------------------------------------------------------------------------------- /languages/lua/files/lua.pc: -------------------------------------------------------------------------------- 1 | V=5.3 2 | R=5.3.5 3 | 4 | prefix=/usr 5 | INSTALL_BIN=${prefix}/bin 6 | INSTALL_INC=${prefix}/include 7 | INSTALL_LIB=${prefix}/lib 8 | INSTALL_MAN=${prefix}/man/man1 9 | INSTALL_LMOD=${prefix}/share/lua/${V} 10 | INSTALL_CMOD=${prefix}/lib/lua/${V} 11 | exec_prefix=${prefix} 12 | libdir=${exec_prefix}/lib 13 | includedir=${prefix}/include 14 | 15 | Name: Lua 16 | Description: An Extensible Extension Language 17 | Version: ${R} 18 | Requires: 19 | Libs: -L${libdir} -llua -lm 20 | Cflags: -I${includedir} 21 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Please fill out the template. 2 | 3 | Read: https://k1ss.org/wiki/kiss/style-guide 4 | 5 | --- 6 | 7 | ## Description of package 8 | 9 | 10 | ## Installed manifest of package 11 | 12 | (`kiss manifest `) 13 | 14 | ``` 15 | MANIFEST HERE 16 | ``` 17 | 18 | ## New package 19 | 20 | - [ ] Latest upstream version. 21 | - [ ] I agree to maintain this package. 22 | - [ ] I agree to notify @mmatongo if I can no longer maintain this package. 23 | 24 | ## Existing package 25 | 26 | - [ ] I am the maintainer of this package. 27 | -------------------------------------------------------------------------------- /extra/llvm11/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | export DESTDIR="$1" 4 | 5 | cmake -B build \ 6 | -DCMAKE_INSTALL_PREFIX=/usr \ 7 | -DCMAKE_BUILD_TYPE=Release \ 8 | -DLLVM_BUILD_LLVM_DYLIB=ON \ 9 | -DLLVM_LINK_LLVM_DYLIB=ON \ 10 | -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \ 11 | -DLLVM_ENABLE_RTTI=ON \ 12 | -DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \ 13 | -DLLVM_BUILD_EXAMPLES=OFF \ 14 | -DLLVM_BUILD_DOCS=OFF \ 15 | -DLLVM_BUILD_TESTS=OFF \ 16 | -DLLVM_ENABLE_LIBXML2=OFF \ 17 | -Wno-dev 18 | 19 | cmake --build build 20 | cmake --install build 21 | -------------------------------------------------------------------------------- /languages/d-lang/patches/dmd-remove-tests.patch: -------------------------------------------------------------------------------- 1 | diff -Nurp a/dmd/test/runnable/gdb4181.d b/dmd/test/runnable/gdb4181.d 2 | deleted file mode 100644 3 | --- a/dmd/test/runnable/gdb4181.d 4 | +++ /dev/null 5 | @@ -1,23 +0,0 @@ 6 | -/* 7 | -REQUIRED_ARGS: -g 8 | -PERMUTE_ARGS: 9 | -GDB_SCRIPT: 10 | ---- 11 | -b 22 12 | -r 13 | -echo RESULT= 14 | -p 'gdb.x' + 'gdb.STest.y' 15 | ---- 16 | -GDB_MATCH: RESULT=.*33 17 | -*/ 18 | -module gdb; 19 | - 20 | -int x; 21 | -struct STest { static int y; } 22 | - 23 | -void main() 24 | -{ 25 | - x = 11; 26 | - STest.y = 22; 27 | - // BP 28 | -} 29 | -------------------------------------------------------------------------------- /extra/libexecinfo/patches/20-define-gnu-source.patch: -------------------------------------------------------------------------------- 1 | --- a/execinfo.c.orig 2 | +++ b/execinfo.c 3 | @@ -26,6 +26,7 @@ 4 | * $Id: execinfo.c,v 1.3 2004/07/19 05:21:09 sobomax Exp $ 5 | */ 6 | 7 | +#define _GNU_SOURCE 8 | #include 9 | #include 10 | #include 11 | --- a/stacktraverse.c.orig 12 | +++ b/stacktraverse.c 13 | @@ -1,3 +1,4 @@ 14 | +#define _GNU_SOURCE 15 | #include 16 | 17 | #include "stacktraverse.h" 18 | --- a/test.c.orig 19 | +++ b/test.c 20 | @@ -1,3 +1,4 @@ 21 | +#define _GNU_SOURCE 22 | #include 23 | #include 24 | 25 | -------------------------------------------------------------------------------- /languages/mono/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | for patch in *.patch; do 4 | patch -p1 < "$patch" 5 | done 6 | 7 | export CFLAGS="$CFLAGS -fno-strict-aliasing" 8 | 9 | ./autogen.sh \ 10 | --prefix=/usr \ 11 | --sysconfdir=/etc \ 12 | --mandir=/usr/share/man \ 13 | --localstatedir=/var \ 14 | --disable-rpath \ 15 | --disable-boehm \ 16 | --enable-parallel-mark \ 17 | --with-mcs-docs=no \ 18 | --without-sigaltstack 19 | 20 | make 21 | make DESTDIR="$1" install 22 | 23 | rm -rf "$1/usr/lib/*.la" 24 | rm -rf "$1/usr/lib/mono/*/Mono.Security.Win32*" 25 | rm -rf "$1/usr/lib/libMonoSupportW.*" 26 | -------------------------------------------------------------------------------- /extra/ldc/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | for patch in *.patch; do 4 | patch -p1 < "$patch" 5 | done 6 | 7 | export DESTDIR="$1" 8 | 9 | cmake -B build \ 10 | -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ 11 | -DCMAKE_C_FLAGS="$CFLAGS" \ 12 | -DD_COMPILER='/usr/bin/gdmd' 13 | 14 | make -C build 15 | 16 | cmake \ 17 | -DCMAKE_INSTALL_PREFIX=/usr \ 18 | -DCMAKE_INSTALL_LIBDIR=lib \ 19 | -DBUILD_SHARED_LIBS=True \ 20 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 21 | -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ 22 | -DCMAKE_C_FLAGS="$CFLAGS" \ 23 | -DD_COMPILER=build/bin/ldmd2 24 | 25 | make 26 | 27 | cmake --install build 28 | -------------------------------------------------------------------------------- /languages/ocaml/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | export AS="cc -c" 4 | export ASPP="cc -c" 5 | 6 | #for patch in *.patch; do 7 | # patch -p1 < "$patch" 8 | #done 9 | 10 | ./configure \ 11 | --prefix /usr \ 12 | --bindir /usr/bin \ 13 | --libdir /usr/lib/ocaml \ 14 | --mandir /usr/share/man \ 15 | --disable-force-safe-string 16 | 17 | make world.opt 18 | make DESTDIR="$1" install 19 | 20 | install -Dm644 LICENSE "$1/usr/share/licenses/ocaml/LICENSE" 21 | 22 | find "$1/usr/lib/ocaml" \ 23 | \( -name '*.cmt' -o -name '*.cmti' -o -name '*.ml' \) \ 24 | -a -delete 25 | 26 | rm -rf "$1/usr/lib/ocaml/compiler-libs" 27 | -------------------------------------------------------------------------------- /languages/crystal/patches/fix-crystal-sh.patch: -------------------------------------------------------------------------------- 1 | Don't print error message when there's no system-provided crystal. 2 | 3 | --- a/bin/crystal 4 | +++ b/bin/crystal 5 | @@ -150,7 +150,7 @@ 6 | if [ -z "$CRYSTAL_CONFIG_LIBRARY_PATH" ] || [ -z "$CRYSTAL_LIBRARY_PATH" ]; then 7 | CRYSTAL_INSTALLED_LIBRARY_PATH="$( 8 | export PATH="$(remove_path_item "$(remove_path_item "$PATH" "$SCRIPT_ROOT")" "bin")" 9 | - crystal env CRYSTAL_LIBRARY_PATH || echo "" 10 | + crystal env CRYSTAL_LIBRARY_PATH 2>/dev/null || echo "" 11 | )" 12 | export CRYSTAL_LIBRARY_PATH=${CRYSTAL_LIBRARY_PATH:-$CRYSTAL_INSTALLED_LIBRARY_PATH} 13 | export CRYSTAL_CONFIG_LIBRARY_PATH=${CRYSTAL_CONFIG_LIBRARY_PATH:-$CRYSTAL_INSTALLED_LIBRARY_PATH} 14 | -------------------------------------------------------------------------------- /extra/libexecinfo/manifest: -------------------------------------------------------------------------------- 1 | /var/db/kiss/installed/libexecinfo/version 2 | /var/db/kiss/installed/libexecinfo/sources 3 | /var/db/kiss/installed/libexecinfo/patches/30-linux-makefile.patch 4 | /var/db/kiss/installed/libexecinfo/patches/20-define-gnu-source.patch 5 | /var/db/kiss/installed/libexecinfo/patches/10-execinfo.patch 6 | /var/db/kiss/installed/libexecinfo/patches/ 7 | /var/db/kiss/installed/libexecinfo/manifest 8 | /var/db/kiss/installed/libexecinfo/checksums 9 | /var/db/kiss/installed/libexecinfo/build 10 | /var/db/kiss/installed/libexecinfo/ 11 | /var/db/kiss/installed/ 12 | /var/db/kiss/ 13 | /var/db/ 14 | /var/ 15 | /usr/lib/libexecinfo.so.1 16 | /usr/lib/libexecinfo.so 17 | /usr/lib/libexecinfo.a 18 | /usr/lib/ 19 | /usr/include/stacktraverse.h 20 | /usr/include/execinfo.h 21 | /usr/include/ 22 | /usr/ 23 | -------------------------------------------------------------------------------- /extra/ldc/patches/disable-static-assert.patch: -------------------------------------------------------------------------------- 1 | https://github.com/ldc-developers/ldc/issues/3270 2 | 3 | See https://git.musl-libc.org/cgit/musl/tree/src/math/sqrtl.c 4 | diff --git a/runtime/phobos/std/math.d b/runtime/phobos/std/math.d 5 | index 1c526d8..67f2521 100644 6 | --- a/runtime/phobos/std/math.d 7 | +++ b/runtime/phobos/std/math.d 8 | @@ -4925,7 +4925,17 @@ 9 | enum real SQRTMIN = 0.5 * sqrt(real.min_normal); // This is a power of 2. 10 | enum real SQRTMAX = 1.0L / SQRTMIN; // 2^^((max_exp)/2) = nextUp(sqrt(real.max)) 11 | 12 | - static assert(2*(SQRTMAX/2)*(SQRTMAX/2) <= real.max); 13 | + // https://github.com/ldc-developers/ldc/issues/3270#issuecomment-613132406 14 | + version(AArch64) 15 | + { 16 | + } 17 | + else version(SystemZ) 18 | + { 19 | + } 20 | + else 21 | + { 22 | + static assert(2*(SQRTMAX/2)*(SQRTMAX/2) <= real.max); 23 | + } 24 | 25 | static if (floatTraits!(real).realFormat == RealFormat.ieeeQuadruple) 26 | { 27 | -------------------------------------------------------------------------------- /languages/d-lang/patches/dmd-musl.patch: -------------------------------------------------------------------------------- 1 | diff -Nurp a/dmd/src/dmd/link.d b/dmd/src/dmd/link.d 2 | --- a/dmd/src/dmd/link.d 3 | +++ b/dmd/src/dmd/link.d 4 | @@ -746,6 +746,8 @@ 5 | argv.push("-lrt"); 6 | // Link against libdl for phobos usage of dlopen 7 | argv.push("-ldl"); 8 | + // Musl 9 | + argv.push("-lexecinfo"); 10 | } 11 | if (global.params.verbose) 12 | { 13 | diff -Nurp a/dmd/src/dmd/mars.d b/dmd/src/dmd/mars.d 14 | --- a/dmd/src/dmd/mars.d 15 | +++ b/dmd/src/dmd/mars.d 16 | @@ -1194,7 +1194,10 @@ void addDefaultVersionIdentifiers(const ref Param params) 17 | // See https://github.com/dlang/dmd/pull/8020 18 | // And https://wiki.osdev.org/Target_Triplet 19 | version (CRuntime_Musl) 20 | + { 21 | VersionCondition.addPredefinedGlobalIdent("CRuntime_Musl"); 22 | + VersionCondition.addPredefinedGlobalIdent("ExtExecinfo_BSDFmt"); 23 | + } 24 | else 25 | VersionCondition.addPredefinedGlobalIdent("CRuntime_Glibc"); 26 | VersionCondition.addPredefinedGlobalIdent("CppRuntime_Gcc"); 27 | -------------------------------------------------------------------------------- /languages/mono/post-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | /etc/ssl/update-certdata.sh 4 | 5 | yes | certmgr -ssl -m https://go.microsoft.com 6 | yes | certmgr -ssl -m https://nugetgallery.blob.core.windows.net 7 | yes | certmgr -ssl -m https://nuget.org 8 | 9 | cert-sync /etc/ssl/certs/ca-certificates.crt 10 | 11 | #!/bin/sh -e 12 | 13 | printf "+-----------------------------------------------------+ 14 | | ATTENTION | 15 | +-----------------------------------------------------+ 16 | | This package adds three certifaces to your | 17 | | /etc/ssl/certs/ca-certificates.crt | 18 | | and modifies your /etc/ssl/cert.pem file | 19 | | the added domains are; | 20 | | | 21 | | https://go.microsoft.com | 22 | | https://nugetgallery.blob.core.windows.net | 23 | | https://nuget.org | 24 | | | 25 | | You can revert this by deleting the changed files | 26 | | and running /etc/ssl/update-certdata.sh | 27 | +-----------------------------------------------------+\n" 28 | 29 | 30 | -------------------------------------------------------------------------------- /extra/libexecinfo/patches/30-linux-makefile.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.orig 2 | +++ b/Makefile 3 | @@ -23,24 +23,25 @@ 4 | # SUCH DAMAGE. 5 | # 6 | # $Id: Makefile,v 1.3 2004/07/19 05:19:55 sobomax Exp $ 7 | +# 8 | +# Linux Makefile by Matt Smith , 2011/01/04 9 | 10 | -LIB= execinfo 11 | +CC=cc 12 | +AR=ar 13 | +EXECINFO_CFLAGS=$(CFLAGS) -O2 -pipe -fno-strict-aliasing -std=gnu99 -fstack-protector -c 14 | +EXECINFO_LDFLAGS=$(LDFLAGS) 15 | 16 | -SRCS= stacktraverse.c stacktraverse.h execinfo.c execinfo.h 17 | +all: static dynamic 18 | 19 | -INCS= execinfo.h 20 | +static: 21 | + $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c 22 | + $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c 23 | + $(AR) rcs libexecinfo.a stacktraverse.o execinfo.o 24 | 25 | -SHLIB_MAJOR= 1 26 | -SHLIB_MINOR= 0 27 | +dynamic: 28 | + $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c -o stacktraverse.So 29 | + $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c -o execinfo.So 30 | + $(CC) -shared -Wl,-soname,libexecinfo.so.1 -o libexecinfo.so.1 stacktraverse.So execinfo.So 31 | 32 | -NOPROFILE= yes 33 | - 34 | -DPADD= ${LIBM} 35 | -LDADD= -lm 36 | - 37 | -#WARNS?= 4 38 | - 39 | -#stacktraverse.c: gen.py 40 | -# ./gen.py > stacktraverse.c 41 | - 42 | -.include 43 | +clean: 44 | + rm -rf *.o *.So *.a *.so 45 | -------------------------------------------------------------------------------- /languages/mono/patches/mono-try-catch.patch: -------------------------------------------------------------------------------- 1 | diff -ur mono-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs mono-patched-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs 2 | --- mono-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs 2017-11-17 18:12:57.000000000 +0300 3 | +++ mono-patched-5.9.0.398/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs 2017-12-06 06:24:45.067519852 +0300 4 | @@ -2810,14 +2810,21 @@ 5 | 6 | internal override object ClipboardRetrieve(IntPtr handle, int type, XplatUI.ClipboardToObject converter) 7 | { 8 | - XConvertSelection(DisplayHandle, handle, (IntPtr)type, (IntPtr)type, FosterParent, IntPtr.Zero); 9 | + try 10 | + { 11 | + XConvertSelection(DisplayHandle, handle, (IntPtr)type, (IntPtr)type, FosterParent, IntPtr.Zero); 12 | 13 | - Clipboard.Retrieving = true; 14 | - while (Clipboard.Retrieving) { 15 | - UpdateMessageQueue(null, false); 16 | - } 17 | + Clipboard.Retrieving = true; 18 | + while (Clipboard.Retrieving) { 19 | + UpdateMessageQueue(null, false); 20 | + } 21 | 22 | - return Clipboard.Item; 23 | + return Clipboard.Item; 24 | + } 25 | + catch (Exception ex) 26 | + { 27 | + return null; 28 | + } 29 | } 30 | 31 | internal override void ClipboardStore (IntPtr handle, object obj, int type, XplatUI.ObjectToClipboard converter, bool copy) 32 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | KISS LANGUAGE REPO 2 | --- 3 | 4 | This is repo dedicated to language 5 | compilers etc for any https://kisslinux.org based distro. 6 | 7 | Because KISS and it's derivatives are source based and pretty much every package 8 | can be managed by anyone, I saw the need to make this repo 9 | to put into one place the languages you might end up 10 | needing. 11 | 12 | 13 | AVAILABLE LANGUAGES 14 | --- 15 | 16 | - [x] Nim 17 | - [x] Haskell 18 | - [x] Go 19 | - [x] Lua 20 | - [x] Ocaml 21 | - [x] R [r-lang] 22 | - [x] Ruby 23 | - [x] Vala 24 | - [x] Racket (Minimal) 25 | - [x] Crystal 26 | - [x] Fortran (Technically a compiler) 27 | - [x] D [d-lang] 28 | - [x] Janet 29 | - [x] V [v-lang] 30 | - [x] Chez Scheme 31 | - [x] GForth 32 | - [x] PForth 33 | - [x] LuaJIT 34 | - [x] Retro 35 | - [x] C# (mono) 36 | - [x] Java [non native] 37 | - [x] Zig 38 | 39 | WIP LANGUAGES 40 | --- 41 | 42 | - [] Java-native [status: in progress] 43 | - [-] Kotlin [status: in progress] 44 | - [-] Scala [status: in progress] 45 | - [-] Clojure [status: in progress] 46 | - [-] Erlang [status: in progress] 47 | - [-] Elixir 48 | - [-] Julia [status: failing] 49 | - [-] F# (f-sharp) 50 | 51 | REQUIREMENTS 52 | --- 53 | In order to use this repo you need to have it set-up and pointing to your [KISS_PATH]. 54 | 55 | YOU ARE REQUIRED TO INSTALL [gcc-multilib] without it half 56 | of this repo will not compile. 57 | 58 | NB. 59 | --- 60 | If you want to contribute, provide some insight or anything of the kind, feel free to make a pull or open an issue. 61 | -------------------------------------------------------------------------------- /languages/nim/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | ( 4 | cd csources 5 | 6 | chmod +x build.sh 7 | # Build nim source files 8 | ./build.sh 9 | ) 10 | 11 | # Build a release version of the "koch" maintenance program 12 | bin/nim compile -d:release koch 13 | 14 | # Build a release version of the nim compiler 15 | ./koch boot -d:release 16 | 17 | # Build nimsuggest, nimgrep, and nimpretty 18 | ./koch tools 19 | 20 | # Build nimrtl.nim 21 | ( 22 | cd lib 23 | ../bin/nim c --app:lib -d:createNimRtl -d:release nimrtl.nim 24 | ) 25 | 26 | # Installs bins / dirs 27 | install -Dm755 bin/nim "$1/usr/bin/nim" 28 | install -Dm755 bin/nimble "$1/usr/bin/nimble" 29 | install -Dm755 bin/nimgrep "$1/usr/bin/nimgrep" 30 | install -Dm755 bin/nimpretty "$1/usr/bin/nimpretty" 31 | install -Dm755 bin/nimsuggest "$1/usr/bin/nimsuggest" 32 | 33 | # Copy lib and config folders to respective dirs 34 | mkdir -p "$1/usr/lib/nim" 35 | mkdir -p "$1/etc/nim" 36 | 37 | cp -r lib/* "$1/usr/lib/nim" 38 | cp -r config "$1/etc/nim" 39 | 40 | # Workaround Nim's nonstandard header file placement 41 | # (https://bugs.archlinux.org/task/50252) 42 | mkdir -p "$1/usr/include" 43 | ln -s lib/nim/*.h "$1/usr/include/" 44 | 45 | # Fix unusual placement of shared object files 46 | ln -s "$1/usr/lib/nim/libnimrtl.so" "$1/usr/lib/libnimrtl.so" 47 | 48 | # Nimble looks for nimscriptapi.nim in /usr/bin/nimblepkg/, of all places 49 | mkdir -p "$1/usr/share/nimble" 50 | 51 | # Copy everything to the right folder 52 | cp -r dist/nimble/src/nimblepkg "$1/usr/share/nimble" 53 | 54 | # Link the two folders 55 | ln -s "$1/usr/share/nimble" "$1/usr/bin/nimblepkg" 56 | -------------------------------------------------------------------------------- /extra/ldc/patches/01-conf.patch: -------------------------------------------------------------------------------- 1 | diff -urp a/ldc2.conf.in b/ldc2.conf.in 2 | --- a/ldc2.conf.in 2019-10-16 20:53:09.000000000 +0000 3 | +++ b/ldc2.conf.in 2019-10-26 06:43:17.000000000 +0000 4 | @@ -18,6 +18,7 @@ default: 5 | { 6 | // default switches injected before all explicit command-line switches 7 | switches = [ 8 | + "-linker=bfd","-link-defaultlib-shared", 9 | "-defaultlib=druntime-ldc",@ADDITIONAL_DEFAULT_LDC_SWITCHES@ 10 | ]; 11 | // default switches appended after all explicit command-line switches 12 | diff -urp a/ldc2_install.conf.in b/ldc2_install.conf.in 13 | --- a/ldc2_install.conf.in 2019-10-16 20:53:09.000000000 +0000 14 | +++ b/ldc2_install.conf.in 2019-10-26 06:43:54.000000000 +0000 15 | @@ -18,6 +18,7 @@ default: 16 | { 17 | // default switches injected before all explicit command-line switches 18 | switches = [ 19 | + "-linker=bfd","-link-defaultlib-shared", 20 | "-defaultlib=phobos2-ldc,druntime-ldc",@ADDITIONAL_DEFAULT_LDC_SWITCHES@ 21 | ]; 22 | // default switches appended after all explicit command-line switches 23 | diff -urp a/ldc2_phobos.conf.in b/ldc2_phobos.conf.in 24 | --- a/ldc2_phobos.conf.in 2019-10-16 20:53:09.000000000 +0000 25 | +++ b/ldc2_phobos.conf.in 2019-10-26 06:51:09.000000000 +0000 26 | @@ -18,6 +18,7 @@ default: 27 | { 28 | // default switches injected before all explicit command-line switches 29 | switches = [ 30 | + "-linker=bfd","-link-defaultlib-shared", 31 | "-defaultlib=phobos2-ldc,druntime-ldc",@ADDITIONAL_DEFAULT_LDC_SWITCHES@ 32 | ]; 33 | // default switches appended after all explicit command-line switches 34 | -------------------------------------------------------------------------------- /languages/go/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | patch -p1 < posix-build.patch 4 | 5 | # Disable stripping of binaries. 6 | # This breaks Go. 7 | :> nostrip 8 | 9 | export CC="${CC:-cc}" 10 | export GOARCH=amd64 11 | export GO_LDFLAGS="-w -s" 12 | 13 | [ -f "$KISS_ROOT/var/db/kiss/installed/go/manifest" ] || { 14 | export GOROOT=$PWD/go1.4-bootstrap 15 | export GOROOT_FINAL=$PWD/lib/go-bootstrap 16 | 17 | mkdir -p lib/go-bootstrap 18 | 19 | cd "$GOROOT/src" 20 | ./make.bash 21 | cd .. 22 | cp -a bin pkg src ../lib/go-bootstrap 23 | cd .. 24 | } 25 | 26 | export GOROOT_FINAL=/usr/lib/go 27 | 28 | if [ -f "$KISS_ROOT/var/db/kiss/go/manifest" ]; then 29 | export GOROOT_BOOTSTRAP=/usr/lib/go 30 | else 31 | export GOROOT_BOOTSTRAP=$PWD/lib/go-bootstrap 32 | fi 33 | 34 | export GOROOT=$PWD/go-current 35 | 36 | ( 37 | cd "$GOROOT/src" 38 | ./make.bash --no-clean -v 39 | ) 40 | 41 | cd "$GOROOT" 42 | 43 | mkdir -p "$1/usr/bin" "$1/usr/lib/go/bin" 44 | 45 | install -m755 "bin/go" "$1/usr/lib/go/bin/go" 46 | install -m755 "bin/gofmt" "$1/usr/lib/go/bin/gofmt" 47 | 48 | ln -s "/usr/lib/go/bin/go" "$1/usr/bin" 49 | ln -s "/usr/lib/go/bin/gofmt" "$1/usr/bin" 50 | 51 | cp -a misc pkg src lib "$1/usr/lib/go" 52 | 53 | # Remove unneeded files. 54 | rm -f "$1/usr/share/go/doc/articles/wiki/get.bin" 55 | rm -f "$1/usr/lib/go/pkg/tool/"*/api 56 | rm -rf "$1/usr/lib/go/pkg/bootstrap" 57 | rm -rf "$1/usr/lib/go/pkg/obj" 58 | 59 | cd "$1/usr/lib/go/src" 60 | 61 | # Remove tests. 62 | find . -type f -a -name \*_test.go -delete 63 | find . -type f -a -name \*.bash -delete 64 | find . -type f -a -name \*.bat -delete 65 | find . -type f -a -name \*.rc -delete 66 | 67 | find . -type d -a -name testdata | 68 | while read -r dir; do 69 | rm -rf "$dir" 70 | done 71 | -------------------------------------------------------------------------------- /extra/gc/patches/gc-missing-header.patch: -------------------------------------------------------------------------------- 1 | From 58a1b7168754856dfaea080c294b84d73d568ffa Mon Sep 17 00:00:00 2001 2 | From: Jakub Wojciech 3 | Date: Fri, 5 Nov 2021 08:36:32 +0100 4 | Subject: [PATCH] Distribute missing headers in single-obj-compilation 5 | 6 | Makefile.am [PTHREADS] (pkginclude_HEADERS): Move outside the 7 | SINGLE_GC_OBJ conditional. 8 | Makefile.am [ENABLE_GCJ_SUPPORT] (pkginclude_HEADERS): Move outside 9 | the SINGLE_GC_OBJ conditional. 10 | Makefile.am [ENABLE_DISCLAIM] (pkginclude_HEADERS): Move outside the 11 | SINGLE_GC_OBJ conditional. 12 | 13 | Fixes #388 14 | --- 15 | Makefile.am | 15 ++++++++++++--- 16 | 1 file changed, 12 insertions(+), 3 deletions(-) 17 | 18 | diff --git a/Makefile.am b/Makefile.am 19 | index ee99f0012..1e44b8d13 100644 20 | --- a/Makefile.am 21 | +++ b/Makefile.am 22 | @@ -83,7 +83,6 @@ else 23 | if PTHREADS 24 | # Not Cygwin or MinGW. 25 | libgc_la_SOURCES += pthread_start.c pthread_support.c 26 | -pkginclude_HEADERS += include/gc_pthread_redirects.h 27 | if DARWIN_THREADS 28 | libgc_la_SOURCES += darwin_stop_world.c 29 | else 30 | @@ -106,17 +105,27 @@ endif 31 | 32 | if ENABLE_GCJ_SUPPORT 33 | libgc_la_SOURCES += gcj_mlc.c 34 | -pkginclude_HEADERS += include/gc_gcj.h 35 | endif 36 | 37 | if ENABLE_DISCLAIM 38 | libgc_la_SOURCES += fnlz_mlc.c 39 | -pkginclude_HEADERS += include/gc_disclaim.h 40 | endif 41 | 42 | ## End of !SINGLE_GC_OBJ 43 | endif 44 | 45 | +if PTHREADS 46 | +pkginclude_HEADERS += include/gc_pthread_redirects.h 47 | +endif 48 | + 49 | +if ENABLE_GCJ_SUPPORT 50 | +pkginclude_HEADERS += include/gc_gcj.h 51 | +endif 52 | + 53 | +if ENABLE_DISCLAIM 54 | +pkginclude_HEADERS += include/gc_disclaim.h 55 | +endif 56 | + 57 | if USE_INTERNAL_LIBATOMIC_OPS 58 | nodist_libgc_la_SOURCES = libatomic_ops/src/atomic_ops.c 59 | endif 60 | -------------------------------------------------------------------------------- /languages/r-lang/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | for patch in *.patch; do 4 | patch -Np1 -i "$patch" 5 | done 6 | 7 | # CXXFLAGS is propagated to /etc/R/Makeconf that is read when building 8 | # additional R modules. -D__MUSL__ is needed for some modules like Rcpp. 9 | # htps://github.com/RcppCore/Rcpp/issues/448 10 | export CXXFLAGS="$CXXFLAGS" 11 | export CFLAGS="$CFLAGS" 12 | 13 | rm -rf po 14 | 15 | # R refuses to build without these files which is weird considering that 16 | # they are not included in the source tarball 17 | ( 18 | cd doc 19 | touch NEWS.rds 20 | touch NEWS.2.rds 21 | touch NEWS.3.rds 22 | ) 23 | 24 | ./configure \ 25 | --prefix=/usr \ 26 | --sysconfdir=/etc/R \ 27 | --localstatedir=/var \ 28 | --libdir=/usr/lib \ 29 | rhome=/usr \ 30 | rdocdir=/usr/share/doc/R \ 31 | rincludedir=/usr/include/R \ 32 | rsharedir=/usr/share/R \ 33 | --disable-nls \ 34 | --enable-R-shlib \ 35 | --disable-java \ 36 | --without-recommended-packages \ 37 | --without-blas \ 38 | --without-cairo \ 39 | --without-ICU \ 40 | --without-docs \ 41 | --without-jpeglib \ 42 | --without-lapack \ 43 | --without-libpng \ 44 | --without-libtiff \ 45 | --without-tcltk \ 46 | --without-x \ 47 | gcc=gfortran \ 48 | LIBnn=Lib 49 | 50 | # The R build sytem assumes that DESTDIR is only set at install 51 | # This behaviour is unexpected, the result of this is that it 52 | # the DESTDIR to it's initial mkdir calls 53 | # https://github.com/kisslinux/kiss/issues/258 54 | # https://github.com/r-lib/rlang/issues/1246 55 | make DESTDIR="" 56 | make DESTDIR="$1" install 57 | 58 | # Install libRmath.so. 59 | make -C src/nmath/standalone 60 | make DESTDIR="$1" -C src/nmath/standalone install 61 | 62 | # Fixup R wrapper script (taken from Arch). 63 | ln -sf "/usr/bin/R" "$1/usr/lib/R/bin/R" 64 | 65 | # Remove some useless files (COPYING is duplicated, it will be 66 | # in -doc, don't worry). 67 | rm "$1/usr/lib/R/COPYING" "$1/usr/lib/R/SVN-REVISION" 68 | 69 | rm -rf "$1/usr/lib/R/library/translations" 70 | rm -rf "$1/usr/share/R/licenses" 71 | rm -rf "$1/usr/share/doc" 72 | -------------------------------------------------------------------------------- /languages/d-lang/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | for patch in *.patch; do 4 | patch -p1 < "$patch" 5 | done 6 | 7 | mv "dmd-config.conf" "dmd.conf" 8 | 9 | mkdir -p install 10 | 11 | make -C "dmd/" -f posix.mak HOST_DMD=ldmd2 ENABLE_RELEASE=1 INSTALL_DIR="install" install 12 | make -C "druntime/" -f posix.mak ENABLE_RELEASE=1 INSTALL_DIR="install" install 13 | make -C "phobos/" -f posix.mak ENABLE_RELEASE=1 INSTALL_DIR="install" install 14 | 15 | mkdir -p "$1/usr/bin/" 16 | mkdir -p "$1/usr/lib/" 17 | mkdir -p "$1/etc/" 18 | mkdir -p "$1/usr/include/d/" 19 | 20 | install -Dm644 dmd.conf "$1/etc/dmd.conf" 21 | install -Dm755 dmd/generated/linux/release/64/dmd "$1/usr/bin/dmd" 22 | 23 | mkdir -p "$1/usr/include/dlang/dmd/" 24 | 25 | cp -r dmd/generated/linux/release/64/* "$1/usr/lib/" 26 | cp -r druntime/import/* "$1/usr/include/dlang/dmd/" 27 | cp -r phobos/std "$1/usr/include/dlang/dmd/" 28 | cp -r phobos/etc "$1/usr/include/dlang/dmd/" 29 | cp -r phobos/*.d "$1/usr/include/dlang/dmd/" 30 | 31 | # This entire section is messy, I don't know much shell so this is 32 | # very hacky but it works so for now it'll do the job. 33 | find druntime/ -name "*.a*" -exec cp -r {} "$1/usr/lib/" + 34 | find phobos/ -name "*.a*" -exec cp -r {} "$1/usr/lib/" + 35 | find dmd/generated/linux/release/ -name "*.a*" -exec cp -r {} "$1/usr/lib/" + 36 | find druntime/ -name "*.a" -exec cp -r {} "$1/usr/lib/" + 37 | find phobos/ -name "*.a" -exec cp -r {} "$1/usr/lib/" + 38 | find dmd/generated/linux/release/ -name "*.a" -exec cp -r {} "$1/usr/lib/" + 39 | find druntime/ -name "*.so.a" -exec cp -r {} "$1/usr/lib/" + 40 | find phobos/ -name "*.so.a" -exec cp -r {} "$1/usr/lib/" + 41 | find dmd/generated/linux/release/ -name "*.so.a" -exec cp -r {} "$1/usr/lib/" + 42 | find druntime/ -name "*.so*" -exec cp -r {} "$1/usr/lib/" + 43 | find phobos/ -name "*.so*" -exec cp -r {} "$1/usr/lib/" + 44 | find dmd/generated/linux/release/ -name "*.so*" -exec cp -r {} "$1/usr/lib/" + 45 | find druntime/ -name "*.o" -exec cp -r {} "$1/usr/lib/" + 46 | find phobos/ -name "*.o" -exec cp -r {} "$1/usr/lib/" + 47 | find dmd/generated/linux/release/ -name "*.o" -exec cp -r {} "$1/usr/lib/" + 48 | 49 | rm "$1/usr/lib/dmd" 50 | -------------------------------------------------------------------------------- /extra/gcc-multilib/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # Make sure gmp is built with generic options. 4 | cp gcc/gmp/configfsf.guess gcc/gmp/config.guess 5 | cp gcc/gmp/configfsf.sub gcc/gmp/config.sub 6 | 7 | # Use lib not lib64 by default. 8 | sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 9 | sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h 10 | 11 | # Build must happen outside of gcc source. 12 | mkdir -p gcc-build 13 | cd gcc-build 14 | 15 | # Grab the system's GCC version. 16 | IFS=. read -r gcc_version _ 2>/dev/null \ 17 | < "$KISS_ROOT/var/db/kiss/installed/gcc/version" || gcc_version=null 18 | 19 | # Skip the bootstrap process if we are able. 20 | case $2 in "$gcc_version"*) 21 | printf '%s\n' "Minor version difference, disabling bootstrap." 22 | bootstrap=--disable-bootstrap 23 | esac 24 | 25 | export libat_cv_have_ifunc=no 26 | 27 | ../gcc/configure \ 28 | --prefix=/usr \ 29 | --libexecdir=/usr/lib \ 30 | --mandir=/usr/share/man \ 31 | --infodir=/usr/share/info \ 32 | --disable-multilib \ 33 | --disable-symvers \ 34 | --disable-libmpx \ 35 | --disable-libmudflap \ 36 | --disable-libsanitizer \ 37 | --disable-werror \ 38 | --disable-fixed-point \ 39 | --disable-libstdcxx-pch \ 40 | --disable-nls \ 41 | --enable-checking=release \ 42 | --enable-__cxa_atexit \ 43 | --enable-default-pie \ 44 | --enable-default-ssp \ 45 | --enable-shared \ 46 | --enable-threads \ 47 | --enable-tls \ 48 | --enable-languages=c,c++,fortran,d \ 49 | --without-included-gettext \ 50 | --with-system-zlib \ 51 | --build=x86_64-pc-linux-musl \ 52 | "${bootstrap:---enable-bootstrap}" 53 | 54 | make 55 | make DESTDIR="$1" install 56 | 57 | # Save 35MB. 58 | find "$1" -name libgtkpeer.a -exec rm -f {} + 59 | find "$1" -name libgjsmalsa.a -exec rm -f {} + 60 | find "$1" -name libgij.a -exec rm -f {} + 61 | 62 | # Some legacy programs will expect cc 63 | ln -s gcc "$1/usr/bin/cc" 64 | ln -s gfortran "$1/usr/bin/f95" 65 | 66 | # POSIX compliance. 67 | install -Dm755 ../c99 "$1/usr/bin/c99" 68 | 69 | # Symlink for LTO. 70 | { 71 | mkdir -p "$1/usr/lib/bfd-plugins" 72 | 73 | ln -s "/usr/lib/gcc/x86_64-pc-linux-musl/$2/liblto_plugin.so" \ 74 | "$1/usr/lib/bfd-plugins/liblto_plugin.so" 75 | } 76 | -------------------------------------------------------------------------------- /extra/libexecinfo/patches/10-execinfo.patch: -------------------------------------------------------------------------------- 1 | --- a/execinfo.c.orig 2 | +++ b/execinfo.c 3 | @@ -69,7 +69,8 @@ 4 | char ** 5 | backtrace_symbols(void *const *buffer, int size) 6 | { 7 | - int i, clen, alen, offset; 8 | + size_t clen, alen; 9 | + int i, offset; 10 | char **rval; 11 | char *cp; 12 | Dl_info info; 13 | @@ -78,7 +79,6 @@ 14 | rval = malloc(clen); 15 | if (rval == NULL) 16 | return NULL; 17 | - (char **)cp = &(rval[size]); 18 | for (i = 0; i < size; i++) { 19 | if (dladdr(buffer[i], &info) != 0) { 20 | if (info.dli_sname == NULL) 21 | @@ -92,14 +92,14 @@ 22 | 2 + /* " <" */ 23 | strlen(info.dli_sname) + /* "function" */ 24 | 1 + /* "+" */ 25 | - D10(offset) + /* "offset */ 26 | + 10 + /* "offset */ 27 | 5 + /* "> at " */ 28 | strlen(info.dli_fname) + /* "filename" */ 29 | 1; /* "\0" */ 30 | rval = realloc_safe(rval, clen + alen); 31 | if (rval == NULL) 32 | return NULL; 33 | - snprintf(cp, alen, "%p <%s+%d> at %s", 34 | + snprintf((char *) rval + clen, alen, "%p <%s+%d> at %s", 35 | buffer[i], info.dli_sname, offset, info.dli_fname); 36 | } else { 37 | alen = 2 + /* "0x" */ 38 | @@ -108,12 +108,15 @@ 39 | rval = realloc_safe(rval, clen + alen); 40 | if (rval == NULL) 41 | return NULL; 42 | - snprintf(cp, alen, "%p", buffer[i]); 43 | + snprintf((char *) rval + clen, alen, "%p", buffer[i]); 44 | } 45 | - rval[i] = cp; 46 | - cp += alen; 47 | + rval[i] = (char *) clen; 48 | + clen += alen; 49 | } 50 | 51 | + for (i = 0; i < size; i++) 52 | + rval[i] += (long) rval; 53 | + 54 | return rval; 55 | } 56 | 57 | @@ -155,6 +158,6 @@ 58 | return; 59 | snprintf(buf, len, "%p\n", buffer[i]); 60 | } 61 | - write(fd, buf, len - 1); 62 | + write(fd, buf, strlen(buf)); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /languages/go/patches/posix-build.patch: -------------------------------------------------------------------------------- 1 | diff --git a/go-current/src/make.bash b/go-current/src/make.bash 2 | index 9acf079..2b18196 100755 3 | --- a/go-current/src/make.bash 4 | +++ b/go-current/src/make.bash 5 | @@ -1,4 +1,4 @@ 6 | -#!/usr/bin/env bash 7 | +#!/usr/bin/sh 8 | # Copyright 2009 The Go Authors. All rights reserved. 9 | # Use of this source code is governed by a BSD-style 10 | # license that can be found in the LICENSE file. 11 | @@ -164,7 +164,7 @@ fi 12 | export GOROOT_BOOTSTRAP 13 | 14 | export GOROOT="$(cd .. && pwd)" 15 | -IFS=$'\n'; for go_exe in $(type -ap go); do 16 | +for go_exe in $(command -v go); do 17 | if [ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]; then 18 | goroot=$(GOROOT='' GOOS='' GOARCH='' "$go_exe" env GOROOT) 19 | if [ "$goroot" != "$GOROOT" ]; then 20 | diff --git a/go1.4-bootstrap/src/make.bash b/go1.4-bootstrap/src/make.bash 21 | index 104c3ba..043d38a 100755 22 | --- a/go1.4-bootstrap/src/make.bash 23 | +++ b/go1.4-bootstrap/src/make.bash 24 | @@ -1,4 +1,4 @@ 25 | -#!/usr/bin/env bash 26 | +#!/bin/sh 27 | # Copyright 2009 The Go Authors. All rights reserved. 28 | # Use of this source code is governed by a BSD-style 29 | # license that can be found in the LICENSE file. 30 | @@ -43,7 +43,7 @@ 31 | # This is used by cgo. Default is CC. 32 | # 33 | # CXX_FOR_TARGET: Command line to run to compile C++ code for GOARCH. 34 | -# This is used by cgo. Default is CXX, or, if that is not set, 35 | +# This is used by cgo. Default is CXX, or, if that is not set, 36 | # "g++" or "clang++". 37 | # 38 | # GO_DISTFLAGS: extra flags to provide to "dist bootstrap". Use "-s" 39 | @@ -102,7 +102,7 @@ done 40 | # Test for debian/kFreeBSD. 41 | # cmd/dist will detect kFreeBSD as freebsd/$GOARCH, but we need to 42 | # disable cgo manually. 43 | -if [ "$(uname -s)" == "GNU/kFreeBSD" ]; then 44 | +if [ "$(uname -s)" = "GNU/kFreeBSD" ]; then 45 | export CGO_ENABLED=0 46 | fi 47 | 48 | @@ -122,12 +122,12 @@ case "$GOHOSTARCH" in 49 | 386) mflag=-m32;; 50 | amd64) mflag=-m64;; 51 | esac 52 | -if [ "$(uname)" == "Darwin" ]; then 53 | +if [ "$(uname)" = "Darwin" ]; then 54 | # golang.org/issue/5261 55 | mflag="$mflag -mmacosx-version-min=10.6" 56 | fi 57 | # if gcc does not exist and $CC is not set, try clang if available. 58 | -if [ -z "$CC" -a -z "$(type -t gcc)" -a -n "$(type -t clang)" ]; then 59 | +if [ -z "$CC" -a -z "$(command -v gcc)" -a -n "$(command -v clang)" ]; then 60 | export CC=clang CXX=clang++ 61 | fi 62 | ${CC:-gcc} $mflag -O2 -Wall -Werror -o cmd/dist/dist -Icmd/dist "$DEFGOROOT" cmd/dist/*.c 63 | -- 64 | 2.36.1 65 | 66 | -------------------------------------------------------------------------------- /languages/ocaml/patches/fix-configure-musl.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2021-02-24 13:49:29.000000000 +0000 2 | +++ b/configure 2021-02-25 17:08:37.549751090 +0000 3 | @@ -13878,19 +13878,19 @@ else 4 | fi; system=elf ;; #( 5 | s390x*-*-linux*) : 6 | arch=s390x; model=z10; system=elf ;; #( 7 | - armv6*-*-linux-gnueabihf) : 8 | + armv6*-*-linux-*eabihf) : 9 | arch=arm; model=armv6; system=linux_eabihf ;; #( 10 | - armv7*-*-linux-gnueabihf) : 11 | + armv7*-*-linux-*eabihf) : 12 | arch=arm; model=armv7; system=linux_eabihf ;; #( 13 | - armv8*-*-linux-gnueabihf) : 14 | + armv8*-*-linux-*eabihf) : 15 | arch=arm; model=armv8; system=linux_eabihf ;; #( 16 | - armv8*-*-linux-gnueabi) : 17 | + armv8*-*-linux-*eabi) : 18 | arch=arm; model=armv8; system=linux_eabi ;; #( 19 | - armv7*-*-linux-gnueabi) : 20 | + armv7*-*-linux-*eabi) : 21 | arch=arm; model=armv7; system=linux_eabi ;; #( 22 | - armv6t2*-*-linux-gnueabi) : 23 | + armv6t2*-*-linux-*eabi) : 24 | arch=arm; model=armv6t2; system=linux_eabi ;; #( 25 | - armv6*-*-linux-gnueabi) : 26 | + armv6*-*-linux-*eabi) : 27 | arch=arm; model=armv6; system=linux_eabi ;; #( 28 | armv6*-*-freebsd*) : 29 | arch=arm; model=armv6; system=freebsd ;; #( 30 | @@ -13898,13 +13898,13 @@ fi; system=elf ;; #( 31 | arch=arm; model=armv6; system=netbsd ;; #( 32 | earmv7*-*-netbsd*) : 33 | arch=arm; model=armv7; system=netbsd ;; #( 34 | - armv5te*-*-linux-gnueabi) : 35 | + armv5te*-*-linux-*eabi) : 36 | arch=arm; model=armv5te; system=linux_eabi ;; #( 37 | - armv5*-*-linux-gnueabi) : 38 | + armv5*-*-linux-*eabi) : 39 | arch=arm; model=armv5; system=linux_eabi ;; #( 40 | - arm*-*-linux-gnueabihf) : 41 | + arm*-*-linux-*eabihf) : 42 | arch=arm; system=linux_eabihf ;; #( 43 | - arm*-*-linux-gnueabi) : 44 | + arm*-*-linux-*eabi) : 45 | arch=arm; system=linux_eabi ;; #( 46 | arm*-*-openbsd*) : 47 | arch=arm; system=bsd ;; #( 48 | @@ -14100,16 +14100,22 @@ fi 49 | # e.g. Ubuntu >= 17.10 for i386, which uses the glibc dynamic loader. 50 | 51 | case $arch in #( 52 | - amd64|s390x|none) : 53 | + amd64|aarch64|s390x|none) : 54 | # ocamlopt generates PIC code or doesn't generate code at all 55 | - ;; #( 56 | + ;; #( 57 | *) : 58 | - case $host in #( 59 | - *-linux-musl) : 60 | - # Alpine and other musl-based Linux distributions 61 | - common_cflags="-no-pie $common_cflags" ;; #( 62 | - *) : 63 | - ;; 64 | + case $host in #( 65 | + i?86-*-linux-musl*) : 66 | + # Alpine and other musl-based Linux distributions, 32bit x86, 67 | + # disable DT_TEXTREL, see https://github.com/ocaml/ocaml/issues/9800 68 | + common_cflags="-Wl,-z,notext -no-pie $common_cflags" 69 | + mksharedlib="$mksharedlib -Wl,-z,notext" 70 | + mkmaindll="$mkmaindll -Wl,-z,notext";; #( 71 | + *-linux-musl*) : 72 | + # Alpine and other musl-based Linux distributions 73 | + common_cflags="-no-pie $common_cflags" ;; #( 74 | + *) : 75 | + ;; 76 | esac ;; 77 | esac 78 | 79 | -------------------------------------------------------------------------------- /extra/ldc/patches/add-missing-musl-definitions.patch: -------------------------------------------------------------------------------- 1 | Upstream: Yes: https://github.com/dlang/druntime/pull/3036.patch 2 | Reason: A few definitions of the C headers aren't in the D bindings on musl. 3 | As such, we have to add them to be able to build software which uses these 4 | APIs 5 | diff --git a/runtime/druntime/src/core/sys/posix/stdio.d b/runtime/druntime/src/core/sys/posix/stdio.d 6 | index e617595..600e8aa 100644 7 | --- a/runtime/druntime/src/core/sys/posix/stdio.d 8 | +++ b/runtime/druntime/src/core/sys/posix/stdio.d 9 | @@ -180,6 +180,37 @@ else version (CRuntime_UClibc) 10 | FILE* tmpfile(); 11 | } 12 | } 13 | +else version (CRuntime_Musl) 14 | +{ 15 | + static if ( __USE_FILE_OFFSET64 ) 16 | + { 17 | + int fgetpos64(FILE*, fpos_t *); 18 | + alias fgetpos64 fgetpos; 19 | + 20 | + FILE* fopen64(const scope char*, const scope char*); 21 | + alias fopen64 fopen; 22 | + 23 | + FILE* freopen64(const scope char*, const scope char*, FILE*); 24 | + alias freopen64 freopen; 25 | + 26 | + int fseek(FILE*, c_long, int); 27 | + 28 | + int fsetpos64(FILE*, const scope fpos_t*); 29 | + alias fsetpos64 fsetpos; 30 | + 31 | + FILE* tmpfile64(); 32 | + alias tmpfile64 tmpfile; 33 | + } 34 | + else 35 | + { 36 | + int fgetpos(FILE*, fpos_t *); 37 | + FILE* fopen(const scope char*, const scope char*); 38 | + FILE* freopen(const scope char*, const scope char*, FILE*); 39 | + int fseek(FILE*, c_long, int); 40 | + int fsetpos(FILE*, const scope fpos_t*); 41 | + FILE* tmpfile(); 42 | + } 43 | +} 44 | else version (Solaris) 45 | { 46 | static if (__USE_FILE_OFFSET64 && __WORDSIZE != 64) 47 | @@ -277,6 +308,30 @@ else version (CRuntime_UClibc) 48 | off_t ftello(FILE*); 49 | } 50 | } 51 | +else version (CRuntime_Musl) 52 | +{ 53 | + enum L_ctermid = 20; 54 | + 55 | + static if ( __USE_FILE_OFFSET64 ) 56 | + { 57 | + int fseeko64(FILE*, off_t, int); 58 | + alias fseeko64 fseeko; 59 | + } 60 | + else 61 | + { 62 | + int fseeko(FILE*, off_t, int); 63 | + } 64 | + 65 | + static if ( __USE_FILE_OFFSET64 ) 66 | + { 67 | + off_t ftello64(FILE*); 68 | + alias ftello64 ftello; 69 | + } 70 | + else 71 | + { 72 | + off_t ftello(FILE*); 73 | + } 74 | +} 75 | else version (Solaris) 76 | { 77 | enum L_ctermid = 9; 78 | @@ -331,6 +386,9 @@ else version (OpenBSD) // as of OpenBSD 5.4 79 | version = HaveMemstream; 80 | else version (CRuntime_UClibc) 81 | version = HaveMemstream; 82 | +// http://git.musl-libc.org/cgit/musl/commit/src/stdio/open_memstream.c?id=b158b32a44d56ef20407d4285b58180447ffff1f 83 | +else version (CRuntime_Musl) 84 | + version = HaveMemstream; 85 | 86 | version (HaveMemstream) 87 | { 88 | diff --git a/runtime/druntime/src/core/sys/posix/stdlib.d b/runtime/druntime/src/core/sys/posix/stdlib.d 89 | index 4ee533a..7efdc9b 100644 90 | --- a/runtime/druntime/src/core/sys/posix/stdlib.d 91 | +++ b/runtime/druntime/src/core/sys/posix/stdlib.d 92 | @@ -574,9 +574,45 @@ else version (CRuntime_Bionic) 93 | } 94 | else version (CRuntime_Musl) 95 | { 96 | - char* realpath(const scope char*, char*); 97 | + c_long a64l(const scope char*); 98 | + double drand48(); 99 | + char* ecvt(double, int, int *, int *); // LEGACY 100 | + double erand48(ref ushort[3]); 101 | + char* fcvt(double, int, int *, int *); // LEGACY 102 | + char* gcvt(double, int, char*); // LEGACY 103 | + int getsubopt(char**, const scope char**, char**); 104 | + int grantpt(int); 105 | + char* initstate(uint, char*, size_t); 106 | + c_long jrand48(ref ushort[3]); 107 | + char* l64a(c_long); 108 | + void lcong48(ref ushort[7]); 109 | + c_long lrand48(); 110 | + char* mktemp(char*); // LEGACY 111 | + char* mkdtemp(char*); // Defined in IEEE 1003.1, 2008 Edition 112 | + int mkstemp(char*); 113 | + c_long mrand48(); 114 | + c_long nrand48(ref ushort[3]); 115 | + int posix_openpt(int); 116 | + char* ptsname(int); 117 | int putenv(char*); 118 | + c_long random(); 119 | + char* realpath(const scope char*, char*); 120 | + ushort *seed48(ref ushort[3]); 121 | + void setkey(const scope char*); 122 | + char* setstate(const scope char*); 123 | + void srand48(c_long); 124 | + void srandom(uint); 125 | + int unlockpt(int); 126 | + 127 | + static if ( __USE_LARGEFILE64 ) 128 | + { 129 | + int mkstemp64(char*); 130 | + alias mkstemp64 mkstemp; 131 | + } 132 | + else 133 | + { 134 | int mkstemp(char*); 135 | + } 136 | 137 | } 138 | else version (Solaris) 139 | -------------------------------------------------------------------------------- /languages/r-lang/patches/remove_po_dir.patch: -------------------------------------------------------------------------------- 1 | --- old/configure 2 | +++ new/configure 3 | @@ -52438,7 +52438,7 @@ 4 | 5 | ac_config_headers="$ac_config_headers src/include/config.h" 6 | 7 | -ac_config_files="$ac_config_files Makeconf Makefile doc/Makefile doc/html/Makefile doc/manual/Makefile etc/Makefile etc/Makeconf etc/Renviron etc/javaconf etc/ldpaths m4/Makefile po/Makefile share/Makefile src/Makefile src/appl/Makefile src/extra/Makefile src/extra/blas/Makefile src/extra/intl/Makefile src/extra/tre/Makefile src/extra/tzone/Makefile src/extra/xdr/Makefile src/include/Makefile src/include/Rmath.h0 src/include/R_ext/Makefile src/library/Recommended/Makefile src/library/Makefile src/library/base/DESCRIPTION src/library/base/Makefile src/library/compiler/DESCRIPTION src/library/compiler/Makefile src/library/datasets/DESCRIPTION src/library/datasets/Makefile src/library/graphics/DESCRIPTION src/library/graphics/Makefile src/library/graphics/src/Makefile src/library/grDevices/DESCRIPTION src/library/grDevices/Makefile src/library/grDevices/src/Makefile src/library/grDevices/src/cairo/Makefile src/library/grid/DESCRIPTION src/library/grid/Makefile src/library/grid/src/Makefile src/library/methods/DESCRIPTION src/library/methods/Makefile src/library/methods/src/Makefile src/library/parallel/DESCRIPTION src/library/parallel/Makefile src/library/parallel/src/Makefile src/library/profile/Makefile src/library/stats/DESCRIPTION src/library/stats/Makefile src/library/stats/src/Makefile src/library/stats4/DESCRIPTION src/library/stats4/Makefile src/library/splines/DESCRIPTION src/library/splines/Makefile src/library/splines/src/Makefile src/library/tcltk/DESCRIPTION src/library/tcltk/Makefile src/library/tcltk/src/Makefile src/library/tools/DESCRIPTION src/library/tools/Makefile src/library/tools/src/Makefile src/library/translations/DESCRIPTION src/library/translations/Makefile src/library/utils/DESCRIPTION src/library/utils/Makefile src/library/utils/src/Makefile src/main/Makefile src/modules/Makefile src/modules/X11/Makefile src/modules/internet/Makefile src/modules/lapack/Makefile src/nmath/Makefile src/nmath/standalone/Makefile src/scripts/Makefile src/scripts/R.sh src/scripts/Rcmd src/scripts/javareconf src/scripts/mkinstalldirs src/scripts/pager src/scripts/rtags src/unix/Makefile tests/Makefile tests/Embedding/Makefile tests/Examples/Makefile tools/Makefile" 8 | +ac_config_files="$ac_config_files Makeconf Makefile doc/Makefile doc/html/Makefile doc/manual/Makefile etc/Makefile etc/Makeconf etc/Renviron etc/javaconf etc/ldpaths m4/Makefile share/Makefile src/Makefile src/appl/Makefile src/extra/Makefile src/extra/blas/Makefile src/extra/intl/Makefile src/extra/tre/Makefile src/extra/tzone/Makefile src/extra/xdr/Makefile src/include/Makefile src/include/Rmath.h0 src/include/R_ext/Makefile src/library/Recommended/Makefile src/library/Makefile src/library/base/DESCRIPTION src/library/base/Makefile src/library/compiler/DESCRIPTION src/library/compiler/Makefile src/library/datasets/DESCRIPTION src/library/datasets/Makefile src/library/graphics/DESCRIPTION src/library/graphics/Makefile src/library/graphics/src/Makefile src/library/grDevices/DESCRIPTION src/library/grDevices/Makefile src/library/grDevices/src/Makefile src/library/grDevices/src/cairo/Makefile src/library/grid/DESCRIPTION src/library/grid/Makefile src/library/grid/src/Makefile src/library/methods/DESCRIPTION src/library/methods/Makefile src/library/methods/src/Makefile src/library/parallel/DESCRIPTION src/library/parallel/Makefile src/library/parallel/src/Makefile src/library/profile/Makefile src/library/stats/DESCRIPTION src/library/stats/Makefile src/library/stats/src/Makefile src/library/stats4/DESCRIPTION src/library/stats4/Makefile src/library/splines/DESCRIPTION src/library/splines/Makefile src/library/splines/src/Makefile src/library/tcltk/DESCRIPTION src/library/tcltk/Makefile src/library/tcltk/src/Makefile src/library/tools/DESCRIPTION src/library/tools/Makefile src/library/tools/src/Makefile src/library/translations/DESCRIPTION src/library/translations/Makefile src/library/utils/DESCRIPTION src/library/utils/Makefile src/library/utils/src/Makefile src/main/Makefile src/modules/Makefile src/modules/X11/Makefile src/modules/internet/Makefile src/modules/lapack/Makefile src/nmath/Makefile src/nmath/standalone/Makefile src/scripts/Makefile src/scripts/R.sh src/scripts/Rcmd src/scripts/javareconf src/scripts/mkinstalldirs src/scripts/pager src/scripts/rtags src/unix/Makefile tests/Makefile tests/Embedding/Makefile tests/Examples/Makefile tools/Makefile" 9 | 10 | 11 | ac_config_commands="$ac_config_commands stamp-h" 12 | @@ -53735,7 +53735,6 @@ 13 | "etc/javaconf") CONFIG_FILES="$CONFIG_FILES etc/javaconf" ;; 14 | "etc/ldpaths") CONFIG_FILES="$CONFIG_FILES etc/ldpaths" ;; 15 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 16 | - "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 17 | "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;; 18 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19 | "src/appl/Makefile") CONFIG_FILES="$CONFIG_FILES src/appl/Makefile" ;; 20 | -------------------------------------------------------------------------------- /extra/ldc/patches/3332.patch: -------------------------------------------------------------------------------- 1 | From 3e1946536974b778e71cda1790fa6fdf7c3708fe Mon Sep 17 00:00:00 2001 2 | From: Martin Kinkelin 3 | Date: Fri, 21 Feb 2020 00:13:13 +0100 4 | Subject: [PATCH 1/2] Fix tail calls in thunks by applying the callee function 5 | attributes to the call instruction 6 | 7 | This apparently isn't required for x86, but makes all the difference for 8 | AArch64 and fixes #3329. 9 | --- 10 | ir/irclass.cpp | 14 ++++++----- 11 | tests/codegen/sret_thunk_gh3329.d | 42 +++++++++++++++++++++++++++++++ 12 | 2 files changed, 50 insertions(+), 6 deletions(-) 13 | create mode 100644 tests/codegen/sret_thunk_gh3329.d 14 | 15 | diff --git a/ir/irclass.cpp b/ir/irclass.cpp 16 | index ac3ca1aa87..4a683ac861 100644 17 | --- a/ir/irclass.cpp 18 | +++ b/ir/irclass.cpp 19 | @@ -203,7 +203,8 @@ LLConstant *IrAggr::getVtblInit() { 20 | Logger::println("Running late functionSemantic to infer return type."); 21 | if (!fd->functionSemantic()) { 22 | if (fd->semantic3Errors) { 23 | - Logger::println("functionSemantic failed; using null for vtbl entry."); 24 | + Logger::println( 25 | + "functionSemantic failed; using null for vtbl entry."); 26 | constants.push_back(getNullValue(voidPtrType)); 27 | continue; 28 | } 29 | @@ -301,8 +302,8 @@ llvm::GlobalVariable *IrAggr::getInterfaceVtblSymbol(BaseClass *b, 30 | 31 | const auto irMangle = getIRMangledVarName(mangledName.peekChars(), LINKd); 32 | 33 | - LLGlobalVariable *gvar = 34 | - declareGlobal(cd->loc, gIR->module, vtblType, irMangle, /*isConstant=*/true); 35 | + LLGlobalVariable *gvar = declareGlobal(cd->loc, gIR->module, vtblType, 36 | + irMangle, /*isConstant=*/true); 37 | 38 | // insert into the vtbl map 39 | interfaceVtblMap.insert({{b->sym, interfaces_index}, gvar}); 40 | @@ -462,9 +463,10 @@ void IrAggr::defineInterfaceVtbl(BaseClass *b, bool new_instance, 41 | 42 | // call the real vtbl function. 43 | llvm::CallInst *call = gIR->ir->CreateCall(callee, args); 44 | - call->setCallingConv(irFunc->getCallingConv()); 45 | - call->setTailCallKind(thunk->isVarArg() ? llvm::CallInst::TCK_MustTail 46 | - : llvm::CallInst::TCK_Tail); 47 | + call->setCallingConv(callee->getCallingConv()); 48 | + call->setAttributes(callee->getAttributes()); 49 | + call->setTailCallKind(callee->isVarArg() ? llvm::CallInst::TCK_MustTail 50 | + : llvm::CallInst::TCK_Tail); 51 | 52 | // return from the thunk 53 | if (thunk->getReturnType() == LLType::getVoidTy(gIR->context())) { 54 | diff --git a/tests/codegen/sret_thunk_gh3329.d b/tests/codegen/sret_thunk_gh3329.d 55 | new file mode 100644 56 | index 0000000000..7f2d7c62fe 57 | --- /dev/null 58 | +++ b/tests/codegen/sret_thunk_gh3329.d 59 | @@ -0,0 +1,42 @@ 60 | +// RUN: %ldc -run %s 61 | + 62 | +extern(C) int printf(const(char)* format, ...); 63 | + 64 | +struct NoPOD 65 | +{ 66 | + size_t x; 67 | + ~this() {} 68 | +} 69 | + 70 | +interface I 71 | +{ 72 | + NoPOD doIt(size_t arg); 73 | +} 74 | + 75 | +__gshared C c; 76 | + 77 | +class C : I 78 | +{ 79 | + this() 80 | + { 81 | + c = this; 82 | + printf("c: %p\n", c); 83 | + } 84 | + 85 | + NoPOD doIt(size_t arg) 86 | + { 87 | + printf("doIt this: %p; arg: %p\n", this, arg); 88 | + assert(this == c); 89 | + assert(arg == 0x2A); 90 | + return NoPOD(arg << 4); 91 | + } 92 | +} 93 | + 94 | +void main() 95 | +{ 96 | + I i = new C; 97 | + printf("i: %p\n", i); 98 | + NoPOD r = i.doIt(0x2A); 99 | + printf("&r: %p\n", &r); 100 | + assert(r.x == 0x2A0); 101 | +} 102 | 103 | From 803941307b1da278b63df1d5c2050b5ef6e153ac Mon Sep 17 00:00:00 2001 104 | From: Martin Kinkelin 105 | Date: Fri, 21 Feb 2020 00:59:53 +0100 106 | Subject: [PATCH 2/2] Shippable CI: Remove workarounds for previously broken 107 | debug libs 108 | 109 | --- 110 | shippable.yml | 12 ++++++------ 111 | 1 file changed, 6 insertions(+), 6 deletions(-) 112 | 113 | diff --git a/shippable.yml b/shippable.yml 114 | index 00aea59a7e..35cb54c9cd 100644 115 | --- a/shippable.yml 116 | +++ b/shippable.yml 117 | @@ -83,14 +83,14 @@ build: 118 | # Run LDC D unittests 119 | - ctest --output-on-failure -R "ldc2-unittest" 120 | # Run LIT testsuite, ignore the errors 121 | - - PATH=$PWD/../llvm/bin:$PATH ctest -V -R "lit-tests" || true 122 | + - cd tests 123 | + - PATH="$PWD/../../llvm/bin:$PATH" python runlit.py -v -j 32 . || true 124 | + - cd .. 125 | # Run DMD testsuite, ignore the errors 126 | - # FIXME: the debug libs seem not really usable, most runnable tests crash 127 | - - sed -i 's|REQUIRED_ARGS=-g -link-defaultlib-debug|REQUIRED_ARGS=-g|g' tests/d2/CTestTestfile.cmake 128 | - - DMD_TESTSUITE_MAKE_ARGS='-j16 GDB_FLAGS=OFF' ctest -V -R "dmd-testsuite" || true 129 | - # Run defaultlib unittests (non-debug only for now, excl. hanging core.thread.fiber) 130 | + - DMD_TESTSUITE_MAKE_ARGS='-j32 GDB_FLAGS=OFF' ctest -V -R "dmd-testsuite" || true 131 | + # Run defaultlib unittests (excl. hanging core.thread.fiber) 132 | # & druntime stand-alone tests, ignore the errors 133 | - - ctest -j16 --output-on-failure -E "dmd-testsuite|lit-tests|ldc2-unittest|-debug(-shared)?$|^core.thread.fiber($|-)" || true 134 | + - ctest -j32 --output-on-failure -E "dmd-testsuite|lit-tests|ldc2-unittest|^core.thread.fiber($|-)" || true 135 | # Install LDC & make portable 136 | - ninja install > /dev/null 137 | - cd .. 138 | -------------------------------------------------------------------------------- /languages/ocaml/patches/fix-mcontext-fields.patch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | fix-mcontext-fields.patch\ocaml\community - aports - Unnamed repository; edit this file 'description' to name the repository. 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 45 | 47 |
48 | aboutsummaryrefslogtreecommitdiffstats
49 | 55 | 56 | 57 |
58 |
59 |
blob: 23b4875d21f20b613256c36bd74542660164e62d (plain) (blame) 60 | 61 | 89 |
1
 62 | 2
 63 | 3
 64 | 4
 65 | 5
 66 | 6
 67 | 7
 68 | 8
 69 | 9
 70 | 10
 71 | 11
 72 | 12
 73 | 13
 74 | 14
 75 | 15
 76 | 16
 77 | 17
 78 | 18
 79 | 19
 80 | 20
 81 | 21
 82 | 22
 83 | 23
 84 | 24
 85 | 25
 86 | 26
 87 | 27
 88 | 
diff -Nru a/runtime/signals_osdep.h b/runtime/signals_osdep.h
 90 | --- a/runtime/signals_osdep.h   2019-06-14 08:21:51.000000000 -0300
 91 | +++ b/runtime/signals_osdep.h   2019-07-16 14:21:56.751434439 -0300
 92 | @@ -297,11 +297,19 @@
 93 |       sigact.sa_flags = 0
 94 |  
 95 |    typedef unsigned long context_reg;
 96 | -  #define CONTEXT_PC (context->regs->nip)
 97 | -  #define CONTEXT_EXCEPTION_POINTER (context->regs->gpr[29])
 98 | -  #define CONTEXT_YOUNG_LIMIT (context->regs->gpr[30])
 99 | -  #define CONTEXT_YOUNG_PTR (context->regs->gpr[31])
100 | -  #define CONTEXT_SP (context->regs->gpr[1])
101 | +  #ifdef __powerpc64__
102 | +    #define CONTEXT_PC (context->gp_regs[32])
103 | +    #define CONTEXT_EXCEPTION_POINTER (context->gp_regs[29])
104 | +    #define CONTEXT_YOUNG_LIMIT (context->gp_regs[30])
105 | +    #define CONTEXT_YOUNG_PTR (context->gp_regs[31])
106 | +    #define CONTEXT_SP (context->gp_regs[1])
107 | +  #else
108 | +    #define CONTEXT_PC (context->regs->nip)
109 | +    #define CONTEXT_EXCEPTION_POINTER (context->regs->gpr[29])
110 | +    #define CONTEXT_YOUNG_LIMIT (context->regs->gpr[30])
111 | +    #define CONTEXT_YOUNG_PTR (context->regs->gpr[31])
112 | +    #define CONTEXT_SP (context->regs->gpr[1])
113 | +  #endif
114 |  
115 |  /****************** PowerPC, NetBSD */
116 | 
117 |
118 | 119 |
120 | 121 | 122 | --------------------------------------------------------------------------------