Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] akonadi-search: switch to rust based html parsing backend instead of QDocument
@ 2023-10-31 16:35 Johnnynator
  2023-10-31 16:56 ` [PR PATCH] [Updated] " Johnnynator
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Johnnynator @ 2023-10-31 16:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

There is a new pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages akonadi-search
https://github.com/void-linux/void-packages/pull/46987

akonadi-search: switch to rust based html parsing backend instead of QDocument
- New package: corrosion-0.4.4
- akonadi-search: switch to rust based html parsing backend instead of QDocument


A patch file from https://github.com/void-linux/void-packages/pull/46987.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-akonadi-search-46987.patch --]
[-- Type: text/x-diff, Size: 2071 bytes --]

From 1a815c728115151d656f22bb468c65ede389769d Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Tue, 31 Oct 2023 17:34:44 +0100
Subject: [PATCH 1/2] New package: corrosion-0.4.4

---
 srcpkgs/corrosion/template | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/corrosion/template

diff --git a/srcpkgs/corrosion/template b/srcpkgs/corrosion/template
new file mode 100644
index 0000000000000..565c7f352420b
--- /dev/null
+++ b/srcpkgs/corrosion/template
@@ -0,0 +1,16 @@
+# Template file for 'corrosion'
+pkgname=corrosion
+version=0.4.4
+revision=1
+build_style=cmake
+hostmakedepends="cargo"
+short_desc="Tool for integrating Rust into an existing CMake project"
+maintainer="John <me@johnnynator.dev>"
+license="MIT"
+homepage="https://github.com/corrosion-rs/corrosion"
+distfiles="https://github.com/corrosion-rs/corrosion/archive/refs/tags/v${version}.tar.gz"
+checksum=bf3981d0e066f2c877949ec59d9ed6cb193ae4ff615b73f20c64a5de68fc06ab
+
+post_install() {
+	vlicense LICENSE
+}

From e15ed1d689683fadf10cc2aaf09552154361ec9e Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Tue, 31 Oct 2023 17:35:27 +0100
Subject: [PATCH 2/2] akonadi-search: switch to rust based html parsing backend
 instead of QDocument

---
 srcpkgs/akonadi-search/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/akonadi-search/template b/srcpkgs/akonadi-search/template
index e9dd9fb7a12b4..09187360ded85 100644
--- a/srcpkgs/akonadi-search/template
+++ b/srcpkgs/akonadi-search/template
@@ -1,10 +1,10 @@
 # Template file for 'akonadi-search'
 pkgname=akonadi-search
 version=23.08.2
-revision=1
+revision=2
 build_style=cmake
 hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools python3 AppStream
- gettext kcoreaddons kpackage"
+ gettext kcoreaddons kpackage corrosion cargo"
 makedepends="akonadi5-devel akonadi-mime-devel xapian-core-devel krunner-devel
  kcmutils-devel kcontacts-devel kcalendarcore-devel"
 short_desc="Libraries and daemons to implement searching in Akonadi"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] akonadi-search: switch to rust based html parsing backend instead of QDocument
  2023-10-31 16:35 [PR PATCH] akonadi-search: switch to rust based html parsing backend instead of QDocument Johnnynator
@ 2023-10-31 16:56 ` Johnnynator
  2023-10-31 16:58 ` Johnnynator
  2023-10-31 17:33 ` [PR PATCH] [Merged]: " Johnnynator
  2 siblings, 0 replies; 4+ messages in thread
From: Johnnynator @ 2023-10-31 16:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

There is an updated pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages akonadi-search
https://github.com/void-linux/void-packages/pull/46987

akonadi-search: switch to rust based html parsing backend instead of QDocument
- New package: corrosion-0.4.4
- akonadi-search: switch to rust based html parsing backend instead of QDocument


A patch file from https://github.com/void-linux/void-packages/pull/46987.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-akonadi-search-46987.patch --]
[-- Type: text/x-diff, Size: 2844 bytes --]

From 5c347c30b53421ac558a81b3e6987ae40d7e57b4 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Tue, 31 Oct 2023 17:34:44 +0100
Subject: [PATCH 1/2] New package: corrosion-0.4.4

---
 common/build-style/cmake.sh |  1 +
 srcpkgs/corrosion/template  | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 srcpkgs/corrosion/template

diff --git a/common/build-style/cmake.sh b/common/build-style/cmake.sh
index 5760f73dbc842..124ed354eff67 100644
--- a/common/build-style/cmake.sh
+++ b/common/build-style/cmake.sh
@@ -40,6 +40,7 @@ SET(CMAKE_SYSTEM_VERSION 1)
 
 SET(CMAKE_C_COMPILER   ${CC})
 SET(CMAKE_CXX_COMPILER ${CXX})
