Skip to content

Commit 29cf5dd

Browse files
robertkirkmanlicy183sabamdariflfdevs
committed
tree-wide: GNOME Desktop
- Based on termux#28268 Co-authored-by: Chongyun Lee <licy183@termux.dev> Co-authored-by: Md Arif <111168803+sabamdarif@users.noreply.github.com> Co-authored-by: lfdevs <lfdevs@lfdevs.com>
1 parent 2b18887 commit 29cf5dd

110 files changed

Lines changed: 8708 additions & 137 deletions

File tree

Some content is hidden

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

‎packages/libical/build.sh‎

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,45 @@ TERMUX_PKG_DESCRIPTION="Libical is an Open Source implementation of the iCalenda
33
TERMUX_PKG_LICENSE="LGPL-2.0"
44
TERMUX_PKG_MAINTAINER="@termux"
55
TERMUX_PKG_VERSION="4.0.4"
6+
TERMUX_PKG_REVISION=1
67
TERMUX_PKG_SRCURL=https://github.com/libical/libical/releases/download/v$TERMUX_PKG_VERSION/libical-$TERMUX_PKG_VERSION.tar.gz
78
TERMUX_PKG_SHA256=c851cdb46da5e6397881dafaa592c5516fb49da05dd1bb095f711a6d20eac422
89
TERMUX_PKG_AUTO_UPDATE=true
9-
TERMUX_PKG_DEPENDS="libc++, libicu"
10+
TERMUX_PKG_DEPENDS="glib, gobject-introspection, libc++, libicu, libxml2"
11+
TERMUX_PKG_BUILD_DEPENDS="g-ir-scanner"
1012
TERMUX_PKG_BREAKS="libical-dev"
1113
TERMUX_PKG_REPLACES="libical-dev"
1214
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
1315
-DLIBICAL_BUILD_DOCS=false
14-
-DLIBICAL_GLIB=false
15-
-DLIBICAL_GOBJECT_INTROSPECTION=false
16+
-DLIBICAL_GLIB_BUILD_DOCS=false
1617
-DUSE_BUILTIN_TZDATA=true
1718
-DPERL_EXECUTABLE=/usr/bin/perl
19+
-DICAL_GLIB=true
20+
-DIMPORT_ICAL_GLIB_SRC_GENERATOR=$TERMUX_PKG_HOSTBUILD_DIR/host-prefix/lib/cmake/LibIcal/IcalGlibSrcGenerator.cmake
21+
-DENABLE_GTK_DOC=false
1822
"
23+
TERMUX_PKG_HOSTBUILD=true
24+
25+
termux_step_pre_configure() {
26+
termux_setup_gir
27+
}
28+
29+
termux_step_host_build() {
30+
termux_setup_cmake
31+
termux_setup_ninja
32+
33+
mkdir -p "$TERMUX_PKG_HOSTBUILD_DIR"/host-prefix
34+
35+
cmake \
36+
-DCMAKE_BUILD_TYPE=Release \
37+
-DCMAKE_INSTALL_PREFIX="$TERMUX_PKG_HOSTBUILD_DIR"/host-prefix \
38+
-DENABLE_GTK_DOC=OFF \
39+
-DLIBICAL_GLIB_BUILD_DOCS=OFF \
40+
-G Ninja \
41+
"$TERMUX_PKG_SRCDIR"
42+
cmake --build .
43+
cmake --install . --prefix "$TERMUX_PKG_HOSTBUILD_DIR"/host-prefix
44+
}
1945

