Commit Graph

102 Commits

Author SHA1 Message Date
Michal Sekletar
b7cac80ef4 Add git to BuildRequires
We now apply patches via %autosetup -S git_am and for that we need git
in build root.
2017-03-01 09:35:54 +01:00
Michal Sekletar
9dd4325251 Add patch
This patch was supposed to be part of b6d49d3b07
2017-03-01 09:30:30 +01:00
Michal Sekletar
45bb13db2d Inform user about the problem with running GUI apps under root on Wayland 2017-02-28 17:21:27 +01:00
Michal Sekletar
12ffba0a7f Make shell parent of pkexec
In case when mtr-gtk is started from gnome-shell we need to make sure
that parent process of pkexec is not systemd. This is because pkexec
exits with error if it detects that its parent is PID 1 [1].

Execing pkexec was fine before F22, because previously gnome-shell was
reaping processes it spawned. Since F22 gnome-shell doesn't do that and
it calls g_spawn_async w/o G_SPAWN_DO_NOT_REAP_CHILD flag in which case
glib really doesn't bother with reaping child processes properly and
instead it does double fork(). Intermediate child process goes away and
grand-child is then reparented to PID 1 that will reap it. [2]

[1] https://cgit.freedesktop.org/polkit/commit/src/programs/pkexec.c?id=3b12cfac29dddd27f1f166a7574d8374cc1dccf2
[2] https://git.gnome.org/browse/gnome-shell/commit/?id=01c6392c1373cf23786a0dad1b670a511107349c
2017-02-28 16:43:15 +01:00
Michal Sekletar
b6d49d3b07 Rebase to latest upstream
Resolves: #1365128
2017-02-28 14:20:12 +01:00
Fedora Release Engineering
c8cad21c32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 21:50:36 +00:00
Michal Sekletar
5dcbf9f493 Rebase to 0.86 2016-05-13 23:35:24 +02:00
Fedora Release Engineering
b4b29cdfb8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 08:52:58 +00:00
Dennis Gilmore
fdf1e90390 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 21:12:52 +00:00
Peter Robinson
517130c4dc - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 10:41:52 +00:00
Dennis Gilmore
b541ef7ff4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 06:29:19 -05:00
Michal Sekletar
669b407bfd spec: rebuild using upstream tarball
We don't need generate-tarball.sh since upstream regenerated tarball with
sources and it no longer includes binary blobs.

Resolves: #1020926
2013-10-18 16:15:33 +02:00
Michal Sekletar
0508ff85b2 Drop unneeded files from repository 2013-10-18 16:06:30 +02:00
Michal Sekletar
67180eddca sources: regenerate sources 2013-10-08 14:20:11 +02:00
Michal Sekletar
8167f0d6bd spec: change release to 0.85-3
There is no need to bump spec twice since 0.85-3 was never released.
2013-10-08 12:36:18 +02:00
Michal Sekletar
6960a3bb59 doc: add missing documentation
Resolves: #1015552
2013-10-04 15:59:46 +02:00
Michal Sekletar
70f281edd0 dns: iterate over all configured nameservers
Previously if there were three nameservers configured and third one was
reachable via IPv6 we didn't sent query to it, since NSCOUNT6 was equal to
one. Clearly it was the original intention to sent query to all IPv6
nameservers.

Reported-by: Benedikt Gollatz <benedikt@gollatz.net>

Resolves: #966174
2013-10-01 16:24:39 +02:00
Michal Sekletar
2e311d4e97 core: introduce grace period
In report mode we break out from select loop immediately after we reach
maximum count of iterations. But we should wait for packets which are still on
the way.

In order to fix the issue we introduce grace period during which we don't send
out more packets but we just wait for responses which might be still on the way.

Resolves: #1009051
2013-10-01 16:24:39 +02:00
Michal Sekletar
7482711a66 mtr-gtk: migrate from consolehelper to polkit
Previously we used consolehelper in order to authenticate user who wants to run
mtr-gtk. In Fedora we have newer framework providing access control for
privileged operations, policykit.

This commit replaces consolehelper configuration and provides policy file for
policykit and shell wrapper which runs mtr via pkexec. Note that this is not ideal and
we haven't gained a lot by this.

In the long run we should really decouple gtk frontend and mtr backend. Backend
then would have CAP_NET_RAW capability encoded in filesystem and as soon as
possible it would drop that capability and start providing data to be rendered
by gtk frontend which would run completely unprivileged.

http://fedoraproject.org/wiki/Features/UsermodeMigration

Resolves: #502750
2013-10-01 16:24:20 +02:00
Michal Sekletar
be24752376 spec: enable hardened build
Resolves: #1014133
2013-10-01 15:02:45 +02:00
Michal Sekletar
6b0e9ae5c4 sources: add script for generating tarball
We have to make sure that it is obvious how one can create tarball
included in srpm if it doesn't originate upstream.