+SET(Rust_CARGO_TARGET ${XBPS_CROSS_RUST_TARGET})
 SET(CMAKE_CROSSCOMPILING TRUE)
 
 SET(CMAKE_SYSTEM_PROCESSOR ${_CMAKE_SYSTEM_PROCESSOR})
diff --git a/srcpkgs/corrosion/template b/srcpkgs/corrosion/template
new file mode 100644
index 0000000000000..0d5663beec5b4
--- /dev/null
+++ b/srcpkgs/corrosion/template
@@ -0,0 +1,22 @@
+# Template file for 'corrosion'
+pkgname=corrosion
+version=0.4.4
+revision=1
+build_style=cmake
+hostmakedepends="cargo"
+short_desc="Tool for integrating Rust into an existing CMake project"
+maintainer="John <me@johnnynator.dev>"
+license="MIT"
+homepage="https://github.com/corrosion-rs/corrosion"
+distfiles="https://github.com/corrosion-rs/corrosion/archive/refs/tags/v${version}.tar.gz"
+checksum=bf3981d0e066f2c877949ec59d9ed6cb193ae4ff615b73f20c64a5de68fc06ab
+
+do_check() {
+	cd build
+	# Require and uses rustup
+	ctest -E '(rustup_proxy_build|parse_target_triple_build)'
+}
+
+post_install() {
+	vlicense LICENSE
+}

From ab8c6e58d9aef511d199adc10645439231bcc609 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Tue, 31 Oct 2023 17:35:27 +0100
Subject: [PATCH 2/2] akonadi-search: switch to rust based html parsing backend
 instead of QDocument

---
 srcpkgs/akonadi-search/template | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/akonadi-search/template b/srcpkgs/akonadi-search/template
index e9dd9fb7a12b4..a7bd76332f179 100644
--- a/srcpkgs/akonadi-search/template
+++ b/srcpkgs/akonadi-search/template
@@ -1,12 +1,13 @@
 # Template file for 'akonadi-search'
 pkgname=akonadi-search
 version=23.08.2
-revision=1
+revision=2
 build_style=cmake
+build_helper="rust qemu"
 hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools python3 AppStream
- gettext kcoreaddons kpackage"
+ gettext kcoreaddons kpackage corrosion cargo"
 makedepends="akonadi5-devel akonadi-mime-devel xapian-core-devel krunner-devel
