From: Calandracas606 <Calandracas606@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: swww-0.9.1
Date: Thu, 28 Mar 2024 15:29:27 +0100 [thread overview]
Message-ID: <20240328142927.AD2B6221BE@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47552@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages swww
https://github.com/void-linux/void-packages/pull/47552
New package: swww-0.9.1
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I built this PR locally for these architectures (crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
A patch file from https://github.com/void-linux/void-packages/pull/47552.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-swww-47552.patch --]
[-- Type: text/x-diff, Size: 4100 bytes --]
From 9e07ca75f4852baa544f52585362973316e362cc Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 7 Nov 2023 08:16:32 -0500
Subject: [PATCH] New package: swww-0.9.1
---
srcpkgs/swww/patches/i686.patch | 60 +++++++++++++++++++++++++++++++++
srcpkgs/swww/template | 33 ++++++++++++++++++
2 files changed, 93 insertions(+)
create mode 100644 srcpkgs/swww/patches/i686.patch
create mode 100644 srcpkgs/swww/template
diff --git a/srcpkgs/swww/patches/i686.patch b/srcpkgs/swww/patches/i686.patch
new file mode 100644
index 00000000000000..834f81659e38fe
--- /dev/null
+++ b/srcpkgs/swww/patches/i686.patch
@@ -0,0 +1,60 @@
+diff --git a/utils/src/compression/comp/sse2.rs b/utils/src/compression/comp/sse2.rs
+index 9c291dd..f69fd82 100644
+--- a/utils/src/compression/comp/sse2.rs
++++ b/utils/src/compression/comp/sse2.rs
+@@ -4,6 +4,9 @@
+ #[inline]
+ #[target_feature(enable = "sse2")]
+ unsafe fn count_equals(s1: &[u8], s2: &[u8], mut i: usize) -> usize {
++ #[cfg(target_arch = "x86")]
++ use std::arch::x86 as intr;
++ #[cfg(target_arch = "x86_64")]
+ use std::arch::x86_64 as intr;
+ let mut equals = 0;
+ while i + 15 < s1.len() {
+@@ -39,6 +42,9 @@ unsafe fn count_equals(s1: &[u8], s2: &[u8], mut i: usize) -> usize {
+ #[inline]
+ #[target_feature(enable = "sse2")]
+ unsafe fn count_different(s1: &[u8], s2: &[u8], mut i: usize) -> usize {
++ #[cfg(target_arch = "x86")]
++ use std::arch::x86 as intr;
++ #[cfg(target_arch = "x86_64")]
+ use std::arch::x86_64 as intr;
+ let mut diff = 0;
+ while i + 15 < s1.len() {
+diff --git a/utils/src/compression/cpu.rs b/utils/src/compression/cpu.rs
+index 8113631..537124d 100644
+--- a/utils/src/compression/cpu.rs
++++ b/utils/src/compression/cpu.rs
+@@ -30,7 +30,7 @@ pub(super) fn init() {
+ ONCE_INIT.call_once(|| unsafe { features::init() });
+ }
+
+-#[cfg(target_arch = "x86_64")]
++#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
+ pub mod features {
+ decl_feature!(SSE2, sse2);
+ decl_feature!(SSSE3, ssse3);
+@@ -49,7 +49,7 @@ pub mod features {
+ }
+ }
+
+-#[cfg(not(target_arch = "x86_64"))]
++#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
+ pub mod features {
+
+ /// UNIMPLEMENTED!!! This function must exist so that the init function in super compiles on
+diff --git a/utils/src/compression/decomp/ssse3.rs b/utils/src/compression/decomp/ssse3.rs
+index 6b616fe..3992230 100644
+--- a/utils/src/compression/decomp/ssse3.rs
++++ b/utils/src/compression/decomp/ssse3.rs
+@@ -1,6 +1,9 @@
+ #[inline]
+ #[target_feature(enable = "ssse3")]
+ pub(super) unsafe fn unpack_bytes_4channels(buf: &mut [u8], diff: &[u8]) {
++ #[cfg(target_arch = "x86")]
++ use std::arch::x86 as intr;
++ #[cfg(target_arch = "x86_64")]
+ use std::arch::x86_64 as intr;
+
+ // The final bytes are just padding to prevent us from going out of bounds
diff --git a/srcpkgs/swww/template b/srcpkgs/swww/template
new file mode 100644
index 00000000000000..ad0b414eb1b637
--- /dev/null
+++ b/srcpkgs/swww/template
@@ -0,0 +1,33 @@
+# Template file for 'swww'
+pkgname=swww
+version=0.9.1
+revision=1
+build_style=cargo
+hostmakedepends="scdoc pkg-config"
+makedepends="liblz4-devel"
+short_desc="Solution to your Wayland Wallpaper Woes"
+maintainer="Daniel Martinez <danielmartinez@cock.li>"
+license="GPL-3.0-only"
+homepage="https://github.com/LGFae/swww"
+changelog="https://raw.githubusercontent.com/LGFae/swww/v${version}/CHANGELOG.md"
+distfiles="https://github.com/LGFae/swww/archive/refs/tags/v${version}.tar.gz"
+checksum=c1f6cf2ccd4878e9cb5b6c6412494120535227516d3749694ac4e75ec68e0547
+
+post_build() {
+ ./doc/gen.sh
+}
+
+# overriding do_install(), since by default it will pointlessly rebuild the package again
+do_install() {
+
+ vbin target/${RUST_TARGET}/release/swww
+ vbin target/${RUST_TARGET}/release/swww-daemon
+
+ for doc in doc/generated/*; do
+ vman $doc
+ done
+
+ vcompletion completions/swww.bash bash
+ vcompletion completions/swww.fish fish
+ vcompletion completions/_swww zsh
+}
prev parent reply other threads:[~2024-03-28 14:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-03 20:11 [PR PATCH] New package: swww-0.8.1 Calandracas606
2023-12-03 20:12 ` classabbyamp
2023-12-03 20:15 ` Calandracas606
2023-12-03 20:17 ` classabbyamp
2023-12-03 20:46 ` [PR PATCH] [Updated] " Calandracas606
2024-03-03 1:45 ` github-actions
2024-03-03 2:15 ` [PR PATCH] [Updated] " Calandracas606
2024-03-03 2:33 ` Calandracas606
2024-03-03 2:37 ` Calandracas606
2024-03-03 2:38 ` [PR PATCH] [Updated] " Calandracas606
2024-03-03 10:12 ` tranzystorekk
2024-03-28 13:26 ` [PR PATCH] [Updated] " Calandracas606
2024-03-28 14:15 ` [PR PATCH] [Updated] New package: swww-0.9.1 Calandracas606
2024-03-28 14:28 ` Calandracas606
2024-03-28 14:29 ` Calandracas606 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240328142927.AD2B6221BE@inbox.vuxu.org \
--to=calandracas606@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).