[-- Attachment #1: Type: text/plain, Size: 307 bytes --] There is a new pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 954 bytes --] From 01c0c5a9ec8ca31d5e8b657e8e5b2d26cc507039 Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/template | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..f228d5593bc --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,13 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel" +short_desc="xdotool type for wayland" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 1002 bytes --] From 81f97509f9ebff964a45968ead9cd450b3cb8145 Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..8dfa1dd2c32 --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,17 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 1002 bytes --] From 4c47e5c29b6616faa7dd8b6b8ede44635f4abfdf Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..2866eacbcb9 --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,17 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config" +makedepends="libxkbcommon-devel wayland-devel" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 1049 bytes --] From 4b8b80fc01d8c7a1fec96f6b84125bd0d94bd316 Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..c4b889de9c8 --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,18 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel wayland-devel" +depends="libxkbcommon wayland" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 1067 bytes --] From 28093bd6ccff786115e1fefa1b11f2591aff746f Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..309ed0d8448 --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,19 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +archs="~*-musl" +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel wayland-devel" +depends="libxkbcommon wayland" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 225 bytes --] New review comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/pull/27375#discussion_r548045028 Comment: This line is not required. The dependencies should be detected automatically.
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 1034 bytes --] From 9896bfe4476a6ae5073d07d3c90a4b332061e3f0 Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..27bcf79aebc --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,18 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +archs="~*-musl" +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel wayland-devel" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 165 bytes --] New review comment by Eluminae on void-packages repository https://github.com/void-linux/void-packages/pull/27375#discussion_r548050712 Comment: okay I removed it
[-- Attachment #1: Type: text/plain, Size: 212 bytes --] New comment by mcbloch on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-752100726 Comment: Tried on `Linux 5.9.16_1 #1 SMP 1608571490 x86_64 GNU/Linux` and works.
[-- Attachment #1: Type: text/plain, Size: 245 bytes --] New comment by Eluminae on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-752114989 Comment: I disabled musl package but next release will be musl compatible https://github.com/atx/wtype/issues/20
[-- Attachment #1: Type: text/plain, Size: 252 bytes --] New comment by the-maldridge on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-752347267 Comment: @Eluminae can you pull in the patch that was applied upstream so that this release works on musl as well?
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 2456 bytes --] From 814cefde340b70a6f75bdb7ebab54ac7b987e854 Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/patches/fix_reallocarray.patch | 39 ++++++++++++++++++++ srcpkgs/wtype/template | 17 +++++++++ 2 files changed, 56 insertions(+) create mode 100644 srcpkgs/wtype/patches/fix_reallocarray.patch create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/patches/fix_reallocarray.patch b/srcpkgs/wtype/patches/fix_reallocarray.patch new file mode 100644 index 00000000000..30468f26135 --- /dev/null +++ b/srcpkgs/wtype/patches/fix_reallocarray.patch @@ -0,0 +1,39 @@ +From fb8cb526470308d36b28c33620fcb74916f952e8 Mon Sep 17 00:00:00 2001 +From: Josef Gajdusek <atx@atx.name> +Date: Mon, 28 Dec 2020 20:45:36 +0100 +Subject: [PATCH] Do not use reallocarray + +Not available in musl. + +Closes #20 + +Signed-off-by: Reed Wade <reedwade@misterbanal.net> +--- + main.c | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/main.c b/main.c +index cbdbb0f..cec1cc2 100644 +--- main.c ++++ main.c +@@ -1,6 +1,4 @@ + +-#define _GNU_SOURCE +- + #include <fcntl.h> + #include <locale.h> + #include <stdbool.h> +@@ -140,8 +138,8 @@ unsigned int get_key_code(struct wtype *wtype, wchar_t ch) + return i; + } + } +- wtype->keymap = reallocarray( +- wtype->keymap, ++wtype->keymap_len, sizeof(wtype->keymap[0]) ++ wtype->keymap = realloc( ++ wtype->keymap, ++wtype->keymap_len * sizeof(wtype->keymap[0]) + ); + wtype->keymap[wtype->keymap_len - 1] = ch; + return wtype->keymap_len - 1; +-- +2.29.2 + diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..962c7cf82be --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,17 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel wayland-devel" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 279 bytes --] New comment by Eluminae on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-752640555 Comment: > @Eluminae can you pull in the patch that was applied upstream so that this release works on musl as well? Good idea. This is done :)
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --] There is an updated pull request by ajshell1 against master on the void-packages repository https://github.com/ajshell1/void-packages wtype https://github.com/void-linux/void-packages/pull/29280 New package: wtype-0.3 <!-- Mark items with [x] where applicable --> #### General - [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements) #### Have the results of the proposed changes been tested? - [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me - [x] I generally don't use the affected packages but briefly tested this PR <!-- If GitHub CI cannot be used to validate the build result (for example, if the build is likely to take several hours), make sure to [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration). When skipping CI, uncomment and fill out the following section. Note: for builds that are likely to complete in less than 2 hours, it is not acceptable to skip CI. --> <!-- #### Does it build and run successfully? (Please choose at least one native build and, if supported, at least one cross build. More are better.) - [ ] I built this PR locally for my native architecture, (ARCH-LIBC) - [ ] I built this PR locally for these architectures (if supported. mark crossbuilds): - [ ] aarch64-musl - [ ] armv7l - [ ] armv6l-musl --> A patch file from https://github.com/void-linux/void-packages/pull/29280.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-29280.patch --] [-- Type: text/x-diff, Size: 1028 bytes --] From 9bd3fd9627a4c3350be1b25eb85b42ac42e8f1f7 Mon Sep 17 00:00:00 2001 From: ajshell1 <11084981+ajshell1@users.noreply.github.com> Date: Sat, 6 Mar 2021 22:16:52 +0000 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 00000000000..9fcf2413913 --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,17 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="wayland-devel libxkbcommon-devel" +short_desc="xdotool type for wayland" +maintainer="ajshell1 <ajshell1@protonmail.com>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/wtype/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 164 bytes --] New comment by ajshell1 on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-792295581 Comment: My apologies. Closing.
[-- Attachment #1: Type: text/plain, Size: 164 bytes --] New comment by ajshell1 on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-792295581 Comment: My apologies. Closing.
[-- Attachment #1: Type: text/plain, Size: 155 bytes --] New comment by Eluminae on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-858807953 Comment: hello there ?
[-- Attachment #1: Type: text/plain, Size: 182 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-858813172 Comment: Can you please rebase so we get a CI run?
[-- Attachment #1: Type: text/plain, Size: 186 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-858813172 Comment: Can you please rebase so we get a new CI run?
[-- Attachment #1: Type: text/plain, Size: 178 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-858814607 Comment: And how does this compare to ydotool?
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 2460 bytes --] From 188dc16ad78adb69706643f9781328651f720ceb Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/patches/fix_reallocarray.patch | 39 ++++++++++++++++++++ srcpkgs/wtype/template | 17 +++++++++ 2 files changed, 56 insertions(+) create mode 100644 srcpkgs/wtype/patches/fix_reallocarray.patch create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/patches/fix_reallocarray.patch b/srcpkgs/wtype/patches/fix_reallocarray.patch new file mode 100644 index 000000000000..30468f26135b --- /dev/null +++ b/srcpkgs/wtype/patches/fix_reallocarray.patch @@ -0,0 +1,39 @@ +From fb8cb526470308d36b28c33620fcb74916f952e8 Mon Sep 17 00:00:00 2001 +From: Josef Gajdusek <atx@atx.name> +Date: Mon, 28 Dec 2020 20:45:36 +0100 +Subject: [PATCH] Do not use reallocarray + +Not available in musl. + +Closes #20 + +Signed-off-by: Reed Wade <reedwade@misterbanal.net> +--- + main.c | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/main.c b/main.c +index cbdbb0f..cec1cc2 100644 +--- main.c ++++ main.c +@@ -1,6 +1,4 @@ + +-#define _GNU_SOURCE +- + #include <fcntl.h> + #include <locale.h> + #include <stdbool.h> +@@ -140,8 +138,8 @@ unsigned int get_key_code(struct wtype *wtype, wchar_t ch) + return i; + } + } +- wtype->keymap = reallocarray( +- wtype->keymap, ++wtype->keymap_len, sizeof(wtype->keymap[0]) ++ wtype->keymap = realloc( ++ wtype->keymap, ++wtype->keymap_len * sizeof(wtype->keymap[0]) + ); + wtype->keymap[wtype->keymap_len - 1] = ch; + return wtype->keymap_len - 1; +-- +2.29.2 + diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 000000000000..962c7cf82bec --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,17 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel wayland-devel" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 213 bytes --] New comment by Eluminae on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-859010144 Comment: > And how does this compare to ydotool? I know nothing about ydotool
[-- Attachment #1: Type: text/plain, Size: 312 bytes --] There is an updated pull request by Eluminae against master on the void-packages repository https://github.com/Eluminae/void-packages wtype https://github.com/void-linux/void-packages/pull/27375 New package: wtype-0.3 A patch file from https://github.com/void-linux/void-packages/pull/27375.patch is attached [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: github-pr-wtype-27375.patch --] [-- Type: text/x-diff, Size: 2460 bytes --] From aff52af14df4db1b9d1807a831347f2923b9fb30 Mon Sep 17 00:00:00 2001 From: Reed Wade <reedwade@misterbanal.net> Date: Wed, 23 Dec 2020 15:03:26 +0100 Subject: [PATCH] New package: wtype-0.3 --- srcpkgs/wtype/patches/fix_reallocarray.patch | 39 ++++++++++++++++++++ srcpkgs/wtype/template | 17 +++++++++ 2 files changed, 56 insertions(+) create mode 100644 srcpkgs/wtype/patches/fix_reallocarray.patch create mode 100644 srcpkgs/wtype/template diff --git a/srcpkgs/wtype/patches/fix_reallocarray.patch b/srcpkgs/wtype/patches/fix_reallocarray.patch new file mode 100644 index 000000000000..30468f26135b --- /dev/null +++ b/srcpkgs/wtype/patches/fix_reallocarray.patch @@ -0,0 +1,39 @@ +From fb8cb526470308d36b28c33620fcb74916f952e8 Mon Sep 17 00:00:00 2001 +From: Josef Gajdusek <atx@atx.name> +Date: Mon, 28 Dec 2020 20:45:36 +0100 +Subject: [PATCH] Do not use reallocarray + +Not available in musl. + +Closes #20 + +Signed-off-by: Reed Wade <reedwade@misterbanal.net> +--- + main.c | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/main.c b/main.c +index cbdbb0f..cec1cc2 100644 +--- main.c ++++ main.c +@@ -1,6 +1,4 @@ + +-#define _GNU_SOURCE +- + #include <fcntl.h> + #include <locale.h> + #include <stdbool.h> +@@ -140,8 +138,8 @@ unsigned int get_key_code(struct wtype *wtype, wchar_t ch) + return i; + } + } +- wtype->keymap = reallocarray( +- wtype->keymap, ++wtype->keymap_len, sizeof(wtype->keymap[0]) ++ wtype->keymap = realloc( ++ wtype->keymap, ++wtype->keymap_len * sizeof(wtype->keymap[0]) + ); + wtype->keymap[wtype->keymap_len - 1] = ch; + return wtype->keymap_len - 1; +-- +2.29.2 + diff --git a/srcpkgs/wtype/template b/srcpkgs/wtype/template new file mode 100644 index 000000000000..962c7cf82bec --- /dev/null +++ b/srcpkgs/wtype/template @@ -0,0 +1,17 @@ +# Template file for 'wtype' +pkgname=wtype +version=0.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config wayland-devel" +makedepends="libxkbcommon-devel wayland-devel" +short_desc="Wayland version of xdotool" +maintainer="Stacy Harper <contact@stacyharper.net>" +license="MIT" +homepage="https://github.com/atx/wtype" +distfiles="https://github.com/atx/${pkgname}/archive/v${version}.tar.gz" +checksum=35615e61e57576a240d10308f9101ceb2ec7b3554fac60119b1416b84c1694b2 + +post_install() { + vlicense LICENSE +}
[-- Attachment #1: Type: text/plain, Size: 203 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-859768274 Comment: It doesn't work on wayfire, investigating who to blame for it.
[-- Attachment #1: Type: text/plain, Size: 158 bytes --] New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/27375#issuecomment-859798790 Comment: It works on sway.
[-- Attachment #1: Type: text/plain, Size: 156 bytes --] There's a merged pull request on the void-packages repository New package: wtype-0.3 https://github.com/void-linux/void-packages/pull/27375 Description: