diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c3032d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +/will-crash-v0.2.tar.gz +/will-crash-v0.3.tar.gz +/will-crash-0.4.tar.gz +/will-crash-0.5.tar.gz +/will-crash-0.6.tar +/will-crash-0.6.tar.gz +/will-crash-0.7.tar.gz +/will-crash-0.8.tar.gz +/will-crash-0.9.tar.gz +/will-crash-0.10.tar.gz +/will-crash-v0.12.tar.gz +/will-crash-0.13.tar.gz +/will-crash-0.13.1.tar.gz +/will-crash-0.13.2.tar.gz +/will-crash-0.13.3.tar.gz diff --git a/.packit.yml b/.packit.yml new file mode 100644 index 0000000..1ffaeab --- /dev/null +++ b/.packit.yml @@ -0,0 +1,19 @@ +specfile_path: 'will-crash.spec' +synced_files: + - '.packit.yml' + - 'will-crash.spec' +upstream_package_name: 'will-crash' +upstream_project_url: 'https://github.com/abrt/will-crash' +upstream_tag_template: 'v{version}' +downstream_package_name: 'will-crash' +jobs: +- job: 'propose_downstream' + trigger: 'release' + metadata: + dist-git-branch: 'fedora-all' +- job: 'copr_build' + trigger: 'pull_request' + metadata: + targets: + - 'epel-8' + - 'fedora-all' diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..19936d7 --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 0.8.1. diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..9ca798d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,22 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional} + - !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.rpmdeplint.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} + diff --git a/sources b/sources new file mode 100644 index 0000000..36fdee3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (will-crash-0.13.3.tar.gz) = f4fcfd96a2b697b65f2850788478970b5883940049bb3dd0c8cdc108d38d0a998e7e8747aa7fe50da4355d6f0f2bd7e058d468c2cda1eb3ee8b6b7c5bb87cda7 diff --git a/tests/smoke.fmf b/tests/smoke.fmf new file mode 100644 index 0000000..3ae3462 --- /dev/null +++ b/tests/smoke.fmf @@ -0,0 +1,6 @@ +summary: Basic smoke test for will-crash +require: gcc +execute: + script: | + tests/smoke.sh + will_abort; [ $? -eq 134 ] diff --git a/tests/smoke.sh b/tests/smoke.sh new file mode 100755 index 0000000..bd315e9 --- /dev/null +++ b/tests/smoke.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash +echo "void *c(){} int main(){call_me_back(c, NULL);}" | /usr/bin/gcc -include stddef.h -l:/will-crash/libwillcrash.so -x c -Wno-implicit-function-declaration - +rm -f a.out diff --git a/will-crash.spec b/will-crash.spec new file mode 100644 index 0000000..182f22f --- /dev/null +++ b/will-crash.spec @@ -0,0 +1,227 @@ +# http://fedoraproject.org/wiki/Packaging:Guidelines#PIE +# http://fedoraproject.org/wiki/Hardened_Packages +%global _hardened_build 1 + +Name: will-crash +Version: 0.13.3 +Release: 6%{?dist} +Summary: Set of crashing executables written in various languages + +Group: Development/Tools +License: GPLv3 +URL: https://github.com/abrt/will-crash +Source0: https://github.com/abrt/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: java-devel +BuildRequires: javapackages-tools +BuildRequires: meson >= 0.50.0 +BuildRequires: gcc-c++ +BuildRequires: ruby-devel + +Requires: java-headless >= 1.7.0.0 +Requires: javapackages-tools +Requires: perl-interpreter +Requires: python3 +Requires: ruby + +%description +The main purpose of this project is to provide sample +executables for testing crash/exception handling tools +like ABRT. + +%prep +%setup -q + +%build +%meson \ + -Djavadir=%{_javadir} \ + -D_java_home=%{java_home} \ + %{nil} +%meson_build + +%install +%meson_install + +%files +%doc README.rst +%doc LICENSE +%{_bindir}/will_segfault +%{_bindir}/will_segfault_in_new_pid +%{_bindir}/will_segfault_threads +%{_bindir}/will_abort +%{_bindir}/will_perl_sigsegv +%{_bindir}/will_python3_sigsegv +%{_bindir}/will_python3_raise +%{_bindir}/will_ruby_raise +%{_bindir}/will_java_segfault +%{_bindir}/will_java_throw +%{_bindir}/will_java_throw_remote +%{_bindir}/will_java_throw_suppressed +%{_bindir}/will_cpp_segfault +%{_bindir}/will_stackoverflow +%{_bindir}/will_oops +%{_datadir}/java/WillRaiseSigSegv.class +%{_datadir}/java/willcrash/willremoteloader.jar +%{_datadir}/java/willcrash/willsuppressed.jar +%{_datadir}/java/willcrash/willuncaught.jar +%{_datadir}/will-crash/* +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/libwillcrash.so +# There’s no way to set the rpath in Java, so it will either look in whatever +# path it does or we have to use System.load(), which takes a path to a library, +# but then you need to guess the extension, which is not portable (though doesn’t +# matter here per se, it’s still not desirable to write hacks). +%{_libdir}/libwilljavasegfault.so* +%{ruby_vendorlibdir}/will_crash.rb + +%changelog +* Sat Feb 05 2022 Jiri Vanek - 0.13.3-6 +- Rebuilt for java-17-openjdk as system jdk + +* Sat Jan 22 2022 Fedora Release Engineering - 0.13.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.13.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.13.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 01 2020 Michal Fabik - 0.13.3-2 +- spec: Correct Source0 + +* Tue Dec 01 2020 Michal Fabik - 0.13.3-1 +- will_stackoverflow: Disable optimizations +- Drop libtool dependency +- Fix KMODSRC substitution +- Require perl-interpreter + +* Wed Jul 29 2020 Fedora Release Engineering - 0.13.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jul 11 2020 Jiri Vanek - 0.13.2-2 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Fri Feb 21 2020 Ernestas Kulik - 0.13.2-1 +- new upstream release: 0.13.2 + +* Thu Feb 20 2020 Ernestas Kulik - 0.13.1-1 +- new upstream release: 0.13.1 + +* Thu Feb 20 2020 Ernestas Kulik - 0.13.1-1 +- new upstream release: 0.13.1 + +* Thu Feb 20 2020 Ernestas Kulik - 0.13-1 +- new upstream release: 0.13 + +* Fri Jan 31 2020 Fedora Release Engineering - 0.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 0.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jul 02 2019 Ernestas Kulik - 0.12-1 +- Update upstream URIs +- Enable PIEs +- Remove RHEL 6/7-specific content +- Update to 0.12 + +* Sun Feb 03 2019 Fedora Release Engineering - 0.10-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.10-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Iryna Shcherbina - 0.10-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.10-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.10-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.10-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.10-3 +- Rebuild for Python 3.6 + +* Fri Feb 05 2016 Fedora Release Engineering - 0.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Aug 13 2015 Richard Marko - 0.10-1 +- Version bump +- fix will_python_sigsegv for s390x +- Make it possible to run will_oops.in multiple times in row +- will_ruby_raise: fancy stacktrace +- Add --help to will_abort + +* Fri Jun 19 2015 Fedora Release Engineering - 0.9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.9-3 +- Rebuilt for GCC 5 C++11 ABI change + +* Mon Nov 24 2014 Richard Marko - 0.9-2 +- fix will_java_throw_suppressed availability on RHEL6 + +* Thu Oct 30 2014 Jakub Filak - 0.9-1 +- port to javapackages-utils + +* Wed Sep 10 2014 Richard Marko - 0.8-1 +- add will_segfault --break-link-map + +* Wed Aug 27 2014 Martin Milata - 0.7-5 +- added will_stackoverflow + +* Mon Aug 18 2014 Richard Marko - 0.7-4 +- support OpenJDK8 + +* Mon Aug 18 2014 Fedora Release Engineering - 0.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Jun 2 2014 Richard Marko - 0.7-1 +- Version bump +- added will_abort --random +- added will_java_throw_remote + +* Tue Jan 14 2014 Richard Marko - 0.6-1 +- Version bump +- added will_cpp_segfault +- reworked will_segfault to produce more stack frames + +* Sun Aug 04 2013 Fedora Release Engineering - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri May 3 2013 Jiri Moskovcak 0.5-1 +- new upstream release - 0.5 +- added will_oops + +* Mon Mar 18 2013 Richard Marko - 0.4-1 +- Version bump, added will_java_segfault + +* Thu Feb 21 2013 Richard Marko - 0.3-1 +- Version bump + +* Fri Feb 15 2013 Fedora Release Engineering - 0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 25 2012 Richard Marko - 0.2-2 +- Don't require python3 for el6 + +* Wed Jul 25 2012 Richard Marko - 0.2-1 +- Version bump + +* Mon Jul 23 2012 Richard Marko - 0.1-2 +- Added missing automake build requirement + +* Fri Jul 20 2012 Richard Marko - 0.1-1 +- Initial packaging attempt