Skip to content

Commit

Permalink
Merge branch 'void-linux:master' into nekoray
Browse files Browse the repository at this point in the history
  • Loading branch information
nuckle committed Feb 28, 2024
2 parents e01eec5 + 58434af commit 1ad168f
Show file tree
Hide file tree
Showing 569 changed files with 4,710 additions and 4,646 deletions.
230 changes: 118 additions & 112 deletions common/shlibs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion srcpkgs/Bear/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'Bear'
pkgname=Bear
version=3.1.3
revision=1
revision=2
build_style=cmake
hostmakedepends="pkg-config protobuf protobuf-devel grpc"
makedepends="json-c++ spdlog grpc-devel protobuf-devel gtest-devel"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/EternalTerminal/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'EternalTerminal'
pkgname=EternalTerminal
version=6.2.1
revision=5
revision=6
# revisions used for the specific versions of submodules.
# they can be found in the external/ directory of the source code.
_sanitizers_gitrev="99e159ec9bc8dd362b08d18436bd40ff0648417b"
Expand Down
10 changes: 0 additions & 10 deletions srcpkgs/Ghidrathon/patches/dont-use-pip.patch

This file was deleted.

9 changes: 7 additions & 2 deletions srcpkgs/Ghidrathon/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'Ghidrathon'
pkgname=Ghidrathon
version=3.0.2
version=4.0.0
revision=1
hostmakedepends="gradle openjdk17 unzip jep"
makedepends="ghidra python3-devel"
Expand All @@ -11,14 +11,19 @@ license="Apache-2.0"
homepage="https://github.com/mandiant/Ghidrathon"
changelog="https://github.com/mandiant/Ghidrathon/releases"
distfiles="https://github.com/mandiant/Ghidrathon/archive/v${version}.tar.gz"
checksum=116352ff1a0ab387fb1b9166557aeacff36f8a98d46ebb3a51ccaf8110aba977
checksum=6157811acc0bd833b4071b5dea25b2d45aa4040f286d2afc0ac4ec8c2063cca3
nocross=yes # ghidra cannot be cross-compiled

post_extract() {
cp /${py3_sitelib}/jep/jep-*.jar ${wrksrc}/lib
}

do_build() {
gradle -PGHIDRA_INSTALL_DIR=${XBPS_CROSS_BASE}/usr/libexec/ghidra
}

