Compare commits

...
Sign in to create a new pull request.

115 commits

Author SHA1 Message Date
Fedora Release Engineering
0baf939494 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:23:57 +00:00
Michal Srb
fb86abde3b a-a-save-container-data: validate input
Resolves: CVE-2025-12744

Signed-off-by: Michal Srb <michal@redhat.com>
2025-12-04 20:32:21 +01:00
Michal Srb
b36cf8c499 Update to 2.17.7
Signed-off-by: Michal Srb <michal@redhat.com>
2025-10-02 10:36:26 +02:00
Python Maint
ba57e0bbb5 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:06:17 +02:00
Python Maint
54bdc1243f Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 12:37:49 +02:00
Adam Williamson
026c727cd2 Bump release 2025-08-01 10:49:36 -07:00
Adam Williamson
3e192a597d Obsolete fros packages
fros was recently retired:
https://src.fedoraproject.org/rpms/fros/c/1d5c887
it was added to comps to support abrt-desktop:
https://pagure.io/fedora-comps/c/e845f70
so it seems most appropriate to have abrt obsolete it, if we
don't just use obsolete-packages.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-07-25 14:27:51 -07:00
Fedora Release Engineering
ea69665c75 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:42:37 +00:00
Python Maint
b8a18969b7 Rebuilt for Python 3.14 2025-06-03 15:33:02 +02:00
Zbigniew Jędrzejewski-Szmek
3063be65d9 Add sysusers.d config file to allow rpm to create users/groups automatically 2025-01-23 17:02:44 +01:00
Fedora Release Engineering
c76a737f5a Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:29:17 +00:00
David Abdurachmanov
67fc5aa756 Disable Requires on kexec-tools for riscv64
kexec is supported for riscv64 on the kernel side, but the tooling side
is not yet upstreamed. Status is unknown.