2046
termux_step_post_get_source() {
2147
# Do not forget to bump revision of reverse dependencies and rebuild them
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0"?>
2+
<dump>
3+
</dump>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0"?>
2+
<dump>
3+
<class name="ICalObject" get-type="i_cal_object_get_type" parents="GObject" abstract="1">
4+
<property name="native" type="gpointer" flags="235"/>
5+
<property name="native-destroy-func" type="gpointer" flags="227"/>
6+
<property name="is-global-memory" type="gboolean" flags="235" default-value="FALSE"/>
7+
<property name="always-destroy" type="gboolean" flags="227" default-value="FALSE"/>
8+
<property name="owner" type="GObject" flags="227"/>
9+
</class>
10+
<class name="ICalArray" get-type="i_cal_array_get_type" parents="ICalObject,GObject">
11+
</class>
12+
<class name="ICalAttach" get-type="i_cal_attach_get_type" parents="ICalObject,GObject">
13+
</class>
14+
<class name="ICalCompIter" get-type="i_cal_comp_iter_get_type" parents="ICalObject,GObject">
15+
</class>
16+
<class name="ICalParameter" get-type="i_cal_parameter_get_type" parents="ICalObject,GObject">
17+
</class>
18+
<class name="ICalComponent" get-type="i_cal_component_get_type" parents="ICalObject,GObject">
19+
</class>
20+
<class name="ICalTime" get-type="i_cal_time_get_type" parents="ICalObject,GObject">
21+
</class>
22+
<class name="ICalPeriod" get-type="i_cal_period_get_type" parents="ICalObject,GObject">
23+
</class>
24+
<class name="ICalDatetimeperiod" get-type="i_cal_datetimeperiod_get_type" parents="ICalObject,GObject">
25+
</class>
26+
<class name="ICalDuration" get-type="i_cal_duration_get_type" parents="ICalObject,GObject">
27+
</class>
28+
<class name="ICalEnumArray" get-type="i_cal_enum_array_get_type" parents="ICalObject,GObject">
29+
</class>
30+
<class name="ICalGeo" get-type="i_cal_geo_get_type" parents="ICalObject,GObject">
31+
</class>
32+
<class name="ICalParamIter" get-type="i_cal_param_iter_get_type" parents="ICalObject,GObject">
33+
</class>
34+
<class name="ICalParser" get-type="i_cal_parser_get_type" parents="ICalObject,GObject">
35+
</class>
36+
<class name="ICalProperty" get-type="i_cal_property_get_type" parents="ICalObject,GObject">
37+
</class>
38+
<class name="ICalPropIter" get-type="i_cal_prop_iter_get_type" parents="ICalObject,GObject">
39+
</class>
40+
<class name="ICalRecurIterator" get-type="i_cal_recur_iterator_get_type" parents="ICalObject,GObject">
41+
</class>
42+
<class name="ICalRecurrence" get-type="i_cal_recurrence_get_type" parents="ICalObject,GObject">
43+
</class>
44+
<class name="ICalReqstat" get-type="i_cal_reqstat_get_type" parents="ICalObject,GObject">
45+
</class>
46+
<class name="ICalStrArray" get-type="i_cal_str_array_get_type" parents="ICalObject,GObject">
47+
</class>
48+
<class name="ICalTimeSpan" get-type="i_cal_time_span_get_type" parents="ICalObject,GObject">
49+
</class>
50+
<class name="ICalTimezone" get-type="i_cal_timezone_get_type" parents="ICalObject,GObject">
51+
</class>
52+
<class name="ICalTrigger" get-type="i_cal_trigger_get_type" parents="ICalObject,GObject">
53+
</class>
54+
<class name="ICalValue" get-type="i_cal_value_get_type" parents="ICalObject,GObject">
55+
</class>
56+
<class name="ICalVcardParameter" get-type="i_cal_vcard_parameter_get_type" parents="ICalObject,GObject">
57+
</class>
58+
<class name="ICalVcardComponent" get-type="i_cal_vcard_component_get_type" parents="ICalObject,GObject">
59+
</class>
60+
<class name="ICalVcardEnumArray" get-type="i_cal_vcard_enum_array_get_type" parents="ICalObject,GObject">
61+
</class>
62+
<class name="ICalVcardGeo" get-type="i_cal_vcard_geo_get_type" parents="ICalObject,GObject">
63+
</class>
64+
<class name="ICalVcardProperty" get-type="i_cal_vcard_property_get_type" parents="ICalObject,GObject">
65+
</class>
66+
<class name="ICalVcardStrArray" get-type="i_cal_vcard_str_array_get_type" parents="ICalObject,GObject">
67+
</class>
68+
<class name="ICalVcardStructured" get-type="i_cal_vcard_structured_get_type" parents="ICalObject,GObject">
69+
</class>
70+
<class name="ICalVcardTime" get-type="i_cal_vcard_time_get_type" parents="ICalObject,GObject">
71+
</class>
72+
<class name="ICalVcardTz" get-type="i_cal_vcard_tz_get_type" parents="ICalObject,GObject">
73+
</class>
74+
<class name="ICalVcardValue" get-type="i_cal_vcard_value_get_type" parents="ICalObject,GObject">
75+
</class>
76+
</dump>

packages/spidermonkey/0008-fix-marcos.patch renamed to packages/spidermonkey/0007-fix-marcos.patch

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@
5353
# define MOZ_CUBEB_REMOTING
5454
#endif
5555

56-
--- a/mozglue/misc/ConditionVariable_posix.cpp
57-
+++ b/mozglue/misc/ConditionVariable_posix.cpp
58-
@@ -23,7 +23,7 @@
59-
// Android 4.4 or earlier & macOS 10.12 has the clock functions, but not
60-
// pthread_condattr_setclock.
61-
#if defined(HAVE_CLOCK_MONOTONIC) && \
62-
- !(defined(__ANDROID__) && __ANDROID_API__ < 21) && !defined(__APPLE__)
63-
+ defined(__TERMUX__)
64-
# define CV_USE_CLOCK_API
65-
#endif
66-
6756
--- a/mozglue/misc/StackWalk.cpp
6857
+++ b/mozglue/misc/StackWalk.cpp
6958
@@ -692,7 +692,7 @@
@@ -77,12 +66,13 @@
7766
pthread_getattr_np(pthread_self(), &sattr);
7867
--- a/nsprpub/pr/src/pthreads/ptsynch.c
7968
+++ b/nsprpub/pr/src/pthreads/ptsynch.c
80-
@@ -953,7 +953,7 @@
81-
#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \
82-
|| (defined(FREEBSD) && __FreeBSD_version < 1200059) \
83-
|| defined(OPENBSD) || defined(BSDI) \
84-
- || defined(DARWIN)
85-
+ || defined(DARWIN) || defined(__TERMUX__)
69+
@@ -864,7 +864,7 @@
70+
*/
71+
# if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || \
72+
(defined(FREEBSD) && __FreeBSD_version < 1200059) || \
73+
- defined(OPENBSD) || defined(DARWIN)
74+
+ defined(OPENBSD) || defined(DARWIN) || defined(__TERMUX__)
8675
/* union semun is defined by including <sys/sem.h> */
87-
#else
76+
# else
8877
/* according to X/OPEN we have to define it ourselves */
78+

packages/spidermonkey/0009-impl-posix-shmem.patch renamed to packages/spidermonkey/0008-impl-posix-shmem.patch

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
--- a/ipc/chromium/src/base/shared_memory_posix.cc
2-
+++ b/ipc/chromium/src/base/shared_memory_posix.cc
3-
@@ -40,6 +40,65 @@
4-
#include "mozilla/UniquePtrExtensions.h"
1+
--- a/ipc/glue/SharedMemoryPlatform_posix.cpp
2+
+++ b/ipc/glue/SharedMemoryPlatform_posix.cpp
3+
@@ -39,6 +39,65 @@
54
#include "prenv.h"
5+
#include "nsXULAppAPI.h" // for XRE_IsParentProcess
66

77
+static int shm_unlink(const char *name) {
88
+ size_t namelen;
@@ -63,15 +63,16 @@
6363
+ return fd;
6464
+}
6565
+
66-
namespace base {
66+
namespace mozilla::ipc::shared_memory {
6767

68-
void SharedMemory::MappingDeleter::operator()(void* ptr) {
69-
@@ -153,7 +212,7 @@
68+
// memfd_create is a nonstandard interface for creating anonymous
69+
@@ -101,7 +160,7 @@
7070
// FreeBSD in version 13.
7171

72-
# if !defined(HAVE_MEMFD_CREATE) && defined(XP_LINUX) && \
73-
- defined(SYS_memfd_create)
74-
+ defined(SYS_memfd_create) && !defined(__TERMUX__)
72+
#if !defined(HAVE_MEMFD_CREATE) && defined(XP_LINUX) && \
73+
- defined(SYS_memfd_create)
74+
+ defined(SYS_memfd_create) && !defined(__TERMUX__)
7575

7676
// Older libc versions (e.g., glibc before 2.27) don't have the
7777
// wrapper, but we can supply our own; see `linux_memfd_defs.h`.
78+

packages/spidermonkey/0010-do-not-check-time_t-for-system-libevent.patch renamed to packages/spidermonkey/0009-do-not-check-time_t-for-system-libevent.patch

File renamed without changes.

packages/spidermonkey/0011-use-UnderrunHandlerNoop.patch renamed to packages/spidermonkey/0010-use-UnderrunHandlerNoop.patch

File renamed without changes.

packages/spidermonkey/0012-do-not-use-adaptive-mutex.patch renamed to packages/spidermonkey/0011-do-not-use-adaptive-mutex.patch

File renamed without changes.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
--- a/toolkit/components/extensions/storage/moz.build
2+
+++ b/toolkit/components/extensions/storage/moz.build
3+
@@ -11,7 +11,7 @@
4+
# a delegate for consumers to use instead. Android Components can then provide
5+
# an implementation of the delegate that's backed by the Rust component. For
6+
# details, please see bug 1626506, comment 4.
7+
-if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android":
8+
+if False:
9+
EXTRA_JS_MODULES += [
10+
"ExtensionStorageComponents.sys.mjs",
11+
]
12+
--- a/toolkit/library/rust/shared/Cargo.toml
13+
+++ b/toolkit/library/rust/shared/Cargo.toml
14+
@@ -112,7 +112,7 @@
15+
[target.'cfg(any(target_os = "macos",target_os = "ios", all(target_os = "windows", not(target_arch = "aarch64"))))'.dependencies]
16+
osclientcerts = { path = "../../../../security/manager/ssl/osclientcerts" }
17+
18+
-[target.'cfg(not(target_os = "android"))'.dependencies]
19+
+[target.'cfg(target_os = "android")'.dependencies]
20+
gkrust-uniffi-components = { path = "../../../components/uniffi-bindgen-gecko-js/components/", features = ["xpcom"] }
21+
gkrust-uniffi-fixtures = { path = "../../../components/uniffi-bindgen-gecko-js/fixtures/", features = ["xpcom"], optional = true }
22+
viaduct = "0.1"
23+
--- a/toolkit/library/rust/shared/lib.rs
24+
+++ b/toolkit/library/rust/shared/lib.rs
25+
@@ -55,7 +55,6 @@
26+
27+
extern crate audio_thread_priority;
28+
29+
-#[cfg(not(target_os = "android"))]
30+
extern crate webext_storage;
31+
32+
#[cfg(feature = "webrtc")]
33+
@@ -91,13 +90,11 @@
34+
all(target_os = "windows", not(target_arch = "aarch64"))))]
35+
extern crate osclientcerts;
36+
37+
-#[cfg(not(target_os = "android"))]
38+
extern crate gkrust_uniffi_components;
39+
40+
#[cfg(feature = "uniffi_fixtures")]
41+
extern crate gkrust_uniffi_fixtures;
42+
43+
-#[cfg(not(target_os = "android"))]
44+
extern crate viaduct;
45+
46+
extern crate gecko_logger;
47+

‎packages/spidermonkey/0013-fix-rust-compile.patch‎

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)