Skip to content

Commit 6456266

Browse files
committed
ports: Misc package backports
1 parent 8d3f900 commit 6456266

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+920
-397
lines changed

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ debug:
1414

1515
jinx:
1616
git clone https://codeberg.org/mintsuki/jinx.git jinx-repo
17-
git -C jinx-repo checkout 7a101a39eb061713f9c50ceafa1d713f35f17a3b
17+
git -C jinx-repo checkout 275dd562af97a5c9c4ccc5d0e29611cb14f73231
1818
mv jinx-repo/jinx ./
1919
rm -rf jinx-repo
2020

build-support/cross-llvm-config

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ import argparse
44
import sys
55
import os
66

7-
our_version = 18
7+
our_version = 20
88

99

1010
def do_version():
11-
return '{}.1.7'.format(our_version)
11+
return '{}.1.3'.format(our_version)
1212

1313

1414
def do_components():
15-
return 'aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard codegen codegentypes core coroutines coverage debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink lanai lanaiasmparser lanaicodegen lanaidesc lanaidisassembler lanaiinfo libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser textapi textapibinaryreader transformutils ve veasmparser vecodegen vectorize vedesc vedisassembler veinfo webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xcore xcorecodegen xcoredesc xcoredisassembler xcoreinfo xray'
15+
return 'aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink lanai lanaiasmparser lanaicodegen lanaidesc lanaidisassembler lanaiinfo libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo spirv spirvanalysis spirvcodegen spirvdesc spirvinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils ve veasmparser vecodegen vectorize vedesc vedisassembler veinfo webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xcore xcorecodegen xcoredesc xcoredisassembler xcoreinfo xray'
16+
1617

1718
def do_targets_built():
18-
return 'AArch64 AMDGPU ARM AVR BPF Hexagon Lanai LoongArch Mips MSP430 NVPTX PowerPC RISCV Sparc SystemZ VE WebAssembly X86 XCore'
19+
return 'AArch64 AMDGPU ARM AVR BPF Hexagon Lanai LoongArch Mips MSP430 NVPTX PowerPC RISCV Sparc SPIRV SystemZ VE WebAssembly X86 XCore'
1920

2021

2122
def get_includedir():

build-support/makeiso.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -ex
55
# Build the sysroot with jinx and build limine.
66
rm -rf sysroot
77
set -f
8+
./jinx build-if-needed base $PKGS_TO_INSTALL
89
./jinx install "sysroot" base $PKGS_TO_INSTALL
910
set +f
1011
if ! [ -d host-pkgs/limine ]; then

jinx-config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22

3-
JINX_MAJOR_VER=0.4
3+
JINX_MAJOR_VER=0.5
44

55
HOST_CFLAGS="-O2 -pipe -fstack-clash-protection"
66
HOST_CXXFLAGS="${HOST_CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
@@ -14,6 +14,8 @@ if [ -z "$ARCHITECTURE" ]; then
1414
ARCHITECTURE=x86_64
1515
fi
1616

17+
JINX_ARCH=${ARCHITECTURE}
18+
1719
OS_TRIPLET=$ARCHITECTURE-vinix-mlibc
1820

1921
case "$ARCHITECTURE" in

patches/gcc-host/jinx-working-patch.patch

