* [gentoo-commits] repo/gentoo:master commit in: dev-libs/sway/files/, dev-libs/sway/
@ 2017-05-11 18:29 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2017-05-11 18:29 UTC (permalink / raw
To: gentoo-commits
commit: 0ef88e24df5950d1fcdd46c9d78f0a292a555dd8
Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com>
AuthorDate: Tue May 9 08:44:01 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 11 18:22:50 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef88e24
dev-libs/sway: drop old 0.11-r3
Closes: https://github.com/gentoo/gentoo/pull/4584
dev-libs/sway/Manifest | 1 -
dev-libs/sway/files/sway-0.11-r3-keep-cap.patch | 84 -------------------------
dev-libs/sway/sway-0.11-r3.ebuild | 77 -----------------------
3 files changed, 162 deletions(-)
diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest
index 5bdb07101e0..17baa3df35b 100644
--- a/dev-libs/sway/Manifest
+++ b/dev-libs/sway/Manifest
@@ -1,3 +1,2 @@
-DIST sway-0.11.tar.gz 11027681 SHA256 3d4d18afc849db8704d8da9cb69eb121ea92b27d7fa556acdcc6708f05c84964 SHA512 4cd69c83a0c8815ddc1663b4cd4b69c8d99d6d9d2a030e575c544836e3dfba445bc6407f7eaf97c0d7fdefd62e3ceed4206195ad91701f840ec8686f3b75989c WHIRLPOOL 72b663418c848c4a989d3d277761399dfdca046ebeac972e523b7fe78caee030bf4bbb9e3dd068b712f1a931feedbd214005989aa5fd5b6f877e42fe1f9d0873
DIST sway-0.12.2.tar.gz 5348464 SHA256 134387d4da1b912f31c0b23f75722d3896cd2560ef5a37775f75e7057cd4a010 SHA512 dee93cc8e42e00589529ae413206593f2b1c67076aa6a27980f65ee7ad86ca80684e3cbbdad8c1cbd0741af7235364453257b855a5c722fc80fbad32a37dc4d4 WHIRLPOOL b104dd9eef80b3a836ae93232bf785da66409286ff09831c0f01207a47cbc6bb32fab02b876bc2f1e8cc91f7205879eaf6059355922d83fe697eab4da4d1cbc3
DIST sway-0.13.0.tar.gz 5355130 SHA256 56a20c9d28d92777bf99381edd09078f72bf39b8ac586242950d514456a77f7d SHA512 7f137e103bb278777ee3e36b40446156ee02bfbba3ce099b23b093751832a67155cd9519f7583364608d584d2d7c9206a8945f2114ae58220b47bd0f1ff362e8 WHIRLPOOL bff2fd4550334625533984c3bfaa1b479609b7b62cd62935fc5e96eae4a518242d69f553775f44368b76c87ed64fcd6011df785339bd71fb62e09eb426948b1f
diff --git a/dev-libs/sway/files/sway-0.11-r3-keep-cap.patch b/dev-libs/sway/files/sway-0.11-r3-keep-cap.patch
deleted file mode 100644
index da821e365be..00000000000
--- a/dev-libs/sway/files/sway-0.11-r3-keep-cap.patch
+++ /dev/null
@@ -1,84 +0,0 @@
-From ea1313d80d5ee1623b00c8cdf6e7ff8a7e14c2ae Mon Sep 17 00:00:00 2001
-From: Mykyta Holubakha <hilobakho@gmail.com>
-Date: Thu, 12 Jan 2017 04:25:03 +0200
-Subject: [PATCH 1/2] Keep CAP_SYS_PTRACE with suid binary
-
----
- sway/main.c | 28 ++++++++++++++++++++++++++++
- 1 file changed, 28 insertions(+)
-
-diff --git a/sway/main.c b/sway/main.c
-index e8a02e7..6c74aab 100644
---- a/sway/main.c
-+++ b/sway/main.c
-@@ -10,6 +10,9 @@
- #include <unistd.h>
- #include <getopt.h>
- #include <sys/capability.h>
-+#ifdef __linux__
-+#include <sys/prctl.h>
-+#endif
- #include "sway/extensions.h"
- #include "sway/layout.h"
- #include "sway/config.h"
-@@ -289,6 +292,18 @@ int main(int argc, char **argv) {
- return 0;
- }
-
-+#ifdef __linux__
-+ bool suid = false;
-+ if (getuid() != geteuid() || getgid() != getegid()) {
-+ // Retain capabilities after setuid()
-+ if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0)) {
-+ sway_log(L_ERROR, "Cannot keep caps after setuid()");
-+ exit(EXIT_FAILURE);
-+ }
-+ suid = true;
-+ }
-+#endif
-+
- // we need to setup logging before wlc_init in case it fails.
- if (debug) {
- init_log(L_DEBUG);
-@@ -311,6 +326,19 @@ int main(int argc, char **argv) {
- }
- register_extensions();
-
-+#ifdef __linux__
-+ if (suid) {
-+ // Drop every cap except CAP_SYS_PTRACE
-+ cap_t caps = cap_init();
-+ cap_value_t keep = CAP_SYS_PTRACE;
-+ if (cap_set_flag(caps, CAP_PERMITTED, 1, &keep, CAP_SET) ||
-+ cap_set_flag(caps, CAP_EFFECTIVE, 1, &keep, CAP_SET) ||
-+ cap_set_proc(caps)) {
-+ sway_log(L_ERROR, "Failed to drop extra capabilities");
-+ exit(EXIT_FAILURE);
-+ }
-+ }
-+#endif
- // handle SIGTERM signals
- signal(SIGTERM, sig_handler);
-
-
-From d9ba61d7e91c5aceef1a6a736dc65f0594b9be2a Mon Sep 17 00:00:00 2001
-From: Mykyta Holubakha <hilobakho@gmail.com>
-Date: Thu, 12 Jan 2017 04:35:09 +0200
-Subject: [PATCH 2/2] Log capability dropping
-
----
- sway/main.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/sway/main.c b/sway/main.c
-index 6c74aab..7bf71b5 100644
---- a/sway/main.c
-+++ b/sway/main.c
-@@ -331,6 +331,7 @@ int main(int argc, char **argv) {
- // Drop every cap except CAP_SYS_PTRACE
- cap_t caps = cap_init();
- cap_value_t keep = CAP_SYS_PTRACE;
-+ sway_log(L_INFO, "Dropping extra capabilities");
- if (cap_set_flag(caps, CAP_PERMITTED, 1, &keep, CAP_SET) ||
- cap_set_flag(caps, CAP_EFFECTIVE, 1, &keep, CAP_SET) ||
- cap_set_proc(caps)) {
diff --git a/dev-libs/sway/sway-0.11-r3.ebuild b/dev-libs/sway/sway-0.11-r3.ebuild
deleted file mode 100644
index aa56d8f76ba..00000000000
--- a/dev-libs/sway/sway-0.11-r3.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils cmake-utils
-
-DESCRIPTION="i3-compatible Wayland window manager"
-HOMEPAGE="http://swaywm.org/"
-
-SRC_URI="https://github.com/SirCmpwn/sway/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd"
-
-RDEPEND=">=dev-libs/wlc-0.0.5[systemd=]
- dev-libs/json-c
- dev-libs/libpcre
- dev-libs/libinput
- x11-libs/libxkbcommon
- dev-libs/wayland
- sys-libs/libcap
- x11-libs/pango
- x11-libs/cairo
- swaylock? ( virtual/pam )
- gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )"
-
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- app-text/asciidoc"
-
-PATCHES=( "${FILESDIR}/sway-0.11-r3-keep-cap.patch" )
-
-src_prepare() {
- cmake-utils_src_prepare
-
- # remove bad CFLAGS that upstream is trying to add
- sed -i -e '/FLAGS.*-Werror/d' CMakeLists.txt || die
-}
-
-src_configure() {
- local mycmakeargs=(
- -Denable-swaybar=$(usex swaybar)
- -Denable-swaybg=$(usex swaybg)
- -Denable-swaygrab=$(usex swaygrab)
- -Denable-swaylock=$(usex swaylock)
- -Denable-swaymsg=$(usex swaymsg)
-
- -Ddefault-wallpaper=$(usex wallpapers)
-
- -Denable-gdk-pixbuf=$(usex gdk-pixbuf)
- -Dzsh-completions=$(usex zsh-completion)
-
- -DCMAKE_INSTALL_SYSCONFDIR="/etc"
- -DLD_LIBRARY_PATH="${EPREFIX}/usr/lib"
- -DGIT_COMMIT_HASH="${PVR}" # specify version info, may change in future
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use !systemd && fperms u+s /usr/bin/sway
-}
-
-pkg_postinst() {
- if use swaygrab
- then
- optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]
- optfeature "swaygrab video capture support" virtual/ffmpeg
- fi
- optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland]
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/sway/files/, dev-libs/sway/
@ 2018-01-13 22:17 David Seifert
0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2018-01-13 22:17 UTC (permalink / raw
To: gentoo-commits
commit: 0b69eee346a21685dde60299500df528ffc2ffc4
Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com>
AuthorDate: Thu Dec 28 17:39:59 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jan 13 22:17:12 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b69eee3
dev-libs/sway: drop old 0.14.0 & 0.15.0
remove unused patch
dev-libs/sway/Manifest | 2 -
dev-libs/sway/files/sway-0.15.0-json-c-fixes.patch | 370 ---------------------
dev-libs/sway/sway-0.14.0.ebuild | 84 -----
dev-libs/sway/sway-0.15.0.ebuild | 86 -----
dev-libs/sway/sway-9999.ebuild | 16 +-
5 files changed, 8 insertions(+), 550 deletions(-)
diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest
index c1c09b65ea1..7d5ca1734a5 100644
--- a/dev-libs/sway/Manifest
+++ b/dev-libs/sway/Manifest
@@ -1,3 +1 @@
-DIST sway-0.14.0.tar.gz 5376243 BLAKE2B 9990db2d0a17831ac55669236533737a3422a8cb8faa338acae3e897586e410bb95f83f395462332889886be148d0151cad5465bce7786bc8e1a1aa3ceba721c SHA512 2c2e45ddc935504bd240288386662d05f284eb0d540e05b6e56ca577e9b1f2303929b9659eaa3cb99b8cdadb60bd1bfa4104624bf2574e41365e1b3df5361410
-DIST sway-0.15.0.tar.gz 5394917 BLAKE2B 40b12e4c276bda3f6364f1a8d9f55604535632ce0186c0706ff6020bc6ff1b8f5b4b560ae52d281f5cc549547c7f1455bcf30e9b854db26b231e68e648819905 SHA512 2ac448f16cae83563b4ed7039b355c238cdf45bf16af58002c56781fbbac640a5b61b2fd05eb8bcfea5cc06a65707a48e093a68e80be44c14cf1d5d0a9410331
DIST sway-0.15.1.tar.gz 5395223 BLAKE2B b5803f6858f2fa9e70fef75f888970c05cf0ccb4f69ea520ec5121b683780d9ad7bd182ae9d1d4f53612e71a70c594e063a5adf94246318cefce67576e202253 SHA512 5a972fb58ab7f352f206694299832f7bcbeb053419ac47504041dccbbb55433a8de8ec06e3fa38aab259694f1a2042d2a2f920db16cb32dfcc1ac5344017de09
diff --git a/dev-libs/sway/files/sway-0.15.0-json-c-fixes.patch b/dev-libs/sway/files/sway-0.15.0-json-c-fixes.patch
deleted file mode 100644
index 1e43eda62e8..00000000000
--- a/dev-libs/sway/files/sway-0.15.0-json-c-fixes.patch
+++ /dev/null
@@ -1,370 +0,0 @@
-From c6e12368a531dd4bbb0778c9a1dd5d3fb935c197 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
-Date: Thu, 14 Dec 2017 01:30:54 +0100
-Subject: [PATCH 1/3] Lift restriction on json-c <= 0.12.1
-
----
- CMakeLists.txt | 2 +-
- README.de.md | 2 +-
- README.el.md | 2 +-
- README.fr.md | 2 +-
- README.it.md | 2 +-
- README.ja.md | 2 +-
- README.md | 2 +-
- README.pt.md | 2 +-
- README.ru.md | 2 +-
- README.uk.md | 2 +-
- 10 files changed, 10 insertions(+), 10 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index dc521570..bd12b191 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -59,7 +59,7 @@ if (LD_LIBRARY_PATH)
- add_definitions(-D_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}")
- endif()
-
--find_package(JsonC 0.12.1 REQUIRED)
-+find_package(JsonC REQUIRED)
- find_package(PCRE REQUIRED)
- find_package(WLC REQUIRED)
- find_package(Wayland REQUIRED)
-diff --git a/README.de.md b/README.de.md
-index 701cc34f..293ffe70 100644
---- a/README.de.md
-+++ b/README.de.md
-@@ -60,7 +60,7 @@ Abhängigkeiten:
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.el.md b/README.el.md
-index df39364f..eba97b9c 100644
---- a/README.el.md
-+++ b/README.el.md
-@@ -53,7 +53,7 @@ To username μου στο Freenode είναι kon14 και θα με βρείτ
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.fr.md b/README.fr.md
-index 47b6c410..a4ff7cb9 100644
---- a/README.fr.md
-+++ b/README.fr.md
-@@ -55,7 +55,7 @@ Installez les dépendances :
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.it.md b/README.it.md
-index f5e0d8e2..ded441c3 100644
---- a/README.it.md
-+++ b/README.it.md
-@@ -56,7 +56,7 @@ Installa queste dipendenze:
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.ja.md b/README.ja.md
-index 2e8f9bfb..94b4ce9d 100644
---- a/README.ja.md
-+++ b/README.ja.md
-@@ -46,7 +46,7 @@ Swayは沢山のディストリビューションで提供されています。"
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.md b/README.md
-index 29e8a674..eeca9f88 100644
---- a/README.md
-+++ b/README.md
-@@ -61,7 +61,7 @@ Install dependencies:
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.pt.md b/README.pt.md
-index b5ca132f..e35849ec 100644
---- a/README.pt.md
-+++ b/README.pt.md
-@@ -62,7 +62,7 @@ Antes de iniciar a compilação, instale as dependências:
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.ru.md b/README.ru.md
-index 4035b0fc..1551caa0 100644
---- a/README.ru.md
-+++ b/README.ru.md
-@@ -55,7 +55,7 @@ Sway доступен во многих дистрибутивах и наход
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-diff --git a/README.uk.md b/README.uk.md
-index 2e107afc..c8520e4b 100644
---- a/README.uk.md
-+++ b/README.uk.md
-@@ -62,7 +62,7 @@ Sway доступний у багатьох дистрибутивах Linux (а
- * libcap
- * asciidoc
- * pcre
--* json-c <= 0.12.1
-+* json-c
- * pango
- * cairo
- * gdk-pixbuf2 *
-
-From 8272a9bae0d288b479c517dde3e831ea3889dc7f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
-Date: Thu, 14 Dec 2017 16:44:18 +0100
-Subject: [PATCH 2/3] ipc-server: Acquire ownership of referenced json_object
- properly
-
-When adding a referenced json_object with an unknown lifetime to
-another json_object, it must be done with a wrapped call to
-json_object_get() to acquire the ownership of that json_object.
----
- sway/ipc-server.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/sway/ipc-server.c b/sway/ipc-server.c
-index b560b930..80f4e5d0 100644
---- a/sway/ipc-server.c
-+++ b/sway/ipc-server.c
-@@ -1126,7 +1126,8 @@ static void ipc_event_binding(json_object *sb_obj) {
- sway_log(L_DEBUG, "Sending binding::run event");
- json_object *obj = json_object_new_object();
- json_object_object_add(obj, "change", json_object_new_string("run"));
-- json_object_object_add(obj, "binding", sb_obj);
-+ // sb_obj gets owned by the temporary json_object, too.
-+ json_object_object_add(obj, "binding", json_object_get(sb_obj));
-
- const char *json_string = json_object_to_json_string(obj);
- ipc_send_event(json_string, IPC_EVENT_BINDING);
-
-From 02da9c4e7cafb36083566e511cc7913d8922aaa6 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
-Date: Thu, 14 Dec 2017 17:14:47 +0100
-Subject: [PATCH 3/3] Adaptions for API change in json-c v0.13
-
----
- include/sway_json_helper.h | 16 ++++++++++++++++
- include/swaygrab/json.h | 2 +-
- sway/ipc-server.c | 4 ++--
- swaybar/status_line.c | 5 ++---
- swaygrab/json.c | 9 ++++-----
- swaylock/main.c | 4 ++--
- swaymsg/main.c | 4 ++--
- 7 files changed, 29 insertions(+), 15 deletions(-)
- create mode 100644 include/sway_json_helper.h
-
-diff --git a/include/sway_json_helper.h b/include/sway_json_helper.h
-new file mode 100644
-index 00000000..66f9cff1
---- /dev/null
-+++ b/include/sway_json_helper.h
-@@ -0,0 +1,16 @@
-+#ifndef _SWAY_JSON_HELPER_H
-+#define _SWAY_JSON_HELPER_H
-+
-+#include <json-c/json.h>
-+
-+// Macros for checking a specific version.
-+#define JSON_C_VERSION_013 (13 << 8)
-+
-+// json-c v0.13 uses size_t for array_list_length().
-+#if defined(JSON_C_VERSION_NUM) && JSON_C_VERSION_NUM >= JSON_C_VERSION_013
-+typedef size_t json_ar_len_t;
-+#else
-+typedef int json_ar_len_t;
-+#endif
-+
-+#endif // _SWAY_JSON_HELPER_H
-diff --git a/include/swaygrab/json.h b/include/swaygrab/json.h
-index c1093ef1..c0bd8587 100644
---- a/include/swaygrab/json.h
-+++ b/include/swaygrab/json.h
-@@ -1,4 +1,4 @@
--#include <json-c/json.h>
-+#include "sway_json_helper.h"
- #include "wlc/wlc.h"
-
- void init_json_tree(int socketfd);
-diff --git a/sway/ipc-server.c b/sway/ipc-server.c
-index 80f4e5d0..e10445cf 100644
---- a/sway/ipc-server.c
-+++ b/sway/ipc-server.c
-@@ -15,7 +15,6 @@
- #include <stdlib.h>
- #include <sys/ioctl.h>
- #include <fcntl.h>
--#include <json-c/json.h>
- #include <list.h>
- #include <libinput.h>
- #ifdef __linux__
-@@ -25,6 +24,7 @@ struct ucred {
- gid_t gid;
- };
- #endif
-+#include "sway_json_helper.h"
- #include "sway/ipc-json.h"
- #include "sway/ipc-server.h"
- #include "sway/security.h"
-@@ -724,7 +724,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
- }
-
- // parse requested event types
-- for (int i = 0; i < json_object_array_length(request); i++) {
-+ for (json_ar_len_t i = 0; i < json_object_array_length(request); i++) {
- const char *event_type = json_object_get_string(json_object_array_get_idx(request, i));
- if (strcmp(event_type, "workspace") == 0) {
- client->subscribed_events |= event_mask(IPC_EVENT_WORKSPACE);
-diff --git a/swaybar/status_line.c b/swaybar/status_line.c
-index 87e90caf..e3cc0bf4 100644
---- a/swaybar/status_line.c
-+++ b/swaybar/status_line.c
-@@ -2,8 +2,8 @@
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
--#include <json-c/json.h>
-
-+#include "sway_json_helper.h"
- #include "swaybar/config.h"
- #include "swaybar/status_line.h"
- #include "log.h"
-@@ -70,8 +70,7 @@ static void parse_json(struct bar *bar, const char *text) {
-
- bar->status->block_line = create_list();
-
-- int i;
-- for (i = 0; i < json_object_array_length(results); ++i) {
-+ for (json_ar_len_t i = 0; i < json_object_array_length(results); ++i) {
- json_object *full_text, *short_text, *color, *min_width, *align, *urgent;
- json_object *name, *instance, *separator, *separator_block_width;
- json_object *background, *border, *border_top, *border_bottom;
-diff --git a/swaygrab/json.c b/swaygrab/json.c
-index 286085c3..f0e8fa90 100644
---- a/swaygrab/json.c
-+++ b/swaygrab/json.c
-@@ -50,8 +50,7 @@ static json_object *get_focused_container_r(json_object *c) {
- } else {
- json_object *nodes, *node, *child;
- json_object_object_get_ex(c, "nodes", &nodes);
-- int i;
-- for (i = 0; i < json_object_array_length(nodes); i++) {
-+ for (json_ar_len_t i = 0; i < json_object_array_length(nodes); i++) {
- node = json_object_array_get_idx(nodes, i);
-
- if ((child = get_focused_container_r(node))) {
-@@ -60,7 +59,7 @@ static json_object *get_focused_container_r(json_object *c) {
- }
-
- json_object_object_get_ex(c, "floating_nodes", &nodes);
-- for (i = 0; i < json_object_array_length(nodes); i++) {
-+ for (json_ar_len_t i = 0; i < json_object_array_length(nodes); i++) {
- node = json_object_array_get_idx(nodes, i);
-
- if ((child = get_focused_container_r(node))) {
-@@ -83,7 +82,7 @@ char *get_focused_output() {
- if (!outputs) {
- sway_abort("Unabled to get focused output. No nodes in tree.");
- }
-- for (int i = 0; i < json_object_array_length(outputs); i++) {
-+ for (json_ar_len_t i = 0; i < json_object_array_length(outputs); i++) {
- output = json_object_array_get_idx(outputs, i);
-
- if (get_focused_container_r(output)) {
-@@ -131,7 +130,7 @@ json_object *get_output_container(const char *output) {
- json_object *outputs, *json_output, *name;
- json_object_object_get_ex(tree, "nodes", &outputs);
-
-- for (int i = 0; i < json_object_array_length(outputs); i++) {
-+ for (json_ar_len_t i = 0; i < json_object_array_length(outputs); i++) {
- json_output = json_object_array_get_idx(outputs, i);
- json_object_object_get_ex(json_output, "name", &name);
-
-diff --git a/swaylock/main.c b/swaylock/main.c
-index c2615951..7b7dd601 100644
---- a/swaylock/main.c
-+++ b/swaylock/main.c
-@@ -3,7 +3,6 @@
- #include <xkbcommon/xkbcommon.h>
- #include <xkbcommon/xkbcommon-names.h>
- #include <security/pam_appl.h>
--#include <json-c/json.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-@@ -13,6 +12,7 @@
- #include <signal.h>
- #include <stdbool.h>
- #include <unistd.h>
-+#include "sway_json_helper.h"
- #include "client/window.h"
- #include "client/registry.h"
- #include "client/cairo.h"
-@@ -584,7 +584,7 @@ int main(int argc, char **argv) {
-
- for (i = 0; i < registry->outputs->length; ++i) {
- if (displays_paths[i * 2] != NULL) {
-- for (int j = 0;; ++j) {
-+ for (json_ar_len_t j = 0;; ++j) {
- if (j >= json_object_array_length(json_outputs)) {
- sway_log(L_ERROR, "%s is not an extant output", displays_paths[i * 2]);
- exit(EXIT_FAILURE);
-diff --git a/swaymsg/main.c b/swaymsg/main.c
-index 2f9cfb14..0ee7c76f 100644
---- a/swaymsg/main.c
-+++ b/swaymsg/main.c
-@@ -9,7 +9,7 @@
- #include <sys/socket.h>
- #include <ctype.h>
- #include <unistd.h>
--#include <json-c/json.h>
-+#include "sway_json_helper.h"
- #include "stringop.h"
- #include "ipc-client.h"
- #include "readline.h"
-@@ -149,7 +149,7 @@ static void pretty_print_version(json_object *v) {
- static void pretty_print_clipboard(json_object *v) {
- if (success(v, true)) {
- if (json_object_is_type(v, json_type_array)) {
-- for (int i = 0; i < json_object_array_length(v); ++i) {
-+ for (json_ar_len_t i = 0; i < json_object_array_length(v); ++i) {
- json_object *o = json_object_array_get_idx(v, i);
- printf("%s\n", json_object_get_string(o));
- }
diff --git a/dev-libs/sway/sway-0.14.0.ebuild b/dev-libs/sway/sway-0.14.0.ebuild
deleted file mode 100644
index 4f0d30aa0e1..00000000000
--- a/dev-libs/sway/sway-0.14.0.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils cmake-utils
-
-DESCRIPTION="i3-compatible Wayland window manager"
-HOMEPAGE="http://swaywm.org/"
-
-SRC_URI="https://github.com/swaywm/sway/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd +tray"
-
-REQUIRED_USE="tray? ( swaybar )"
-
-RDEPEND=">=dev-libs/wlc-0.0.8[systemd=]
- dev-libs/json-c:=
- dev-libs/libpcre
- dev-libs/libinput
- x11-libs/libxkbcommon
- dev-libs/wayland
- sys-libs/libcap
- x11-libs/pango
- x11-libs/cairo
- swaylock? ( virtual/pam )
- tray? ( sys-apps/dbus )
- gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )"
-
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- app-text/asciidoc"
-
-src_prepare() {
- cmake-utils_src_prepare
-
- # remove bad CFLAGS that upstream is trying to add
- sed -i -e '/FLAGS.*-Werror/d' CMakeLists.txt || die
-}
-
-src_configure() {
- local mycmakeargs=(
- -Denable-swaybar=$(usex swaybar)
- -Denable-swaybg=$(usex swaybg)
- -Denable-swaygrab=$(usex swaygrab)
- -Denable-swaylock=$(usex swaylock)
- -Denable-swaymsg=$(usex swaymsg)
- -Denable-tray=$(usex tray)
-
- -Ddefault-wallpaper=$(usex wallpapers)
-
- -Denable-gdk-pixbuf=$(usex gdk-pixbuf)
- -Dzsh-completions=$(usex zsh-completion)
-
- -DCMAKE_INSTALL_SYSCONFDIR="/etc"
- -DVERSION="${PV}"
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use !systemd && fperms u+s /usr/bin/sway
-}
-
-pkg_postinst() {
- if use swaygrab
- then
- optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]
- optfeature "swaygrab video capture support" virtual/ffmpeg
- fi
- if use tray
- then
- optfeature "experimental xembed tray icons support" \
- x11-misc/xembedsniproxy
- fi
-
- optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland]
-}
diff --git a/dev-libs/sway/sway-0.15.0.ebuild b/dev-libs/sway/sway-0.15.0.ebuild
deleted file mode 100644
index 4763bcbcc74..00000000000
--- a/dev-libs/sway/sway-0.15.0.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils cmake-utils
-
-DESCRIPTION="i3-compatible Wayland window manager"
-HOMEPAGE="http://swaywm.org/"
-
-SRC_URI="https://github.com/swaywm/sway/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd +tray"
-
-REQUIRED_USE="tray? ( swaybar )"
-
-RDEPEND=">=dev-libs/wlc-0.0.8[systemd=]
- >=dev-libs/json-c-0.12.1:=
- dev-libs/libpcre
- dev-libs/libinput
- x11-libs/libxkbcommon
- dev-libs/wayland
- sys-libs/libcap
- x11-libs/pango
- x11-libs/cairo
- swaylock? ( virtual/pam )
- tray? ( sys-apps/dbus )
- gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )"
-
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- app-text/asciidoc"
-
-PATCHES=( "${FILESDIR}/sway-0.15.0-json-c-fixes.patch" )
-
-src_prepare() {
- cmake-utils_src_prepare
-
- # remove bad CFLAGS that upstream is trying to add
- sed -i -e '/add_compile_options/s/-Werror//' CMakeLists.txt || die
-}
-
-src_configure() {
- local mycmakeargs=(
- -Denable-swaybar=$(usex swaybar)
- -Denable-swaybg=$(usex swaybg)
- -Denable-swaygrab=$(usex swaygrab)
- -Denable-swaylock=$(usex swaylock)
- -Denable-swaymsg=$(usex swaymsg)
- -Denable-tray=$(usex tray)
-
- -Ddefault-wallpaper=$(usex wallpapers)
-
- -Denable-gdk-pixbuf=$(usex gdk-pixbuf)
- -Dzsh-completions=$(usex zsh-completion)
-
- -DCMAKE_INSTALL_SYSCONFDIR="/etc"
- -DVERSION="${PV}"
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use !systemd && fperms u+s /usr/bin/sway
-}
-
-pkg_postinst() {
- if use swaygrab
- then
- optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]
- optfeature "swaygrab video capture support" virtual/ffmpeg
- fi
- if use tray
- then
- optfeature "experimental xembed tray icons support" \
- x11-misc/xembedsniproxy
- fi
-
- optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland]
-}
diff --git a/dev-libs/sway/sway-9999.ebuild b/dev-libs/sway/sway-9999.ebuild
index f8e98c01462..da318f9247b 100644
--- a/dev-libs/sway/sway-9999.ebuild
+++ b/dev-libs/sway/sway-9999.ebuild
@@ -14,26 +14,26 @@ EGIT_BRANCH="0.15"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd +tray"
+IUSE="+gdk-pixbuf +swaybar +swaybg swaygrab swaylock +swaymsg systemd +tray wallpapers zsh-completion"
REQUIRED_USE="tray? ( swaybar )"
RDEPEND="=dev-libs/wlc-9999[systemd=]
- >=dev-libs/json-c-0.12.1:=
+ dev-libs/json-c:0=
dev-libs/libpcre
dev-libs/libinput
- x11-libs/libxkbcommon
dev-libs/wayland
sys-libs/libcap
- x11-libs/pango
+ x11-libs/libxkbcommon
x11-libs/cairo
+ x11-libs/pango
+ gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )
swaylock? ( virtual/pam )
- tray? ( sys-apps/dbus )
- gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )"
+ tray? ( sys-apps/dbus )"
DEPEND="${RDEPEND}
- virtual/pkgconfig
- app-text/asciidoc"
+ app-text/asciidoc
+ virtual/pkgconfig"
src_prepare() {
cmake-utils_src_prepare
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-13 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 18:29 [gentoo-commits] repo/gentoo:master commit in: dev-libs/sway/files/, dev-libs/sway/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2018-01-13 22:17 David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox