diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-10-14 19:01:18 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-10-14 19:01:18 -0400 |
commit | 846cdbdbf965fc50478bcc4c6436e3dc6a489f3f (patch) | |
tree | 4a39385c982291a110f513871aba340f0a7a061e /net-misc/modem-manager-gui | |
download | ppo-846cdbdbf965fc50478bcc4c6436e3dc6a489f3f.tar.xz |
Initial commit.
Diffstat (limited to 'net-misc/modem-manager-gui')
-rw-r--r-- | net-misc/modem-manager-gui/Manifest | 3 | ||||
-rw-r--r-- | net-misc/modem-manager-gui/files/mm-strftime-null.patch | 52 | ||||
-rw-r--r-- | net-misc/modem-manager-gui/modem-manager-gui-0.0.19.1.ebuild | 24 |
3 files changed, 79 insertions, 0 deletions
diff --git a/net-misc/modem-manager-gui/Manifest b/net-misc/modem-manager-gui/Manifest new file mode 100644 index 0000000..93c35c2 --- /dev/null +++ b/net-misc/modem-manager-gui/Manifest @@ -0,0 +1,3 @@ +AUX mm-strftime-null.patch 1701 BLAKE2B c98d1e9d5d20a33f8f4c8f849242dadeeb74120039ede011feb01acbd0647540f1913c207b8758dea1b2aa866b8b3436b0432a98e6a4afa83acebaad3e6d9193 SHA512 fdb69213bef0fabdebf23a5d083ea1610b5836e396910ce3dc06eb9f37ac5c86bc887185b61c35b49d5edf551e5f0c6b5232949b4230350c84afff217f3bc060 +DIST modem-manager-gui-0.0.19.1.tar.gz 1055105 BLAKE2B 940633a933638361ce4630387af96180d7ac2b8a5e14ea352d96e6654d9ec374d91f6e86a510cb6fd146b72b3919cc5a9133cee2b42dc8b8e028259838270f05 SHA512 b369965c0f8c4804aed649ec2d449910324fd68979ad13fc1a16a58a2a61fb88795c5922ce725fb48b701ce5f5295f62e266bd049395ead5385dbc04c1636e19 +EBUILD modem-manager-gui-0.0.19.1.ebuild 504 BLAKE2B 16c690550853c4709c854c15022c865672df4ce61a3d93460ebbeb5ebfeb44bc820cb53add77f28ff56e3bed7dad880a2a54f0fd441e3c9c0864870be86f584f SHA512 4731e44baf284c070f25cd09aac2162ab5d25d86d0eb6979245203483299ae59c30dd4409b7c0b39274d55b63d2dd64a4c6e814d76171a68a4c68c77b173ed8c diff --git a/net-misc/modem-manager-gui/files/mm-strftime-null.patch b/net-misc/modem-manager-gui/files/mm-strftime-null.patch new file mode 100644 index 0000000..b73e028 --- /dev/null +++ b/net-misc/modem-manager-gui/files/mm-strftime-null.patch @@ -0,0 +1,52 @@ +# HG changeset patch +# User Alex <alex@linuxonly.ru> +# Date 1558782045 -10800 +# Node ID 83553d042443c71be71533b6b91ee10f228d935f +# Parent de113e8953ae708043823578b64882cfc5a45ca2 +Fix segfault in strftime_l() because of timestamps from future + +diff --git a/src/strformat.c b/src/strformat.c +--- a/src/strformat.c ++++ b/src/strformat.c +@@ -1,7 +1,7 @@ + /* + * strformat.c + * +- * Copyright 2013-2014 Alex <alex@linuxonly.ru> ++ * Copyright 2013-2019 Alex <alex@linuxonly.ru> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -182,18 +182,22 @@ + + memset(buffer, 0, bufsize); + +- if (delta <= 0.0) { +- if (strftime(buffer, bufsize, _("Today, %T"), ftime) == 0) { +- g_snprintf(buffer, bufsize, _("Unknown")); +- } +- } else if ((delta > 0.0) && (delta < 86400.0)) { +- if (strftime(buffer, bufsize, _("Yesterday, %T"), ftime) == 0) { +- g_snprintf(buffer, bufsize, _("Unknown")); ++ if (ftime != NULL) { ++ if (delta <= 0.0) { ++ if (strftime(buffer, bufsize, _("Today, %T"), ftime) == 0) { ++ g_snprintf(buffer, bufsize, _("Unknown")); ++ } ++ } else if ((delta > 0.0) && (delta < 86400.0)) { ++ if (strftime(buffer, bufsize, _("Yesterday, %T"), ftime) == 0) { ++ g_snprintf(buffer, bufsize, _("Unknown")); ++ } ++ } else { ++ if (strftime(buffer, bufsize, _("%d %B %Y, %T"), ftime) == 0) { ++ g_snprintf(buffer, bufsize, _("Unknown")); ++ } + } + } else { +- if (strftime(buffer, bufsize, _("%d %B %Y, %T"), ftime) == 0) { +- g_snprintf(buffer, bufsize, _("Unknown")); +- } ++ g_snprintf(buffer, bufsize, _("Unknown")); + } + + return buffer;
\ No newline at end of file diff --git a/net-misc/modem-manager-gui/modem-manager-gui-0.0.19.1.ebuild b/net-misc/modem-manager-gui/modem-manager-gui-0.0.19.1.ebuild new file mode 100644 index 0000000..bf04b6e --- /dev/null +++ b/net-misc/modem-manager-gui/modem-manager-gui-0.0.19.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=7 + +DESCRIPTION="GUI for Modem Manager daemon." +HOMEPAGE="http://linuxonly.ru/" +SRC_URI="http://download.tuxfamily.org/gsf/source/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +PATCHES=( + "${FILESDIR}/mm-strftime-null.patch" +) + +DEPEND=">=x11-libs/gtk+-3.4.0 + app-text/po4a + dev-util/itstool + app-text/gtkspell:3 + x11-libs/libnotify" +RDEPEND="${DEPEND}" |