Lines changed: 51 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ index df90720..c7df202 100755
1212
powerpc-*-eabisim* | \
1313
diff --git gcc-host-workdir/gcc/config/vinix.h gcc-host-workdir/gcc/config/vinix.h
1414
new file mode 100644
15-
index 0000000..c7cdde2
15+
index 0000000..5420098
1616
--- /dev/null
1717
+++ gcc-host-workdir/gcc/config/vinix.h
1818
@@ -0,0 +1,29 @@
@@ -45,13 +45,26 @@ index 0000000..c7cdde2
4545
+ builtin_assert ("system=unix"); \
4646
+ builtin_assert ("system=posix"); \
4747
+ } while (0);
48+
diff --git gcc-host-clean/gcc/config.build gcc-host-workdir/gcc/config.build
49+
index b748b33..afbdde0 100644
50+
--- gcc-host-clean/gcc/config.build
51+
+++ gcc-host-workdir/gcc/config.build
52+
@@ -45,7 +45,7 @@
53+
build_xm_file=
54+
build_xm_defines=
55+
build_exeext=
56+
-build_install_headers_dir=install-headers-tar
57+
+build_install_headers_dir=install-headers-cp
58+
build_file_translate=
59+
60+
# System-specific settings.
4861
diff --git gcc-host-clean/gcc/config.gcc gcc-host-workdir/gcc/config.gcc
49-
index 648b3dc..a8c6b3d 100644
62+
index 95c91ee..dd17677 100644
5063
--- gcc-host-clean/gcc/config.gcc
5164
+++ gcc-host-workdir/gcc/config.gcc
52-
@@ -840,6 +840,15 @@ case ${target} in
53-
tmake_file="${tmake_file} t-freebsd"
54-
target_has_targetdm=yes
65+
@@ -878,6 +878,15 @@ case ${target} in
66+
rust_target_objs="${rust_target_objs} freebsd-rust.o"
67+
target_has_targetrustm=yes
5568
;;
5669
+*-*-*-mlibc)
5770
+ extra_options="$extra_options gnu-user.opt"
@@ -64,8 +77,8 @@ index 648b3dc..a8c6b3d 100644
6477
+ ;;
6578
*-*-fuchsia*)
6679
native_system_header_dir=/include
67-
;;
68-
@@ -2214,6 +2223,9 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
80+
tmake_file="t-fuchsia"
81+
@@ -2284,6 +2293,9 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
6982
;;
7083
esac
7184
;;
@@ -75,11 +88,37 @@ index 648b3dc..a8c6b3d 100644
7588
x86_64-*-fuchsia*)
7689
tmake_file="${tmake_file} i386/t-x86_64-elf"
7790
tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h fuchsia.h"
91+
diff --git gcc-host-clean/libcpp/Makefile.in gcc-host-workdir/libcpp/Makefile.in
92+
index ebbca37..ea97ba4 100644
93+
--- gcc-host-clean/libcpp/Makefile.in
94+
+++ gcc-host-workdir/libcpp/Makefile.in
95+
@@ -32,10 +32,10 @@ AUTOCONF = @AUTOCONF@
96+
AUTOHEADER = @AUTOHEADER@
97+
CATALOGS = $(patsubst %,po/%,@CATALOGS@)
98+
CC = @CC@
99+
-CFLAGS = @CFLAGS@
100+
+override CFLAGS := @CFLAGS@
101+
WARN_CFLAGS = @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@
102+
CXX = @CXX@
103+
-CXXFLAGS = @CXXFLAGS@
104+
+override CXXFLAGS := @CXXFLAGS@
105+
WARN_CXXFLAGS = @warn@ @WARN_PEDANTIC@ @WERROR@
106+
CPP = @CPP@
107+
CPPFLAGS = @CPPFLAGS@
108+
@@ -45,7 +45,7 @@ INCINTL = @INCINTL@
109+
INSTALL_DATA = @INSTALL_DATA@
110+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
111+
INSTALL_SCRIPT = @INSTALL_SCRIPT@
112+
-LDFLAGS = @LDFLAGS@
113+
+override LDFLAGS := @LDFLAGS@
114+
LIBICONV = @LIBICONV@
115+
LIBINTL = @LIBINTL@
116+
PACKAGE = @PACKAGE@
78117
diff --git gcc-host-clean/libgcc/config.host gcc-host-workdir/libgcc/config.host
79-
index 9d72120..b2162ac 100644
118+
index e75a7af..4d61f58 100644
80119
--- gcc-host-clean/libgcc/config.host
81120
+++ gcc-host-workdir/libgcc/config.host
82-
@@ -281,6 +281,11 @@ case ${host} in
121+
@@ -304,6 +304,11 @@ case ${host} in
83122
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
84123
extra_parts="crtbegin.o crtend.o"
85124
;;
@@ -91,7 +130,7 @@ index 9d72120..b2162ac 100644
91130
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
92131
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux"
93132
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
94-
@@ -715,6 +720,10 @@ x86_64-*-elf* | x86_64-*-rtems*)
133+
@@ -752,6 +757,10 @@ x86_64-*-elf* | x86_64-*-rtems*)
95134
x86_64-*-fuchsia*)
96135
tmake_file="$tmake_file t-libgcc-pic"
97136
;;
@@ -103,7 +142,7 @@ index 9d72120..b2162ac 100644
103142
tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
104143
md_unwind_header=i386/dragonfly-unwind.h
105144
diff --git gcc-host-clean/libgcc/configure.ac gcc-host-workdir/libgcc/configure.ac
106-
index 2fc9d5d..83d246e 100644
145+
index 4e8c036..d298fe5 100644
107146
--- gcc-host-clean/libgcc/configure.ac
108147
+++ gcc-host-workdir/libgcc/configure.ac
109148
@@ -46,7 +46,7 @@ else
@@ -116,7 +155,7 @@ index 2fc9d5d..83d246e 100644
116155