generate-tarball.sh will create xz compressed tarball which doesn't
include any object files. This script will be dropped as soon as
creation of upstream tarball works properly again.
2013-08-05 17:03:21 +02:00
Michal Sekletar
036629b625 sources: remove *.o files from upstream tarball
This should be fixed in a build system configuration, but we will just
remove unwanted files for now.
2013-08-05 14:30:56 +02:00
Michal Sekletar
e0b76c5b9c ipv6: fix behavior of IPv6 enabled binary of IPv4 only systems
Cherrypicked from upstream.

Commit: 12c53f9
2013-08-05 00:10:55 +02:00
Michal Sekletar
86adcf005a sources: commit forgotten patch 2013-08-04 23:54:03 +02:00
Michal Sekletar
86fbb320cd spec: fix bogus dates in changelog 2013-08-04 23:11:04 +02:00
Michal Sekletar
5dfd7d5e42 spec: update to the newest upstream 0.85
Resolves #979579
2013-08-04 23:11:04 +02:00
Dennis Gilmore
bc03c71db3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 07:10:42 -05:00
Michal Sekletar
401c0e5a53 dns: fix segfault when resolver uses both ipv4 and ipv6 nameservers 2013-06-06 19:02:59 +02:00
Michal Sekletar
38276680e8 sources: upload new tarball
Signed-off-by: Michal Sekletar <msekleta@redhat.com>
2013-04-03 17:58:27 +02:00
Michal Sekletar
b450aa47e4 spec: update to the newest upstream release 0.84
Update to the version 0.84 and some specfile cleanup

Signed-off-by: Michal Sekletar <msekleta@redhat.com>
2013-04-03 16:31:59 +02:00
Adam Tkac
0fcca6ea1d Make non-gtk version of mtr buildable
Signed-off-by: Adam Tkac <atkac@redhat.com>
2013-02-18 20:27:16 +01:00
Adam Tkac
d6f53aea73 Update to 0.83
Signed-off-by: Adam Tkac <atkac@redhat.com>
2013-02-18 15:53:51 +01:00
Toshio Kuratomi
d05e1adc5a Remove --vendor flag from desktop-file-install https://fedorahosted.org/fesco/ticket/1077 2013-02-14 15:29:48 -08:00
Dennis Gilmore
19d729c3ed - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 01:42:28 -06:00
Dennis Gilmore
ae94fc8bd1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-19 22:14:51 -05:00
Dennis Gilmore
5aa95f65a7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 04:35:21 -06:00
Adam Tkac
375ea50087 Update to 0.82
Signed-off-by: Adam Tkac <atkac@redhat.com>
2011-12-07 14:58:10 +01:00
Adam Tkac
35b128e4d5 Update to 0.81
- mtr-now-waits-for-last-response.patch is no longer needed
- fixed wide report output (#703549)

Signed-off-by: Adam Tkac <atkac@redhat.com>
2011-11-01 12:19:03 +01:00
Dennis Gilmore
987cc8bd9f - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 16:07:38 -06:00
Adam Tkac
3faa33afa9 Use file capabilities instead of SUID (#646479).
Signed-off-by: Adam Tkac <atkac@redhat.com>
2010-11-03 14:32:15 +01:00
Jan Görig
b0c6688ece new sources 2010-10-26 10:44:08 +02:00
Jan Görig
261ddf40c2 - update to 0.80
- mtr now waits for last sent packet (#611739)
- fixed crashes in XML format
- XML format fixes
2010-10-26 10:38:58 +02:00
Fedora Release Engineering
3ed6fd9482 dist-git conversion 2010-07-29 03:47:08 +00:00
Adam Tkac
e20d5d7fe8 - update to 0.79
- patches merged
- mtr-0.75-fd-flags.path
- mtr075-rh516603.patch
2010-06-28 13:26:33 +00:00
Adam Tkac
92ebd991b7 - install mtr as SUID binary (#518828)
- use fprintf instead of perror when getaddrinfo fails (#516603)
2009-12-07 13:40:29 +00:00
Bill Nottingham
51380147e9 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 23:19:01 +00:00
Adam Tkac
a9cc50e9f0 - remove unneeded build requires (#525547) 2009-09-25 10:03:49 +00:00
Jesse Keating
8273f0b919 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-25 15:20:37 +00:00
Jesse Keating
9f0108f193 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-26 03:15:34 +00:00
Zdenek Prikryl
16b3abc2d6 Fixed setting socket flags in ipv4 only environment (#467964) 2008-10-29 09:30:09 +00:00