Compare commits
100 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45da97f63e | ||
|
|
c77d81af75 | ||
|
|
87712a5e5a | ||
|
|
4c7cbd0028 | ||
|
|
98096d701c | ||
|
|
4c22c90ed7 | ||
|
|
f12e85e73a | ||
|
|
30c54c4b8f | ||
|
|
16c3ff1ff8 | ||
|
|
0456c36351 | ||
|
|
98db5ac07f | ||
|
|
d86ac262fb | ||
|
|
3265c40aad | ||
|
|
e756ae568d | ||
|
|
3d476b7c77 | ||
|
|
d1f5aea9e3 | ||
|
|
2b88cb1669 | ||
|
|
5e25b02299 | ||
|
|
70c2d78a6e | ||
|
|
08bd6422c3 | ||
|
|
d5f31e39bb | ||
|
|
7dafb9633a | ||
|
|
d20251d629 | ||
|
|
502f8c7412 | ||
|
|
d1debfa977 | ||
|
|
4abb72b5a7 | ||
|
|
4b1f8f7ca8 | ||
|
|
c62536f4fc | ||
|
|
0838e28209 | ||
|
|
9c8cf1e040 | ||
|
|
721c9858b9 | ||
|
|
df1c462111 | ||
|
|
c7bd2e9b60 | ||
|
|
a60f2d52f5 | ||
|
|
5c6a8ff0a6 | ||
|
|
1daa8aeacb | ||
|
|
c59a73626c | ||
|
|
239f7c7dbe | ||
|
|
c57e81043d | ||
|
|
246c24ec2f | ||
|
|
dfa3ff2590 | ||
|
|
36ac44e99e | ||
|
|
de63ffd8d8 | ||
|
|
b5305fd236 | ||
|
|
aa655511eb | ||
|
|
a5f24502c1 | ||
|
|
ff73caace9 | ||
|
|
a531967da4 | ||
|
|
2086847084 | ||
|
|
210e3db980 |
||
|
|
9b8956b0f0 | ||
|
|
662f01769c | ||
|
|
be6247841b | ||
|
|
35e044e3e3 | ||
|
|
0ca3e80db1 | ||
|
|
edab1b2aab | ||
|
|
9785cc8667 | ||
|
|
dd2a474758 | ||
|
|
608e5752dd | ||
|
|
5ab705c31a | ||
|
|
9ab59e2f7c | ||
|
|
52b033c56c | ||
|
|
5f51ab9799 | ||
|
|
df126de8c3 | ||
|
|
0cacf21d88 | ||
|
|
4eeb8e1577 | ||
|
|
ec078627a6 | ||
|
|
d9b53bd182 | ||
|
|
aa4f8872d7 | ||
|
|
11466005e0 | ||
|
|
e6ffee77b6 | ||
|
|
87befbd9c8 | ||
|
|
dff3619715 | ||
|
|
5c189cf957 | ||
|
|
dffb347d31 | ||
|
|
9356e160f0 | ||
|
|
0ab817ba2c | ||
|
|
05f31ca481 | ||
|
|
246d317411 | ||
|
|
1fa21e6ed9 | ||
|
|
6d705a2daf | ||
|
|
79fc4e45b3 | ||
|
|
e77ad01ea9 | ||
|
|
0ba66a3414 | ||
|
|
e66b28d0aa | ||
|
|
a482043152 | ||
|
|
8c80901c1e | ||
|
|
55c465af05 | ||
|
|
84d394ceb8 | ||
|
|
c3955d78ea | ||
|
|
6bf691a3db | ||
|
|
d65da2513b | ||
|
|
baf3eb10e5 | ||
|
|
b93f63f5e5 | ||
|
|
7b5261251a | ||
|
|
b657b8c0e9 | ||
|
|
3e1f0487c1 | ||
|
|
db8863c3f1 | ||
|
|
7b7c13b297 | ||
|
|
216f0e95b1 |
12 changed files with 704 additions and 504 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
27
.gitignore
vendored
27
.gitignore
vendored
|
|
@ -4,3 +4,30 @@
|
|||
/libreport-2.9.6.tar.gz
|
||||
/libreport-2.9.7.tar.gz
|
||||
/libreport-2.10.0.tar.gz
|
||||
/libreport-2.10.1.tar.gz
|
||||
/libreport-2.11.0.tar.gz
|
||||
/libreport-2.11.1.tar.gz
|
||||
/libreport-2.11.2.tar.gz
|
||||
/libreport-2.11.3.tar.gz
|
||||
/libreport-2.12.0.tar.gz
|
||||
/libreport-2.13.0.tar.gz
|
||||
/libreport-2.13.1.tar.gz
|
||||
/libreport-2.14.0.tar.gz
|
||||
/libreport-2.15.1.tar.gz
|
||||
/libreport-2.15.2.tar.gz
|
||||
/libreport-2.16.0.tar.gz
|
||||
/libreport-2.17.0.tar.gz
|
||||
/libreport-2.17.1.tar.gz
|
||||
/libreport-2.17.2.tar.gz
|
||||
/libreport-2.17.3.tar.gz
|
||||
/libreport-2.17.4.tar.gz
|
||||
/libreport-2.17.5.tar.gz
|
||||
/libreport-2.17.6.tar.gz
|
||||
/libreport-2.17.7.tar.gz
|
||||
/libreport-2.17.8.tar.gz
|
||||
/libreport-2.17.9.tar.gz
|
||||
/libreport-2.17.10.tar.gz
|
||||
/libreport-2.17.11.tar.gz
|
||||
/libreport-2.17.13.tar.gz
|
||||
/libreport-2.17.14.tar.gz
|
||||
/libreport-2.17.15.tar.gz
|
||||
|
|
|
|||
21
.packit.yml
Normal file
21
.packit.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
specfile_path: libreport.spec
|
||||
synced_files:
|
||||
- .packit.yml
|
||||
- libreport.spec
|
||||
upstream_package_name: libreport
|
||||
upstream_project_url: https://github.com/abrt/libreport
|
||||
downstream_package_name: libreport
|
||||
|
||||
# No extra dependencies are necessary to build the SRPM.
|
||||
srpm_build_deps: []
|
||||
|
||||
jobs:
|
||||
- job: propose_downstream
|
||||
trigger: release
|
||||
metadata:
|
||||
dist_git_branch: fedora-all
|
||||
- job: copr_build
|
||||
trigger: pull_request
|
||||
metadata:
|
||||
targets:
|
||||
- fedora-all
|
||||
42
801.patch
Normal file
42
801.patch
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
From 9be0010e109d307921a049d10078813423227582 Mon Sep 17 00:00:00 2001
|
||||
From: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
|
||||
Date: Fri, 15 Dec 2023 18:03:33 +0100
|
||||
Subject: [PATCH] Fix compatibility with libxml2 2.12
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Since libxml2 2.12, xmlNodePtr is no longer included by libxml/encoding.h.
|
||||
This leads to build errors such as:
|
||||
|
||||
CC reporter_mantisbt-reporter-mantisbt.o
|
||||
In file included from reporter-mantisbt.c:22:
|
||||
mantisbt.h:48:5: error: unknown type name ‘xmlNodePtr’
|
||||
48 | xmlNodePtr sr_root;
|
||||
| ^~~~~~~~~~
|
||||
mantisbt.h:49:5: error: unknown type name ‘xmlNodePtr’
|
||||
49 | xmlNodePtr sr_body;
|
||||
| ^~~~~~~~~~
|
||||
mantisbt.h:50:5: error: unknown type name ‘xmlNodePtr’
|
||||
50 | xmlNodePtr sr_method;
|
||||
| ^~~~~~~~~~
|
||||
|
||||
Fix this by including libxml/tree.h.
|
||||
|
||||
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
|
||||
---
|
||||
src/plugins/mantisbt.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/plugins/mantisbt.h b/src/plugins/mantisbt.h
|
||||
index 1feaf8f88..6979e7244 100644
|
||||
--- a/src/plugins/mantisbt.h
|
||||
+++ b/src/plugins/mantisbt.h
|
||||
@@ -25,6 +25,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <libxml/encoding.h>
|
||||
+#include <libxml/tree.h>
|
||||
#include "problem_report.h"
|
||||
|
||||
#define SOAP_STRING "ns2:string"
|
||||
3
README.packit
Normal file
3
README.packit
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 0.91.0.post1.dev4+ge6fd4a25.
|
||||
15
gating.yaml
Normal file
15
gating.yaml
Normal 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}
|
||||
46
libreport-c89-2.patch
Normal file
46
libreport-c89-2.patch
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
problem_item_get_size expects unsigned long * argument in problem_data.at test
|
||||
|
||||
Otherwise, the test fails to build on i686 with GCC 14.
|
||||
|
||||
Submitted upstream: <https://github.com/abrt/libreport/pull/802>
|
||||
|
||||
diff --git a/tests/problem_data.at b/tests/problem_data.at
|
||||
index 4d8bf0075c0a8b91..db67a76732d48663 100644
|
||||
--- a/tests/problem_data.at
|
||||
+++ b/tests/problem_data.at
|
||||
@@ -89,7 +89,7 @@ int main(int argc, char **argv)
|
||||
struct problem_item *itm = problem_data_add_ext(data, "1", "foo", CD_FLAG_TXT | CD_FLAG_ISNOTEDITABLE, PROBLEM_ITEM_UNINITIALIZED_SIZE);
|
||||
const size_t old_size = strlen(itm->content);
|
||||
{
|
||||
- size_t current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
+ unsigned long current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
assert(problem_item_get_size(itm, ¤t_size) == 0);
|
||||
assert(current_size != PROBLEM_ITEM_UNINITIALIZED_SIZE);
|
||||
assert(current_size == old_size);
|
||||
@@ -97,7 +97,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
g_free(itm->content);
|
||||
itm->content = NULL;
|
||||
- size_t current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
+ unsigned long current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
assert(problem_item_get_size(itm, ¤t_size) == 0);
|
||||
assert(current_size != PROBLEM_ITEM_UNINITIALIZED_SIZE);
|
||||
assert(current_size == old_size);
|
||||
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
|
||||
struct problem_item *itm = problem_data_add_ext(data, "2", flnm, CD_FLAG_BIN, PROBLEM_ITEM_UNINITIALIZED_SIZE);
|
||||
|
||||
{
|
||||
- size_t current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
+ unsigned long current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
assert(problem_item_get_size(itm, ¤t_size) == 0);
|
||||
assert(current_size != PROBLEM_ITEM_UNINITIALIZED_SIZE);
|
||||
assert(current_size == old_size);
|
||||
@@ -129,7 +129,7 @@ int main(int argc, char **argv)
|
||||
close(flds);
|
||||
unlink(flnm);
|
||||
assert(stat(flnm, &buf) != 0);
|
||||
- size_t current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
+ unsigned long current_size = PROBLEM_ITEM_UNINITIALIZED_SIZE;
|
||||
assert(problem_item_get_size(itm, ¤t_size) == 0);
|
||||
assert(current_size != PROBLEM_ITEM_UNINITIALIZED_SIZE);
|
||||
assert(current_size == old_size);
|
||||
28
libreport-c89.patch
Normal file
28
libreport-c89.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
Remove incorrect casts from tests/string_list.at
|
||||
|
||||
The list_order argument already has the correct pointer type const
|
||||
char * const * (after array-to-pointer decay).
|
||||
|
||||
Submitted upstream: <https://github.com/abrt/libreport/pull/802>
|
||||
|
||||
diff --git a/tests/string_list.at b/tests/string_list.at
|
||||
index 6af162a2f8da3919..2118298da4de0ec3 100644
|
||||
--- a/tests/string_list.at
|
||||
+++ b/tests/string_list.at
|
||||
@@ -22,13 +22,13 @@ int main(void)
|
||||
NULL
|
||||
};
|
||||
|
||||
- int index = libreport_index_of_string_in_list(FILENAME_REASON, (char**) list_order);
|
||||
+ int index = libreport_index_of_string_in_list(FILENAME_REASON, list_order);
|
||||
assert(index == 0);
|
||||
|
||||
- index = libreport_index_of_string_in_list(FILENAME_COUNT, (char**) list_order);
|
||||
+ index = libreport_index_of_string_in_list(FILENAME_COUNT, list_order);
|
||||
assert(index == 5);
|
||||
|
||||
- index = libreport_index_of_string_in_list("other", (char**) list_order);
|
||||
+ index = libreport_index_of_string_in_list("other", list_order);
|
||||
assert(index < 0);
|
||||
|
||||
return 0;
|
||||
997
libreport.spec
997
libreport.spec
File diff suppressed because it is too large
Load diff
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (libreport-2.10.0.tar.gz) = 978ea442d82b75abf80b2075f540cb05c5577387a9221f2070c9695c4546d36169738d223f5e903d0b774b7e1566a6111c55a6bb51a0822ad1676095f067c45b
|
||||
SHA512 (libreport-2.17.15.tar.gz) = a4707f5272f037f91b4f4b562d3f0eb165ae7790699714accdd1af40216f37bd40d430a06925b1b7b8ac2d2cf97fd0cc4efded51dc22d21d9ef2abedf796e5fe
|
||||
|
|
|
|||
11
tests/library-smoke.sh
Executable file
11
tests/library-smoke.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
gcc -x c -o smoke_test -lreport -Wno-implicit-function-declaration - <<EOF
|
||||
#include <stdio.h>
|
||||
int main(void) {
|
||||
libreport_init();
|
||||
printf("libreport initialized OK\n");
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
./smoke_test
|
||||
15
tests/smoke.fmf
Normal file
15
tests/smoke.fmf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
summary: Basic smoke test for libreport
|
||||
prepare:
|
||||
how: install
|
||||
# Do not attempt to install conflicting subpackages.
|
||||
exclude:
|
||||
- abrt-atomic
|
||||
- abrt-java-connector-container
|
||||
- python3-abrt-container-addon
|
||||
# Prerequisite for smoke testing liblibreport.
|
||||
package:
|
||||
- gcc
|
||||
execute:
|
||||
script: |
|
||||
tests/library-smoke.sh
|
||||
report-cli --version
|
||||
Loading…
Add table
Add a link
Reference in a new issue