117156
AC_ARG_ENABLE(shared,
118157
diff --git gcc-host-clean/libiberty/configure.ac gcc-host-workdir/libiberty/configure.ac
119-
index 28d996f..61ff752 100644
158+
index 0888e63..10161a1 100644
120159
--- gcc-host-clean/libiberty/configure.ac
121160
+++ gcc-host-workdir/libiberty/configure.ac
122161
@@ -37,7 +37,7 @@ else
@@ -151,29 +190,3 @@ index b3269cb..f2d4d13 100644
151190
*-fuchsia*)
152191
SECTION_FLAGS='-ffunction-sections -fdata-sections'
153192
AC_SUBST(SECTION_FLAGS)
154-
diff --git gcc-host-clean/libcpp/Makefile.in gcc-host-workdir/libcpp/Makefile.in
155-
index ebbca37..ea97ba4 100644
156-
--- gcc-clean/libcpp/Makefile.in
157-
+++ gcc-workdir/libcpp/Makefile.in
158-
@@ -32,10 +32,10 @@ AUTOCONF = @AUTOCONF@
159-
AUTOHEADER = @AUTOHEADER@
160-
CATALOGS = $(patsubst %,po/%,@CATALOGS@)
161-
CC = @CC@
162-
-CFLAGS = @CFLAGS@
163-
+override CFLAGS := @CFLAGS@
164-
WARN_CFLAGS = @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@
165-
CXX = @CXX@
166-
-CXXFLAGS = @CXXFLAGS@
167-
+override CXXFLAGS := @CXXFLAGS@
168-
WARN_CXXFLAGS = @warn@ @WARN_PEDANTIC@ @WERROR@
169-
CPP = @CPP@
170-
CPPFLAGS = @CPPFLAGS@
171-
@@ -45,7 +45,7 @@ INCINTL = @INCINTL@
172-
INSTALL_DATA = @INSTALL_DATA@
173-
INSTALL_PROGRAM = @INSTALL_PROGRAM@
174-
INSTALL_SCRIPT = @INSTALL_SCRIPT@
175-
-LDFLAGS = @LDFLAGS@
176-
+override LDFLAGS := @LDFLAGS@
177-
LIBICONV = @LIBICONV@
178-
LIBINTL = @LIBINTL@
179-
PACKAGE = @PACKAGE@