See recent failed kexec-tools builds on riscv64 here:
http://fedora.riscv.rocks/koji/packageinfo?packageID=17577

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2024-12-02 09:59:50 +00:00
Neal Gompa
1bb8628644 Drop container handler (rhbz#2295150) 2024-09-11 12:56:30 +02:00
Michal Srb
d48adf4500 Update to upstream release 2.17.6
Signed-off-by: Michal Srb <michal@redhat.com>
2024-09-01 15:24:09 +02:00
Fedora Release Engineering
e5b49f4be8 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:31:08 +00:00
Zbigniew Jędrzejewski-Szmek
66812b6c92 Drop call to marshalparser
This is now done automatically by add-determinism:
https://fedoraproject.org/wiki/Changes/ReproduciblePackageBuilds
2024-06-18 13:04:35 +02:00
Python Maint
af451300aa Rebuilt for Python 3.13 2024-06-09 02:46:55 +02:00
Michal Srb
202231f9cb Update to 2.17.5
Signed-off-by: Michal Srb <michal@redhat.com>
2024-02-19 19:59:39 +01:00
Michal Srb
e8f18508da Update to upstream release 2.17.4
Signed-off-by: Michal Srb <michal@redhat.com>
2024-02-12 22:59:07 +01:00
Michal Srb
58c69f3384 Update spec file
Signed-off-by: Michal Srb <michal@redhat.com>
2024-02-05 22:35:28 +01:00
Michal Srb
7fea67f0ed Update to upstream release 2.17.2
Signed-off-by: Michal Srb <michal@redhat.com>
2024-02-04 23:45:24 +01:00
Fedora Release Engineering
7eebe59cc3 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 22:34:46 +00:00
Fedora Release Engineering
f1adb64577 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:03:02 +00:00
Fedora Release Engineering
32054b4681 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 12:49:45 +00:00
Python Maint
bbc9c5edc4 Rebuilt for Python 3.12 2023-07-01 11:44:59 +02:00
Michal Srb
e76a84e22d Update to upstream release 2.17.1
Signed-off-by: Michal Srb <michal@redhat.com>
2023-06-30 13:29:27 +02:00
Python Maint
7073ad4346 Rebuilt for Python 3.12 2023-06-28 19:02:20 +02:00
Matěj Grabovský
1f0eac990d Update to upstream release 2.17.0
Signed-off-by: Matěj Grabovský <mgrabovs@redhat.com>
2023-05-22 11:38:48 +02:00
Michal Srb
e65ab2c3e6 Update to upstream release 2.16.1
Signed-off-by: Michal Srb <michal@redhat.com>
2023-03-30 11:37:17 +02:00
Matěj Grabovský
8c7bdb1523 Use SPDX format for license field
See [the wiki][1] for details.

[1]: https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1
2023-02-02 15:54:58 +01:00
Fedora Release Engineering
e73a64df97 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:19:42 +00:00
Michal Srb
50a321fe1d Update to upstream release 2.16.0
Signed-off-by: Michal Srb <michal@redhat.com>
2022-10-24 18:27:21 +02:00
Michal Srb
a20ba81e1d abrt-journal: First seek the journal tail and then set filters
Resolves: rhbz#2128662

Signed-off-by: Michal Srb <michal@redhat.com>
2022-10-19 15:41:54 +02:00
Michal Srb
c8a122775e applet: Update GLib constant name
This fixes FTBFS in F37+

Signed-off-by: Michal Srb <michal@redhat.com>
2022-10-12 09:59:26 +02:00
Michal Srb
4f63977e6d Adjust gating.yaml for non-Rawhide release
Fedora CI still doesn't run the generic tests
for non-Rawhide releases :/

Signed-off-by: Michal Srb <michal@redhat.com>
2022-10-12 09:44:21 +02:00
Michal Srb
534292e248 abrt-journal: call sd_journal_get_fd() right after sd_journal_open()
Resolves: rhbz#2128662

Signed-off-by: Michal Srb <michal@redhat.com>
2022-10-12 09:43:01 +02:00
Fedora Release Engineering
d3f14892f8 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 20:22:13 +00:00
Michal Srb
1e992dd7d9 Fix FTBFS
Resolves: rhbz#2093924

Signed-off-by: Michal Srb <michal@redhat.com>
2022-06-16 13:24:42 +02:00
Python Maint
f144023834 Rebuilt for Python 3.11 2022-06-15 18:15:40 +02:00
Michal Srb
3f24d62289 Update to 2.15.1
Signed-off-by: Michal Srb <michal@redhat.com>
2022-03-10 21:48:33 +01:00
Fedora Release Engineering
f9fd407b73 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 20:51:29 +00:00
Matěj Grabovský
fcc2f68d2d Rebuild for testing 2022-01-19 14:54:57 +01:00
Matěj Grabovský
15bea33e03 tests: Add one more conflicting package 2022-01-19 12:27:20 +01:00
Matěj Grabovský
0302f37126 New upstream release 2.15.0 2022-01-17 19:27:36 +01:00
Miro Hrončok
88895e18b5 Fix issues with conflicting multilib packages 2022-01-12 16:24:16 +01:00
Matěj Grabovský
1c9f6e51cf Bump release for rebuild 2022-01-06 15:10:12 +01:00
Matěj Grabovský
810fcb1911 Do not install conflicting packages in test 2022-01-06 14:56:23 +01:00
Matěj Grabovský
1b8bae307a Rebuild for satyr 0.39 2021-12-22 11:22:22 +01:00
Matěj Grabovský
7c6ec28dde Backport Python lazy loading patch (rhbz#2007664) 2021-09-27 12:34:36 +02:00
Fedora Release Engineering
d99ab08e76 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 17:11:34 +00:00
Fedora Release Engineering
e3d620d8fc - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 12:16:28 +00:00
Björn Esser
1d49502fa7
Rebuild for versioned symbols in json-c 2021-07-10 11:51:13 +02:00
Python Maint
4f59333992 Rebuilt for Python 3.10 2021-06-07 17:17:41 +02:00
Michal Fabik
61c2c079e0 Bump release to rebuild in new side tag
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2021-06-04 15:02:12 +02:00
Python Maint
f99a7f835a Rebuilt for Python 3.10 2021-06-04 11:19:26 +02:00
Michal Fabik
a4e0effc61 Rebuild against libreport-2.15.2
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2021-06-02 20:59:37 +02:00
Michal Fabik
094983af73 New upstream release 2.14.6
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2021-05-25 12:52:10 +02:00
Michal Fabik
81ec67df39 Merge #8 Add simple smoke test 2021-05-05 09:42:57 +00:00
Sérgio M. Basto
26627dbec3 Add dependency on python3-systemd
commit 566e2eaacb21e07a8301c3e16408924c46045ad9
Author: Matěj Grabovský <mgrabovs@redhat.com>
Date:   Wed Jan 13 12:16:57 2021 +0100

    spec: Add dependency on python3-systemd

    abrt-action-check-oops-for-hw-error from the abrt-addon-vmcore package
    imports systemd.journal but the python3-systemd package is not declared
    as a dependency, which causes the script to crash if python3-systemd is
    not installed on the system.

    This commit fixes this by adding the formal dependency in the spec file.

    Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1914170
2021-05-01 20:29:26 +01:00
Sérgio M. Basto
126031c321 Obsoletes abrt-plugin-sosreport, to fix upgrade path 2021-04-30 22:41:16 +01:00
Michal Fabik
a1c9e8ff22 Add simple smoke test 2021-03-09 12:23:00 +01:00
Zbigniew Jędrzejewski-Szmek
074ab8b76c Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:14:14 +01:00
Michal Židek
7e13959917 gating: Add gating.yaml 2021-02-17 13:58:09 +01:00
Fedora Release Engineering
dacf4e649a - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-25 23:44:28 +00:00
Michal Fabik
003b0187a1 New upstream release 2.14.5
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2020-12-01 15:21:38 +01:00
Miro Hrončok
82eb0a22c3 Use autoreconf in %build instead of plain autoconf
This way, when stuff is fixed in automake, the source tarball does not need
to be re-generated in upstream to use the fix.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1897489
2020-11-13 11:17:17 +01:00
Matěj Grabovský
511e6ce6d4 Add upstream patch for an invalid read bug 2020-10-13 11:11:22 +02:00
Matěj Grabovský
1ab9d3859f Add patch for #1881745 2020-09-24 10:07:28 +02:00
Michal Fabik
00422605f4 spec: Add Provides to Obsoletes
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2020-08-24 09:38:50 +02:00
Michal Fabik
3de7b9d0b7 New upstream release 2.14.4
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2020-08-21 11:47:18 +02:00
Michal Fabik
5e37f50192 New upstream release 2.14.3
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2020-08-21 11:47:15 +02:00
Adam Williamson
92ab2eb5b3 Rebuild for libreport soname bump 2020-08-13 16:42:48 -07:00
Ernestas Kulik
935456c7d9 Add patch for #1860903 2020-07-28 16:28:09 +02:00
Fedora Release Engineering
d8a4ccc6c2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 11:40:43 +00:00
Miro Hrončok
a2bcded0dc Rebuilt for Python 3.9 2020-05-24 09:41:56 +02:00
Ernestas Kulik
18305b2c50 Add fix for #1836190 2020-05-21 16:21:26 +02:00
Michal Fabik
438b4b73c7 New upstream release 2.14.2
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2020-05-12 10:11:37 +02:00
Ernestas Kulik
9f7a213711 Bump libreport dependency 2020-04-25 11:12:34 +02:00
Michal Fabik
bf7b8afe4a New upstream release 2.14.1
Signed-off-by: Michal Fabik <mfabik@redhat.com>
2020-04-24 18:15:58 +02:00
Björn Esser
61c6c411a8 Rebuild (json-c) 2020-04-22 00:01:43 +02:00
Ernestas Kulik
e161563d64 Bump libreport dependency 2020-02-07 10:52:02 +01:00
Ernestas Kulik
400b28eb78 Sync spec changes from upstream 2020-02-07 09:32:24 +01:00
Ernestas Kulik
c84c5d2738 Update to 2.14.0 2020-02-07 08:45:18 +01:00
Igor Raits
5f74b5e407
Backport few more patches to fix compatibility with new libreport
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-02-07 08:00:55 +01:00
Igor Raits
10288b9c6d
Add patch to fix build with new libreport
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-02-07 07:41:21 +01:00
Igor Raits
2bb52e3881
Rebuild for satyr 0.30
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-02-07 07:25:47 +01:00
Martin Kutlak
68a77d6ad6 Fix typo in spec file
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
2020-01-31 10:44:31 +01:00
Martin Kutlak
8f4c491a4b Add patch for possibly unitialized variable
Removed comments after endifs.

Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
2020-01-31 10:42:41 +01:00
Martin Kutlak
c7d2242d98 patch: Fix build failure with gcc -fno-common
Resolves: rhbz#1795820

Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
2020-01-30 17:10:50 +01:00
Fedora Release Engineering
4d76ca5e3a - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 11:08:18 +00:00
Ernestas Kulik
0c014bfd3a Bump release
Oops.
2020-01-14 14:01:49 +01:00
Ernestas Kulik
507c1e9e86 Drop scriptlets for abrt-ccpp.service
It’s been dropped, no use in triggering disabling or restarting. The
preset has had abrt-ccpp replaced with abrt-journal-core forever now as
well, so let’s just do it.
2020-01-14 13:58:06 +01:00
Matěj Grabovský
cbad6eeeab Use correct paths for installed Python modules
This patch is pulled from upstream.
2019-10-16 14:02:50 +02:00
Matěj Grabovský
ac861159ca New upstream release 2.13.0
Signed-off-by: Matěj Grabovský <mgrabovs@redhat.com>
2019-10-11 16:32:47 +02:00
Miro Hrončok
f182793f33 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 13:50:11 +02:00
Miro Hrončok
9e6bef580f Rebuilt for Python 3.8 2019-08-17 18:45:15 +02:00
Ernestas Kulik
df2a70c73b Update to 2.12.2
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
2019-08-01 14:31:16 +02:00
Fedora Release Engineering
3e5d6a98ef - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 17:28:02 +00:00
Martin Kutlak
a2c5fdd9e8 Add patch to fix failing a-a-list-dsos on rawhide
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
2019-07-12 17:36:43 +02:00
Martin Kutlak
6b11b1ff26 New upstream release version 2.12.1
* Remove gen-version from spec
- This is upstream script to generate version. This is not needed in dist-git.

[2.12.1]
Added
- Require dbus-tools for dbus-send command.

Changed
- ABRT won't process crashes coming from unpackaged applications by default.
- Completely removed support for Python2.
- Update new ABRT icon.
- retrace-client defaults to https.
- Updated man pages.
- Removed configurations from /usr/share/abrt.
- Removed provides for abrt-python packages.

Fixed
- Gracefully handle exceptions comming from abrt-action-generate-machine-id.
- Gracefully handle exceptions comming from abrt-action-install-debuginfo.
- Use correct name of environment variable for retrace-server.

Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
2019-07-03 17:54:51 +02:00
Igor Gnatenko
f9e6665820
Rebuild for RPM 4.15
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-06-11 00:13:16 +02:00
Igor Gnatenko
17aa2db63d
Rebuild for RPM 4.15
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-06-10 17:41:59 +02:00
Miro Hrončok
1ee4720bca BR git explicitly, it is used in %prep
Previously, it was pulled in transitively,
that is no longer true.

  Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.k6RazT
  ...
  + /usr/bin/git init -q
  /var/tmp/rpm-tmp.k6RazT: line 42: /usr/bin/git: No such file or directory
  error: Bad exit status from /var/tmp/rpm-tmp.k6RazT (%prep)
2019-04-04 15:45:29 +02:00
Ernestas Kulik
67f63a5ca4 Bump release
Forgot to do that, too.

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
2019-02-05 16:49:11 +01:00
Ernestas Kulik
5dfc50845c Bump dependencies
Forgot to do that the first time.

Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
2019-02-05 16:47:56 +01:00
Ernestas Kulik
c7b20eb399 Update to 2.12.0
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
2019-02-04 14:33:29 +01:00
Fedora Release Engineering
ebf644594c - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 12:53:03 +00:00
Igor Gnatenko
eadff202bc
Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-01-27 12:37:15 +01:00
Matej Marusak
9d7d233bf9 Bump up release
Signed-off-by: Matej Marusak <mmarusak@redhat.com>
2019-01-12 12:41:33 +01:00
Matej Marusak
8086e64036 Fix use after free in applet
Fixes BZ#1665521

Signed-off-by: Matej Marusak <mmarusak@redhat.com>
2019-01-12 12:39:07 +01:00
Matej Marusak
509bd67e3d Include forgotten macro
Signed-off-by: Matej Marusak <mmarusak@redhat.com>
2019-01-08 15:13:11 +01:00
Matej Marusak
895d076624 Update to work with new glib
Signed-off-by: Matej Marusak <mmarusak@redhat.com>
2019-01-08 14:46:39 +01:00
Matej Marusak
50039757c0 New upstream release
Signed-off-by: Matej Marusak <mmarusak@redhat.com>
2019-01-08 12:00:40 +01:00
Martin Kutlak
8dd747fded Remove omitted patches
Forgot to remove these in 92d1203917

Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
2018-10-08 15:31:11 +02:00
Martin Kutlak
92d1203917 New upstream release 2.11.0
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
2018-10-08 15:20:06 +02:00
10 changed files with 623 additions and 709 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

25
.gitignore vendored
View file

@ -62,3 +62,28 @@ abrt-1.1.13.tar.gz
/abrt-2.10.8.tar.gz
/abrt-2.10.9.tar.gz
/abrt-2.10.10.tar.gz
/abrt-2.11.0.tar.gz
/abrt-2.11.1.tar.gz
/abrt-2.12.0.tar.gz
/abrt-2.12.1.tar.gz
/abrt-2.12.2.tar.gz
/abrt-2.13.0.tar.gz
/abrt-2.14.0.tar.gz
/abrt-2.14.1.tar.gz
/abrt-2.14.2.tar.gz
/abrt-2.14.3.tar.gz
/abrt-2.14.4.tar.gz
/abrt-2.14.5.tar.gz
/abrt-2.14.6.tar.gz
/abrt-2.15.0.tar.gz
/abrt-2.15.1.tar.gz
/abrt-2.16.0.tar.gz
/abrt-2.16.1.tar.gz
/abrt-2.17.0.tar.gz
/abrt-2.17.1.tar.gz
/abrt-2.17.2.tar.gz
/abrt-2.17.4.tar.gz
/abrt-2.17.5.tar.gz
/abrt-2.17.6.tar.gz
/abrt-2.17.7.tar.gz
/abrt-2.17.8.tar.gz

View file

@ -1,133 +0,0 @@
From 94dc5d2783133cea27b1ae804d5b8a2da06808c5 Mon Sep 17 00:00:00 2001
From: Matej Habrnal <mhabrnal@redhat.com>
Date: Wed, 6 Jun 2018 14:04:09 +0200
Subject: [PATCH] ccpp: add %h and %e parameter into abrt-hook-ccpp
Without this commit core_pattern's parameter %h and %e was not
translated at all.
If there is a white space in executable filename, %e replaced only by
the first part of executable name (till the space). Hence we decided
to get executable name from /proc/PID/exe symlink exist.
Example:
If 'core_pattern = core.%h.%p.%t.%e' the result was
core.%h.26284.1469805542.sleep not
core.myshostmane.26284.1469805542.sleep with spaces
Related to #1587891
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
---
src/hooks/abrt-hook-ccpp.c | 36 +++++++++++++++++++----------
src/hooks/abrt-install-ccpp-hook.in | 2 +-
2 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
index 1c4e45e5..40117fc8 100644
--- a/src/hooks/abrt-hook-ccpp.c
+++ b/src/hooks/abrt-hook-ccpp.c
@@ -65,13 +65,13 @@ static struct dump_dir *dd;
* %t - UNIX time of dump
* %P - global pid
* %I - crash thread tid
- * %e - executable filename (can contain white spaces)
+ * %h - hostname
+ * %e - executable filename (can contain white spaces, must be placed at the end)
* %% - output one "%"
*/
/* Hook must be installed with exactly the same sequence of %c specifiers.
- * Last one, %h, may be omitted (we can find it out).
*/
-static const char percent_specifiers[] = "%scpugtePi";
+static const char percent_specifiers[] = "%scpugtPIhe";
static char *core_basename = (char*) "core";
static DIR *open_cwd(pid_t pid)
@@ -146,7 +146,8 @@ static int setfscreatecon_raw(security_context_t context)
}
#endif
-static int open_user_core(uid_t uid, uid_t fsuid, gid_t fsgid, pid_t pid, char **percent_values)
+static int open_user_core(uid_t uid, uid_t fsuid, gid_t fsgid, pid_t pid,
+ char **percent_values, const char *executable_filename)
{
proc_cwd = open_cwd(pid);
if (proc_cwd == NULL)
@@ -196,7 +197,13 @@ static int open_user_core(uid_t uid, uid_t fsuid, gid_t fsgid, pid_t pid, char *
{
const char *val = "%";
if (specifier_num > 0) /* not %% */
+ {
val = percent_values[specifier_num - 1];
+ /* if %e (executable filename), use executable from
+ * /proc/PID/exe symlink if exists */
+ if (percent_specifiers[specifier_num] == 'e' && executable_filename)
+ val = executable_filename;
+ }
//log_warning("c:'%c'", c);
//log_warning("val:'%s'", val);
@@ -917,9 +924,9 @@ int main(int argc, char** argv)
if (argc < 8)
{
- /* percent specifier: %s %c %p %u %g %t %P %T */
- /* argv: [0] [1] [2] [3] [4] [5] [6] [7] [8] */
- error_msg_and_die("Usage: %s SIGNO CORE_SIZE_LIMIT PID UID GID TIME GLOBAL_PID GLOBAL_TID", argv[0]);
+ /* percent specifier: %s %c %p %u %g %t %P %I %h %e */
+ /* argv: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] */
+ error_msg_and_die("Usage: %s SIGNO CORE_SIZE_LIMIT PID UID GID TIME GLOBAL_PID GLOBAL_TID HOSTNAME BINARY_NAME", argv[0]);
}
/* Not needed on 2.6.30.
@@ -1016,13 +1023,21 @@ int main(int argc, char** argv)
snprintf(path, sizeof(path), "%s/last-ccpp", g_settings_dump_location);
+ char *executable = get_executable_at(pid_proc_fd);
+ const char *last_slash = NULL;
+ if (executable)
+ {
+ last_slash = strrchr(executable, '/');
+ /* if the last_slash was found, skip it */
+ if (last_slash) ++last_slash;
+ }
+
/* Open a fd to compat coredump, if requested and is possible */
int user_core_fd = -1;
if (setting_MakeCompatCore && ulimit_c != 0)
/* note: checks "user_pwd == NULL" inside; updates core_basename */
- user_core_fd = open_user_core(uid, fsuid, fsgid, pid, &argv[1]);
+ user_core_fd = open_user_core(uid, fsuid, fsgid, pid, &argv[1], (const char *)last_slash);
- char *executable = get_executable_at(pid_proc_fd);
if (executable == NULL)
{
/* readlink on /proc/$PID/exe failed, don't create abrt dump dir */
@@ -1031,9 +1046,6 @@ int main(int argc, char** argv)
return create_user_core(user_core_fd, pid, ulimit_c);
}
- const char *last_slash = strrchr(executable, '/');
- /* if the last_slash was found, skip it */
- if (last_slash) ++last_slash;
/* ignoring crashes */
if (executable && is_path_ignored(setting_ignored_paths, executable))
diff --git a/src/hooks/abrt-install-ccpp-hook.in b/src/hooks/abrt-install-ccpp-hook.in
index 660c2091..f8c0c610 100755
--- a/src/hooks/abrt-install-ccpp-hook.in
+++ b/src/hooks/abrt-install-ccpp-hook.in
@@ -11,7 +11,7 @@ SAVED_PATTERN_DIR="@VAR_RUN@/abrt"
SAVED_PATTERN_FILE="@VAR_RUN@/abrt/saved_core_pattern"
HOOK_BIN="@libexecdir@/abrt-hook-ccpp"
# Must match percent_specifiers[] order in abrt-hook-ccpp.c:
-PATTERN="|$HOOK_BIN %s %c %p %u %g %t %P %I"
+PATTERN="|$HOOK_BIN %s %c %p %u %g %t %P %I %h %e"
# core_pipe_limit specifies how many dump_helpers can run at the same time
# 0 - means unlimited, but it's not guaranteed that /proc/<pid> of crashing
--
2.19.0

View file

@ -1,62 +0,0 @@
From af51c51636eb0ca318e62d4c712f2ba3e60ed9b0 Mon Sep 17 00:00:00 2001
From: Martin Kutlak <mkutlak@redhat.com>
Date: Tue, 28 Aug 2018 10:26:47 +0200
Subject: [PATCH] gui: Replace deprecated g_type_class_add_private
g_type_class_add_private will be deprecated in Glib 2.58 [1].
There is a G_DEFINE_TYPE_WITH_PRIVATE macro that can replace
the deprecated function and it is backwards compatible [2].
[1] blog.gtk.org/2018/07/11/news-from-glib-2-58
[2] bassi.io/articles/2013/06/21/the-king-is-dead
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
---
src/configuration-gui/abrt-config-widget.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/configuration-gui/abrt-config-widget.c b/src/configuration-gui/abrt-config-widget.c
index 62910db6..aa3b5c01 100644
--- a/src/configuration-gui/abrt-config-widget.c
+++ b/src/configuration-gui/abrt-config-widget.c
@@ -27,9 +27,6 @@
#include "libabrt.h"
#include <assert.h>
-#define ABRT_CONFIG_WIDGET_GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE((o), TYPE_ABRT_CONFIG_WIDGET, AbrtConfigWidgetPrivate))
-
#define WID(s) GTK_WIDGET(gtk_builder_get_object(self->priv->builder, s))
#define UI_FILE_NAME "abrt-config-widget.glade"
@@ -107,7 +104,7 @@ struct AbrtConfigWidgetPrivate {
AbrtConfigWidgetOption options[_ABRT_OPT_END_];
};
-G_DEFINE_TYPE(AbrtConfigWidget, abrt_config_widget, GTK_TYPE_BOX)
+G_DEFINE_TYPE_WITH_PRIVATE(AbrtConfigWidget, abrt_config_widget, GTK_TYPE_BOX)
enum {
SN_CHANGED,
@@ -214,8 +211,6 @@ abrt_config_widget_class_init(AbrtConfigWidgetClass *klass)
object_class->finalize = abrt_config_widget_finalize;
- g_type_class_add_private(klass, sizeof(AbrtConfigWidgetPrivate));
-
s_signals[SN_CHANGED] = g_signal_new ("changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -413,7 +408,7 @@ abrt_config_widget_init(AbrtConfigWidget *self)
{
GError *error = NULL;
- self->priv = ABRT_CONFIG_WIDGET_GET_PRIVATE(self);
+ self->priv = abrt_config_widget_get_instance_private(self);
self->priv->builder = gtk_builder_new();
gtk_builder_set_translation_domain(self->priv->builder, GETTEXT_PACKAGE);
--
2.19.0

View file

@ -1,42 +0,0 @@
From 179843d3800f4dd66b143968792a81668a7b172a Mon Sep 17 00:00:00 2001
From: Jake Daryll Obina <jake.obina@gmail.com>
Date: Mon, 25 Jun 2018 11:52:11 +0800
Subject: [PATCH] harvest_vmcore: Fix missing argument error during
delete_and_close()
delete_and_close() requires a directory name argument and it is being called
without one. This argument is really not necessary though since the directory
name is already saved in the directory object (can be queried via the directory
object's name attribute), and it is the saved directory that is always deleted
regardless of the argument passed in.
Signed-off-by: Jake Daryll Obina <jake.obina@gmail.com>
---
src/hooks/abrt_harvest_vmcore.py.in | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/hooks/abrt_harvest_vmcore.py.in b/src/hooks/abrt_harvest_vmcore.py.in
index 7d4bba52..66c3ad37 100644
--- a/src/hooks/abrt_harvest_vmcore.py.in
+++ b/src/hooks/abrt_harvest_vmcore.py.in
@@ -128,13 +128,15 @@ def create_abrtd_info(dest, uuid):
return dd
-def delete_and_close(dd, dd_dirname):
+def delete_and_close(dd):
"""
Deletes the given dump directory and closes it.
dd - dump directory object
- dd_dirname - full path to dump directory
"""
+ # Save the directory name as the directory object could be destroyed during
+ # delete().
+ dd_dirname = dd.name
if not dd.delete() == 0:
sys.stderr.write("Unable to delete '%s'\n" % (dd_dirname))
return
--
2.19.0

View file

@ -1,41 +0,0 @@
From 057f8b0395a37765b856737cb25186c52b300389 Mon Sep 17 00:00:00 2001
From: Martin Kutlak <mkutlak@redhat.com>
Date: Tue, 24 Jul 2018 10:17:05 +0200
Subject: [PATCH] lib: Correct the syntax for gdb backtrace command
abrt-action-generate-backtrace generates backtraces with error message:
A syntax error in expression, near `full'.
According to the GDB documentation the correct syntax for backtrace
command is:
backtrace [n]
backtrace full [n]
- sourceware.org/gdb/onlinedocs/gdb/Backtrace.html
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
---
src/lib/hooklib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/hooklib.c b/src/lib/hooklib.c
index 135c7cde..b66fc119 100644
--- a/src/lib/hooklib.c
+++ b/src/lib/hooklib.c
@@ -353,11 +353,11 @@ char *get_backtrace(const char *dump_dir_name, unsigned timeout_sec, const char
/* Limit bt depth. With no limit, gdb sometimes OOMs the machine */
unsigned bt_depth = 1024;
const char *thread_apply_all = "thread apply all -ascending";
- const char *full = " full";
+ const char *full = "full ";
char *bt = NULL;
while (1)
{
- args[bt_cmd_index] = xasprintf("%s backtrace %u%s", thread_apply_all, bt_depth, full);
+ args[bt_cmd_index] = xasprintf("%s backtrace %s%u", thread_apply_all, full, bt_depth);
bt = exec_vp(args, /*redirect_stderr:*/ 1, timeout_sec, NULL);
free(args[bt_cmd_index]);
if ((bt && strnlen(bt, 256*1024) < 256*1024) || bt_depth <= 32)
--
2.19.0

1001
abrt.spec

File diff suppressed because it is too large Load diff

15
gating.yaml Normal file
View file

@ -0,0 +1,15 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View file

@ -1 +1 @@
SHA512 (abrt-2.10.10.tar.gz) = 1a9183346257bde09d69b2da032472d16661637124635e4959f47d1ec3272b550651f584e6e2c16893b25b906458c86379c3ee6cdbd1cba025bc9a71018048df
SHA512 (abrt-2.17.8.tar.gz) = 90b74229412e0186bfa109ee940a60c9f3c0f7ce8c1216acad6f05619a1bb591e7f0bae87363143a05034312c9f14fe5ace341b84f680780ceb93a1e624705b3

10
tests/smoke.fmf Normal file
View file

@ -0,0 +1,10 @@
summary: Basic smoke test for abrt
prepare:
how: install
# Do not attempt to install conflicting subpackages.
exclude:
- abrt-atomic
- abrt-java-connector-container
- python3-abrt-container-addon
execute:
script: abrt-action-notify --help