- kcmutils-devel kcontacts-devel kcalendarcore-devel"
+ kcmutils-devel kcontacts-devel kcalendarcore-devel rust-std"
 short_desc="Libraries and daemons to implement searching in Akonadi"
 maintainer="John <me@johnnynator.dev>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] akonadi-search: switch to rust based html parsing backend instead of QDocument
  2023-10-31 16:35 [PR PATCH] akonadi-search: switch to rust based html parsing backend instead of QDocument Johnnynator
  2023-10-31 16:56 ` [PR PATCH] [Updated] " Johnnynator
@ 2023-10-31 16:58 ` Johnnynator
  2023-10-31 17:33 ` [PR PATCH] [Merged]: " Johnnynator
  2 siblings, 0 replies; 4+ messages in thread
From: Johnnynator @ 2023-10-31 16:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

There is an updated pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages akonadi-search
https://github.com/void-linux/void-packages/pull/46987

akonadi-search: switch to rust based html parsing backend instead of QDocument
- New package: corrosion-0.4.4
- akonadi-search: switch to rust based html parsing backend instead of QDocument


A patch file from https://github.com/void-linux/void-packages/pull/46987.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-akonadi-search-46987.patch --]
[-- Type: text/x-diff, Size: 3360 bytes --]

From 5c347c30b53421ac558a81b3e6987ae40d7e57b4 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Tue, 31 Oct 2023 17:34:44 +0100
Subject: [PATCH 1/2] New package: corrosion-0.4.4

---
 common/build-style/cmake.sh |  1 +
 srcpkgs/corrosion/template  | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 srcpkgs/corrosion/template

diff --git a/common/build-style/cmake.sh b/common/build-style/cmake.sh
index 5760f73dbc842..124ed354eff67 100644
--- a/common/build-style/cmake.sh
+++ b/common/build-style/cmake.sh
@@ -40,6 +40,7 @@ SET(CMAKE_SYSTEM_VERSION 1)
 
 SET(CMAKE_C_COMPILER   ${CC})
 SET(CMAKE_CXX_COMPILER ${CXX})
+SET(Rust_CARGO_TARGET ${XBPS_CROSS_RUST_TARGET})
 SET(CMAKE_CROSSCOMPILING TRUE)
 
 SET(CMAKE_SYSTEM_PROCESSOR ${_CMAKE_SYSTEM_PROCESSOR})
diff --git a/srcpkgs/corrosion/template b/srcpkgs/corrosion/template
new file mode 100644
index 0000000000000..0d5663beec5b4
--- /dev/null
+++ b/srcpkgs/corrosion/template
@@ -0,0 +1,22 @@
+# Template file for 'corrosion'
+pkgname=corrosion
+version=0.4.4
+revision=1
+build_style=cmake
+hostmakedepends="cargo"
+short_desc="Tool for integrating Rust into an existing CMake project"
+maintainer="John <me@johnnynator.dev>"
+license="MIT"
+homepage="https://github.com/corrosion-rs/corrosion"
+distfiles="https://github.com/corrosion-rs/corrosion/archive/refs/tags/v${version}.tar.gz"
+checksum=bf3981d0e066f2c877949ec59d9ed6cb193ae4ff615b73f20c64a5de68fc06ab
+
+do_check() {
+	cd build
+	# Require and uses rustup
+	ctest -E '(rustup_proxy_build|parse_target_triple_build)'
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 0df61d3b87e12307ebf2100ca08abedcefa66c98 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Tue, 31 Oct 2023 17:35:27 +0100
Subject: [PATCH 2/2] akonadi-search: switch to rust based html parsing backend
 instead of QDocument

---
 srcpkgs/akonadi-search/template | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/akonadi-search/template b/srcpkgs/akonadi-search/template
index e9dd9fb7a12b4..21f7707256f0d 100644
--- a/srcpkgs/akonadi-search/template
+++ b/srcpkgs/akonadi-search/template
@@ -1,12 +1,13 @@
 # Template file for 'akonadi-search'
 pkgname=akonadi-search
 version=23.08.2
-revision=1
+revision=2
 build_style=cmake
+build_helper="rust qemu"
 hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools python3 AppStream
- gettext kcoreaddons kpackage"
+ gettext kcoreaddons kpackage corrosion cargo"
 makedepends="akonadi5-devel akonadi-mime-devel xapian-core-devel krunner-devel
- kcmutils-devel kcontacts-devel kcalendarcore-devel"
+ kcmutils-devel kcontacts-devel kcalendarcore-devel rust-std"
 short_desc="Libraries and daemons to implement searching in Akonadi"
 maintainer="John <me@johnnynator.dev>"
 license="GPL-2.0-or-later, LGPL-2.1-or-later"
@@ -14,6 +15,12 @@ homepage="https://community.kde.org/KDE_PIM"
 distfiles="${KDE_SITE}/release-service/${version}/src/akonadi-search-${version}.tar.xz"
 checksum=3a7fabea987cf4492b21546574c6c1771718e1da7dace682a168d848b12482fb
 
+do_check() {
+	cd build
+	# Require Akonadi running
+	ctest -E '(akonadi-sqlite-schedulertest|akonadi-sqlite-collectionindexingjobtest)'
+}
+
 akonadi-search-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
 	short_desc+=" - development files"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Merged]: akonadi-search: switch to rust based html parsing backend instead of QDocument
  2023-10-31 16:35 [PR PATCH] akonadi-search: switch to rust based html parsing backend instead of QDocument Johnnynator
  2023-10-31 16:56 ` [PR PATCH] [Updated] " Johnnynator
  2023-10-31 16:58 ` Johnnynator
@ 2023-10-31 17:33 ` Johnnynator
  2 siblings, 0 replies; 4+ messages in thread
From: Johnnynator @ 2023-10-31 17:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

There's a merged pull request on the void-packages repository

akonadi-search: switch to rust based html parsing backend instead of QDocument
https://github.com/void-linux/void-packages/pull/46987

Description:
- New package: corrosion-0.4.4
- akonadi-search: switch to rust based html parsing backend instead of QDocument


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-31 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 16:35 [PR PATCH] akonadi-search: switch to rust based html parsing backend instead of QDocument Johnnynator
2023-10-31 16:56 ` [PR PATCH] [Updated] " Johnnynator
2023-10-31 16:58 ` Johnnynator
2023-10-31 17:33 ` [PR PATCH] [Merged]: " Johnnynator

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).