patches/gdbm/jinx-working-patch.patch

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
diff --git gdbm-clean/tools/gdbmapp.h gdbm-workdir/tools/gdbmapp.h
2+
index 3ea826b..e20253a 100644
3+
--- gdbm-clean/tools/gdbmapp.h
4+
+++ gdbm-workdir/tools/gdbmapp.h
5+
@@ -16,6 +16,7 @@
6+
7+
#include <stdlib.h>
8+
#include <stdarg.h>
9+
+#include <sys/types.h>
10+
#include "gettext.h"
11+
#ifdef HAVE_LOCALE_H
12+
# include <locale.h>
113
diff --git gdbm-clean/tools/var.c gdbm-workdir/tools/var.c
2-
index ccec5b9..39371d2 100644
14+
index 2cf922e..6aed417 100644
315
--- gdbm-clean/tools/var.c
416
+++ gdbm-workdir/tools/var.c
517
@@ -14,6 +14,7 @@
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
diff --git gettext-clean/gettext-runtime/intl/gnulib-lib/getlocalename_l-unsafe.c gettext-workdir/gettext-runtime/intl/gnulib-lib/getlocalename_l-unsafe.c
2+
index 627434f..9c8e818 100644
3+
--- gettext-clean/gettext-runtime/intl/gnulib-lib/getlocalename_l-unsafe.c
4+
+++ gettext-workdir/gettext-runtime/intl/gnulib-lib/getlocalename_l-unsafe.c
5+
@@ -469,6 +469,8 @@ getlocalename_l_unsafe (int category, locale_t locale)
6+
struct gl_locale_category_t *plc =
7+
&locale->category[gl_log2_lcmask_to_index (gl_log2_lc_mask (category))];
8+
return (struct string_with_storage) { plc->name, STORAGE_OBJECT };
9+
+#elif __vinix__
10+
+ return (struct string_with_storage) { "C", STORAGE_INDEFINITE };
11+
#elif __GLIBC__ >= 2 && !defined __UCLIBC__
12+
/* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
13+
glibc < 2.12.
14+
diff --git gettext-clean/gettext-runtime/gnulib-lib/getlocalename_l-unsafe.c gettext-workdir/gettext-runtime/gnulib-lib/getlocalename_l-unsafe.c
15+
index 627434f..9c8e818 100644
16+
--- gettext-clean/gettext-runtime/gnulib-lib/getlocalename_l-unsafe.c
17+
+++ gettext-workdir/gettext-runtime/gnulib-lib/getlocalename_l-unsafe.c
18+
@@ -469,6 +469,8 @@ getlocalename_l_unsafe (int category, locale_t locale)
19+
struct gl_locale_category_t *plc =
20+
&locale->category[gl_log2_lcmask_to_index (gl_log2_lc_mask (category))];
21+
return (struct string_with_storage) { plc->name, STORAGE_OBJECT };
22+
+#elif __vinix__
23+
+ return (struct string_with_storage) { "C", STORAGE_INDEFINITE };
24+
#elif __GLIBC__ >= 2 && !defined __UCLIBC__
25+
/* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
26+
glibc < 2.12.
27+
diff --git gettext-clean/gettext-tools/gnulib-lib/getlocalename_l-unsafe.c gettext-workdir/gettext-tools/gnulib-lib/getlocalename_l-unsafe.c
28+
index 627434f..9c8e818 100644
29+
--- gettext-clean/gettext-tools/gnulib-lib/getlocalename_l-unsafe.c
30+
+++ gettext-workdir/gettext-tools/gnulib-lib/getlocalename_l-unsafe.c
31+
@@ -469,6 +469,8 @@ getlocalename_l_unsafe (int category, locale_t locale)
32+
struct gl_locale_category_t *plc =
33+
&locale->category[gl_log2_lcmask_to_index (gl_log2_lc_mask (category))];
34+
return (struct string_with_storage) { plc->name, STORAGE_OBJECT };
35+
+#elif __vinix__
36+
+ return (struct string_with_storage) { "C", STORAGE_INDEFINITE };
37+
#elif __GLIBC__ >= 2 && !defined __UCLIBC__
38+
/* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
39+
glibc < 2.12.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git libxcb-clean/doc/Makefile.am libxcb-workdir/doc/Makefile.am
2+
index f3c934a..08880d7 100644
3+
--- libxcb-clean/doc/Makefile.am
4+
+++ libxcb-workdir/doc/Makefile.am
5+
@@ -35,8 +35,8 @@ install-data-local:
6+
$(mkinstalldirs) '$(DESTDIR)$(htmldir)'; \
7+
fi
8+
@for d in $(docdirs); do \
9+
- echo "cp -pR $$d '$(DESTDIR)$(htmldir)/'"; \
10+
- cp -pR $$d '$(DESTDIR)$(htmldir)/'; \
11+
+ echo "cp -R $$d '$(DESTDIR)$(htmldir)/'"; \
12+
+ cp -R $$d '$(DESTDIR)$(htmldir)/'; \
13+
done
14+
15+
uninstall-local:

patches/libzip/jinx-working-patch.patch

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ index ddc2c24..6206bd0 100644
1010
#ifdef _WIN32
1111
#include <fcntl.h>
1212
#include <io.h>
13-
@@ -742,4 +743,4 @@ static int torrentzip_compare_names(const void *a, const void *b) {
14-
}
15-
16-
return strcasecmp(aname, bname);
17-
-}
18-
\ No newline at end of file
19-
+}
2013
diff --git libzip-clean/lib/zip_name_locate.c libzip-workdir/lib/zip_name_locate.c
2114
index 4248dc2..fdf113a 100644
2215
--- libzip-clean/lib/zip_name_locate.c

0 commit comments

Comments
 (0)