do_install() {
vmkdir usr/libexec/ghidra/Ghidra/Extensions
unzip dist/*Ghidrathon*.zip -d ${DESTDIR}/usr/libexec/ghidra/Ghidra/Extensions
python3 util/ghidrathon_configure.py ${DESTDIR}/usr/libexec/ghidra
}
37 changes: 23 additions & 14 deletions srcpkgs/NetworkManager/patches/fix-cross-gir.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ Index: b/src/libnm-client-impl/meson.build
===================================================================
--- a/src/libnm-client-impl/meson.build
+++ b/src/libnm-client-impl/meson.build
@@ -210,6 +210,16 @@ if enable_introspection
ld_library_path = ':' + ld_library_path
@@ -178,6 +178,16 @@ if enable_introspection
endif
ld_library_path = meson.current_build_dir() + ld_library_path
+

+ if meson.is_cross_build()
+ qemu_python3_cmd = [
+ '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static',
Expand All @@ -18,15 +17,25 @@ Index: b/src/libnm-client-impl/meson.build
+ else
+ qemu_python3_cmd = python.path()
+ endif
+
gen_infos_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-property-infos.py')
gen_gir_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py')

nm_settings_docs_xml_gir = custom_target(
'nm-settings-docs-gir.xml',
@@ -219,7 +229,7 @@ if enable_introspection
'env',
'GI_TYPELIB_PATH=' + gi_typelib_path,
'LD_LIBRARY_PATH=' + ld_library_path,
- python.path(),
+ qemu_python3_cmd,
join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py'),
'--lib-path', meson.current_build_dir(),
'--gir', '@INPUT@',
@@ -191,7 +201,7 @@ if enable_introspection
input: [gen_infos_cmd, libnm_gir[0]] + libnm_core_settings_sources,
output: 'nm-property-infos-' + name + '.xml',
command: [
- python.path(),
+ qemu_python3_cmd,
gen_infos_cmd,
name,
'@OUTPUT@',
@@ -207,7 +217,7 @@ if enable_introspection
'env',
'GI_TYPELIB_PATH=' + gi_typelib_path,
'LD_LIBRARY_PATH=' + ld_library_path,
- python.path(),
+ qemu_python3_cmd,
gen_gir_cmd,
'--lib-path', meson.current_build_dir(),
'--gir', libnm_gir[0],
18 changes: 9 additions & 9 deletions srcpkgs/NetworkManager/patches/no-gtk-doc.patch
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Reason: We only want to build man pages, not development docs
# Upstream: Patch was rejected - https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/689
diff --git a/meson.build b/meson.build
index 996617f4ca..fb4a914470 100644
index 1cc11d0dfdc..b25b9d93554 100644
--- a/meson.build
+++ b/meson.build
@@ -952,10 +952,8 @@ if enable_qt
@@ -977,10 +977,8 @@ if enable_qt
endif

if enable_docs
- assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
assert(meson.version().version_compare('>= 0.46.0'), '-Ddocs requires meson >= 0.46')
assert(meson.version().version_compare('>= 0.49.0'), '-Ddocs requires meson >= 0.49')
subdir('man')
- subdir('docs')
endif

configure_file(
meson.add_dist_script(
'tools/meson-dist-data.sh',
'--build-root', build_root
diff --git a/src/libnmc-setting/meson.build b/src/libnmc-setting/meson.build
index 49314cad2e..376ec4e740 100644
index 7fb460dc331..fadc90f01f8 100644
--- a/src/libnmc-setting/meson.build
+++ b/src/libnmc-setting/meson.build
@@ -1,6 +1,6 @@
Expand All @@ -25,5 +25,5 @@ index 49314cad2e..376ec4e740 100644
-if enable_docs
+if enable_docs and enable_introspection
assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
settings_docs_input_xml = custom_target(
'settings-docs-input.xml',

merge_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-merge.py')
12 changes: 6 additions & 6 deletions srcpkgs/NetworkManager/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'NetworkManager'
pkgname=NetworkManager
version=1.44.2
version=1.46.0
revision=1
build_style=meson
build_helper="gir qemu"
Expand Down Expand Up @@ -33,13 +33,13 @@ short_desc="Network Management daemon"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Projects/NetworkManager"
changelog="https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/raw/nm-1-44/NEWS"
changelog="https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/raw/nm-1-46/NEWS"
distfiles="${GNOME_SITE}/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz"
checksum=4b58bf3ac57e2cefb5652efd0945eb0b4bc36a63d92a61ab471d8bb2c9a420e1
checksum=722649e25362693b334371473802a729b0ec9ee283375096905f868808e74068
# TODO: Some tests require network namespaces to run.
make_check=extended
lib32disabled=yes
conf_files="/etc/${pkgname}/${pkgname}.conf"
conf_files="/etc/NetworkManager/NetworkManager.conf"
make_dirs="
/etc/NetworkManager/system-connections 0755 root root
/etc/NetworkManager/dispatcher.d/pre-up.d 0750 root root
Expand Down Expand Up @@ -75,10 +75,10 @@ post_check() {
}

post_install() {
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/${pkgname}
vinstall ${FILESDIR}/NetworkManager.conf 644 etc/NetworkManager
vinstall ${FILESDIR}/50-org.freedesktop.NetworkManager.rules 644 \
/usr/share/polkit-1/rules.d
vsv ${pkgname}
vsv NetworkManager
}

libnm_package() {
Expand Down
69 changes: 69 additions & 0 deletions srcpkgs/OpenOrienteering-Mapper/patches/fix-tests-qtpaint.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
From 65cf9f2585b696b2819db928fb8b0f13a997113b Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev <mitya57@gmail.com>
Date: Wed, 17 May 2023 11:26:12 +0300
Subject: [PATCH] Make QPainterTest pass with Qt 5.15.9

https://bugreports.qt.io/browse/QTBUG-100327 was fixed in 5.15.9,
so now we have a good result from the beginning and don't need
ImageTransparencyFixup.
---
src/core/image_transparency_fixup.h | 5 +++++
test/qpainter_t.cpp | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/core/image_transparency_fixup.h b/src/core/image_transparency_fixup.h
index 1dfe2f51b..8bd930744 100644
--- a/src/core/image_transparency_fixup.h
+++ b/src/core/image_transparency_fixup.h
@@ -57,6 +57,9 @@ class ImageTransparencyFixup
*
* The image must be of QImage::Format_ARGB32_Premultiplied.
* It may be null.
+ *
+ * This fixup is needed for Qt5 < 5.15.9 and Qt6 < 6.2.4 which are
+ * affected by https://bugreports.qt.io/browse/QTBUG-100327.
*/
inline ImageTransparencyFixup(QImage* image)
: dest(0), dest_end(0)
@@ -81,11 +84,13 @@ class ImageTransparencyFixup
*/
inline void operator()() const
{
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 9) || (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT_VERSION < QT_VERSION_CHECK(6, 2, 4))
for (QRgb* px = dest; px < dest_end; px++)
{
if (*px == 0x01000000) /* qRgba(0, 0, 0, 1) */
*px = 0x00000000; /* qRgba(0, 0, 0, 0) */
}
+#endif
}

