diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-libs/startup-notification |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-libs/startup-notification')
5 files changed, 139 insertions, 0 deletions
diff --git a/x11-libs/startup-notification/Manifest b/x11-libs/startup-notification/Manifest new file mode 100644 index 000000000000..f72abd8f2818 --- /dev/null +++ b/x11-libs/startup-notification/Manifest @@ -0,0 +1,7 @@ +AUX startup-notification-0.12-sys-select_h.patch 928 SHA256 82cf80d37b25c4f2aefba9d2acd781e08f23c233d236f24680f80a63b5e40782 SHA512 5f89b2747a2e5d633229b2e858380919121bdfd8f5788898824115fe5c4f60ffb51d0303830b7896657a96f4c2468de0ada0a72782a48cb990d614a1805e91cd WHIRLPOOL 6f286f81670fe60c72f130ffefb1044998e5710027b2f5d9d4ad67eaf3df04b7056830f85c8da3dd61568653509356c31d1b3f75c33f6e9b23b34bc107f7b515 +AUX startup-notification-0.12-time_t-crash-with-32bit.patch 3377 SHA256 1e2054e5de412c377a985fada277814a15d494096605a6e574ba508f1e26e97f SHA512 b1bbef28012a08e265e19296f6f6b1adf4bf82efa2d585680f06a352258deee6f2d8b2f842a8f27febe78f23048afe5f39fe80bd555b826aec927d14a289928d WHIRLPOOL f81bc30c92cc8c2351c9ed0ae64f31b518f465fd454bd14a31e54a01f729dc21513381061849c71c614391ab25d36d8f1f4f94006b2891492f2f2c9ce1d6769b +DIST startup-notification-0.12.tar.gz 355285 SHA256 3c391f7e930c583095045cd2d10eb73a64f085c7fde9d260f2652c7cb3cfbe4a SHA512 ea1246acdb50dafd9ced9914ec3c8f0d499c0ca3cfd447b43a444c768a6e9ea7135e5c42d9ca0089354698ac235bd86d42f12c70a3a17c9c79f998c07461f7ab WHIRLPOOL 3ce5fa69c618785443837df43261a5ed7edb9f0b3c13bf19638b1b7db90814957780099014bd61af51562874dd2c1fafea9134fe0af11521dfbc864d1abc9b88 +EBUILD startup-notification-0.12-r1.ebuild 908 SHA256 ca3665e2f72b1fcdfc15a78ac6cb99ce5d499c2d36d01c2c1ec398a4a37fe150 SHA512 9dcfc75f4180849c5fbb7b37aa27948db995a164de9d99d4da2e2924f648b93b42358a7ff8c353056044c7ae2c20c21c6e8eb5daabe4530a7abf70ae6e8a6d37 WHIRLPOOL 00b02ddaf949b2bce9f7dfce64e9537d92ba3f01e82f192fea3f2d1a64d319d08a62d1d4f5bcb7ea714fc9e19980918c9a635f800493e952e10fb29233df10a5 +MISC ChangeLog 3650 SHA256 1fa88a4f3e828af9bb9baebf7aa465b69d81b2e2b4ec85dff060fab077eb208f SHA512 ce9f679069351d6c76a7b26dcd086349ff248cbfd798b6b5b5a866c6ccc9fe67686a0530be5d14c682f1edce66ee891cc18123f10756375d9d013824cd0cfdf9 WHIRLPOOL bb0d234c18638f5e11809c08be78ac1efc245a910b8e9d9cb2e9737e0f76d05c300f9885b996ee9307178ee9f5b9855e7884fd33829d5429077bc233293a90f3 +MISC ChangeLog-2015 11742 SHA256 bfb0a8eaf1d0e132490422b50c64001df4672832f91cc4627d6bec68de2bd90e SHA512 989d00436adef4423785089c794b525e502d2d058fb68a997aa0deca0c662c9738e9a8ad20e7592da9ff953f0f8323afee4fcdd411a0fc9778735da380fca0ae WHIRLPOOL 76b991357e1a8b0cf9ddab6c940eaac6e482ddf4f6addc1b39a5a341b73e97bb0e7dd984c3a73f5f9f2c9f6b5c06f78fb5f9f66b59e5b85e90278090728e4f02 +MISC metadata.xml 224 SHA256 154bec891472fe5526579d16d7e5e5e9eb3f352512a17555a459aa6029bcbbb2 SHA512 12da46d8052565f62c482e6bcc714d8c00cac256f85dc1602579c8d61e0b61af95da149d1a446e56b2eba918ab9d78b556f77c6fe034a2e578f57a9dbe62fc44 WHIRLPOOL 541aeaf2a7c858734aaae366846865ff70e6c898204bbfc9f39f58fbdb53d9b37dc8c898c23870859a9d4f5596e7898e21874c9ef529a447953a35e4d7bc13e5 diff --git a/x11-libs/startup-notification/files/startup-notification-0.12-sys-select_h.patch b/x11-libs/startup-notification/files/startup-notification-0.12-sys-select_h.patch new file mode 100644 index 000000000000..8c579a71522f --- /dev/null +++ b/x11-libs/startup-notification/files/startup-notification-0.12-sys-select_h.patch @@ -0,0 +1,30 @@ +From ea9f7e4cc6fd8c08d175ed7774ed2c5bd11c8ef0 Mon Sep 17 00:00:00 2001 +From: Colin Walters <walters@verbum.org> +Date: Mon, 17 Feb 2014 19:37:09 +0000 +Subject: Add include of <sys/select.h> for previous patch + +Unfortunately while the standard says that <sys/types.h> is the +correct header to get suseconds_t, at least with glibc, that requires +-DXOPEN_SOURCE. Which is problematic for a public header, because +then all *users* of startup-notification will be required to define +that. + +Poking around a bit, it looks like at least with glibc, <sys/select.h> +will give us an unconditional define. + +Signed-off-by: Julien Danjou <julien@danjou.info> +--- +diff --git a/libsn/sn-monitor.h b/libsn/sn-monitor.h +index 2f639df..cea4e12 100644 +--- a/libsn/sn-monitor.h ++++ b/libsn/sn-monitor.h +@@ -28,6 +28,7 @@ + #define __SN_MONITOR_H__ + + #include <libsn/sn-common.h> ++#include <sys/select.h> + + SN_BEGIN_DECLS + +-- +cgit v0.9.0.2-2-gbebe diff --git a/x11-libs/startup-notification/files/startup-notification-0.12-time_t-crash-with-32bit.patch b/x11-libs/startup-notification/files/startup-notification-0.12-time_t-crash-with-32bit.patch new file mode 100644 index 000000000000..710d29e93976 --- /dev/null +++ b/x11-libs/startup-notification/files/startup-notification-0.12-time_t-crash-with-32bit.patch @@ -0,0 +1,66 @@ +From a7e49fefde18ea8d5bada8096d32f23bcfb5a6dc Mon Sep 17 00:00:00 2001 +From: Federico G. Schwindt <fgsch@openbsd.org> +Date: Mon, 17 Feb 2014 14:48:12 +0000 +Subject: Fix crash on 32bit architectures where time_t is 64 bit + +This is an ABI change on platforms where sizeof(time_t) doesn't equal +sizeof(long). For most platforms this change shouldn't make a difference +at present. OpenBSD recently switched to 64bit time_t on all architectures +to avoid time_t overflow in 2038 on 32bit machines. + +This fix extends to consumers of startup-notification, for instance +the window manager of XFCE, which is how I got involved in this. +See http://mail.xfce.org/pipermail/xfce4-dev/2014-February/030611.html +and follow-ups. The XFCE devs pointed out that my patch to fix a +crash in XFCE's window manager depends on this startup-notification patch. + +Signed-off-by: Julien Danjou <julien@danjou.info> +--- +diff --git a/libsn/sn-monitor.c b/libsn/sn-monitor.c +index 2a9ad16..f419bc1 100644 +--- a/libsn/sn-monitor.c ++++ b/libsn/sn-monitor.c +@@ -364,8 +364,8 @@ sn_startup_sequence_get_screen (SnStartupSequence *sequence) + **/ + void + sn_startup_sequence_get_initiated_time (SnStartupSequence *sequence, +- long *tv_sec, +- long *tv_usec) ++ time_t *tv_sec, ++ suseconds_t *tv_usec) + { + if (tv_sec) + *tv_sec = sequence->initiation_time.tv_sec; +@@ -386,8 +386,8 @@ sn_startup_sequence_get_initiated_time (SnStartupSequence *sequence, + **/ + void + sn_startup_sequence_get_last_active_time (SnStartupSequence *sequence, +- long *tv_sec, +- long *tv_usec) ++ time_t *tv_sec, ++ suseconds_t *tv_usec) + { + /* for now the same as get_initiated_time */ + if (tv_sec) +diff --git a/libsn/sn-monitor.h b/libsn/sn-monitor.h +index b58581f..2f639df 100644 +--- a/libsn/sn-monitor.h ++++ b/libsn/sn-monitor.h +@@ -77,11 +77,11 @@ const char* sn_startup_sequence_get_application_id (SnStartupSequence *se + int sn_startup_sequence_get_screen (SnStartupSequence *sequence); + + void sn_startup_sequence_get_initiated_time (SnStartupSequence *sequence, +- long *tv_sec, +- long *tv_usec); ++ time_t *tv_sec, ++ suseconds_t *tv_usec); + void sn_startup_sequence_get_last_active_time (SnStartupSequence *sequence, +- long *tv_sec, +- long *tv_usec); ++ time_t *tv_sec, ++ suseconds_t *tv_usec); + + void sn_startup_sequence_complete (SnStartupSequence *sequence); + +-- +cgit v0.9.0.2-2-gbebe diff --git a/x11-libs/startup-notification/metadata.xml b/x11-libs/startup-notification/metadata.xml new file mode 100644 index 000000000000..fb76b944f2da --- /dev/null +++ b/x11-libs/startup-notification/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> +<email>freedesktop-bugs@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/x11-libs/startup-notification/startup-notification-0.12-r1.ebuild b/x11-libs/startup-notification/startup-notification-0.12-r1.ebuild new file mode 100644 index 000000000000..6467a3f570eb --- /dev/null +++ b/x11-libs/startup-notification/startup-notification-0.12-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils xorg-2 + +DESCRIPTION="Application startup notification and feedback library" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/startup-notification" +SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz" + +LICENSE="LGPL-2 MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND=">=x11-libs/libX11-1.4.3 + >x11-libs/libxcb-1.6 + >=x11-libs/xcb-util-0.3.8" +DEPEND="${RDEPEND} + x11-proto/xproto" + +DOCS=( AUTHORS ChangeLog NEWS doc/${PN}.txt ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-sys-select_h.patch \ + "${FILESDIR}"/${P}-time_t-crash-with-32bit.patch + elibtoolize +} |