protected:
diff --git a/test/qpainter_t.cpp b/test/qpainter_t.cpp
index 85b971c03..a9172b1c8 100644
--- a/test/qpainter_t.cpp
+++ b/test/qpainter_t.cpp
@@ -80,9 +80,10 @@ void QPainterTest::multiplyComposition()
QCOMPARE(compose(white_img, white_img, multiply).pixel(0,0), qRgba(255, 255, 255, 255));
QCOMPARE(compose(black_img, black_img, multiply).pixel(0,0), qRgba(0, 0, 0, 255));

+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 9) || (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT_VERSION < QT_VERSION_CHECK(6, 2, 4))
QEXPECT_FAIL("", "CompositionMode_Multiply incorrectly composes full transparency.", Continue);
+#endif
QCOMPARE(compose(trans_img, trans_img, multiply).pixel(0,0), qRgba(0, 0, 0, 0));
- QCOMPARE(compose(trans_img, trans_img, multiply).pixel(0,0), qRgba(0, 0, 0, 1)); // This should fail!

// ImageTransparencyFixup fixes the particular issue.
QImage result = compose(trans_img, trans_img, multiply);
@@ -107,9 +108,10 @@ void QPainterTest::darkenComposition()
QCOMPARE(compose(white_img, white_img, darken).pixel(0,0), qRgba(255, 255, 255, 255));
QCOMPARE(compose(black_img, black_img, darken).pixel(0,0), qRgba(0, 0, 0, 255));

+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 9) || (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && QT_VERSION < QT_VERSION_CHECK(6, 2, 4))
QEXPECT_FAIL("", "CompositionMode_Darken incorrectly composes full transparency.", Continue);
+#endif
QCOMPARE(compose(trans_img, trans_img, darken).pixel(0,0), qRgba(0, 0, 0, 0));
- QCOMPARE(compose(trans_img, trans_img, darken).pixel(0,0), qRgba(0, 0, 0, 1)); // This should fail!

// ImageTransparencyFixup fixes the particular issue.
QImage result = compose(trans_img, trans_img, darken);
2 changes: 1 addition & 1 deletion srcpkgs/OpenOrienteering-Mapper/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'OpenOrienteering-Mapper'
pkgname=OpenOrienteering-Mapper
version=0.9.5
revision=3
revision=4
build_style=cmake
hostmakedepends="doxygen qt5-host-tools qt5-plugin-sqlite qt5-qmake qt5-tools"
makedepends="qt5-devel clipper-devel proj-devel zlib-devel libgdal-devel
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/OpenSubdiv/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'OpenSubdiv'
pkgname=OpenSubdiv
version=3.4.3
revision=3
revision=4
build_style=cmake
# TODO: CUDA/OpenCL support
# NO_GLTESTS: skip tests which require X11 & $DISPLAY environment variable
Expand Down
28 changes: 28 additions & 0 deletions srcpkgs/PrusaSlicer/patches/ambiguous-overloads.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
index 2364c5624..c977bee4c 100644
--- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp
+++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp
@@ -467,7 +467,8 @@ void PhysicalPrinterDialog::build_printhost_settings(ConfigOptionsGroup* m_optgr
// Always fill in the "printhost_port" combo box from the config and select it.
{
Choice* choice = dynamic_cast<Choice*>(m_optgroup->get_field("printhost_port"));
- choice->set_values({ m_config->opt_string("printhost_port") });
+ const wxArrayString printhost_port = wxArrayString{ m_config->opt_string("printhost_port") };
+ choice->set_values(printhost_port);
choice->set_selection();
}

diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
index 2d00674c0..011ef7cfd 100644
--- a/src/slic3r/GUI/Plater.cpp
+++ b/src/slic3r/GUI/Plater.cpp
@@ -5425,7 +5425,8 @@ void Plater::load_project(const wxString& filename)

p->reset();

- if (! load_files({ into_path(filename) }).empty()) {
+ boost::filesystem::path full_path = into_path(filename);
+ if (! load_files({ full_path }, true, true).empty()) {
// At least one file was loaded.
p->set_project_filename(filename);
// Save the names of active presets and project specific config into ProjectDirtyStateManager.
85 changes: 85 additions & 0 deletions srcpkgs/PrusaSlicer/patches/cstdint.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
From 4846f8c211515546d441d3305a50138614987b72 Mon Sep 17 00:00:00 2001
From: Robert Schiele <rschiele@gmail.com>
Date: Fri, 5 May 2023 20:39:46 +0200
Subject: [PATCH] add missing includes of <cstdint> (PR #10499)

---
deps/OpenEXR/OpenEXR.cmake | 3 ++-
deps/OpenEXR/OpenEXR.patch | 36 +++++++++++++++++++++++++++++++++
src/libslic3r/PNGReadWrite.hpp | 1 +
4 files changed, 40 insertions(+), 1 deletion(-)
create mode 100644 deps/OpenEXR/OpenEXR.patch

diff --git a/deps/OpenEXR/OpenEXR.cmake b/deps/OpenEXR/OpenEXR.cmake
index 046223fed9e..094965d0421 100644
--- a/deps/OpenEXR/OpenEXR.cmake
+++ b/deps/OpenEXR/OpenEXR.cmake
@@ -4,6 +4,7 @@ prusaslicer_add_cmake_project(OpenEXR
URL_HASH SHA256=0307a3d7e1fa1e77e9d84d7e9a8694583fbbbfd50bdc6884e2c96b8ef6b902de
DEPENDS ${ZLIB_PKG}
GIT_TAG v2.5.5
+ PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/OpenEXR.patch
CMAKE_ARGS
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DBUILD_TESTING=OFF
@@ -14,4 +15,4 @@ prusaslicer_add_cmake_project(OpenEXR

if (MSVC)
add_debug_dep(dep_OpenEXR)
-endif ()
\ No newline at end of file
+endif ()
diff --git a/deps/OpenEXR/OpenEXR.patch b/deps/OpenEXR/OpenEXR.patch
new file mode 100644
index 00000000000..22adbd27784
--- /dev/null
+++ b/deps/OpenEXR/OpenEXR.patch
@@ -0,0 +1,36 @@
+diff --git a/OpenEXR/IlmImf/ImfDwaCompressor.cpp b/OpenEXR/IlmImf/ImfDwaCompressor.cpp
+index 59d1d5d1..585a3e65 100644
+--- a/OpenEXR/IlmImf/ImfDwaCompressor.cpp
++++ b/OpenEXR/IlmImf/ImfDwaCompressor.cpp
+@@ -159,6 +159,7 @@
+ #include <limits>
+
+ #include <cstddef>
++#include <cstdint>
+
+
+ // Windows specific addition to prevent the indirect import of the redefined min/max macros
+diff --git a/OpenEXR/IlmImf/ImfHuf.cpp b/OpenEXR/IlmImf/ImfHuf.cpp
+index 271849b7..165fac58 100644
+--- a/OpenEXR/IlmImf/ImfHuf.cpp
++++ b/OpenEXR/IlmImf/ImfHuf.cpp
+@@ -53,6 +53,7 @@
+ #include <cstring>
+ #include <cassert>
+ #include <algorithm>
++#include <cstdint>
+
+
+ using namespace std;
+diff --git a/OpenEXR/IlmImf/ImfMisc.cpp b/OpenEXR/IlmImf/ImfMisc.cpp
+index d2c84787..4b487940 100644
+--- a/OpenEXR/IlmImf/ImfMisc.cpp
++++ b/OpenEXR/IlmImf/ImfMisc.cpp
+@@ -40,6 +40,7 @@
+ //
+ //-----------------------------------------------------------------------------
+
++#include <cstdint>
+ #include <ImfMisc.h>
+ #include <ImfHeader.h>
+ #include <ImfAttribute.h>
diff --git a/src/libslic3r/PNGReadWrite.hpp b/src/libslic3r/PNGReadWrite.hpp
index 01e1f474500..399c6224382 100644
--- a/src/libslic3r/PNGReadWrite.hpp
+++ b/src/libslic3r/PNGReadWrite.hpp
@@ -4,6 +4,7 @@
#include <vector>
#include <string>
#include <istream>
+#include <cstdint>

namespace Slic3r { namespace png {

2 changes: 1 addition & 1 deletion srcpkgs/PrusaSlicer/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'PrusaSlicer'
pkgname=PrusaSlicer
version=2.5.2
revision=3
revision=4
build_style=cmake
build_helper="qemu cmake-wxWidgets-gtk3"
# Pre-Compiled Headers seems to be slower
Expand Down
Loading

0 comments on commit 1ad168f

Please sign in to comment.