From b84669732dda785f8f1338124de68233eada85c7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 16:21:53 +0000 Subject: [PATCH 01/23] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 4a0ca2b..2ee6dff 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -1,7 +1,7 @@ %global githash 38573e7d Name: memstomp Version: 0.1.4 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -69,6 +69,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 0.1.4-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Fri Feb 01 2019 Fedora Release Engineering - 0.1.4-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From b3b790f09095db361fc6bd18a79496a7391b2507 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 13 Dec 2019 22:09:16 -0700 Subject: [PATCH 02/23] Dummy commit for testing purposes --- memstomp.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/memstomp.spec b/memstomp.spec index 2ee6dff..9060dfb 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -1,4 +1,5 @@ %global githash 38573e7d + Name: memstomp Version: 0.1.4 Release: 27%{?dist} From a40459e334144430e1c45cb98245053c0a149c7c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jan 2020 12:34:00 +0000 Subject: [PATCH 03/23] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 9060dfb..fbdb11e 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 27%{?dist} +Release: 28%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -70,6 +70,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Wed Jan 29 2020 Fedora Release Engineering - 0.1.4-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Jul 25 2019 Fedora Release Engineering - 0.1.4-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 4ddb0fa90bf8b10f195ef5fefeae26ff32790144 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 18 May 2020 16:26:31 -0600 Subject: [PATCH 04/23] - Various fixes for API changes in bfd --- bfd-api-change.patch | 22 ++++++++++++++++++++++ memstomp.spec | 7 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 bfd-api-change.patch diff --git a/bfd-api-change.patch b/bfd-api-change.patch new file mode 100644 index 0000000..7503183 --- /dev/null +++ b/bfd-api-change.patch @@ -0,0 +1,22 @@ +diff --git a/backtrace-symbols.c b/backtrace-symbols.c +index 0176e3f..5384e2e 100644 +--- a/backtrace-symbols.c ++++ b/backtrace-symbols.c +@@ -124,14 +124,14 @@ static void find_address_in_section( + if (arg->found) + return; + +- if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0) ++ if ((bfd_section_flags(section) & SEC_ALLOC) == 0) + return; + +- bfd_vma const vma = bfd_get_section_vma(abfd, section); ++ bfd_vma const vma = bfd_section_vma(section); + if (arg->pc < vma) + return; + +- bfd_size_type const size = bfd_section_size(abfd, section); ++ bfd_size_type const size = bfd_section_size(section); + if (arg->pc >= vma + size) + return; + diff --git a/memstomp.spec b/memstomp.spec index fbdb11e..41309b9 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 28%{?dist} +Release: 29%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -27,6 +27,7 @@ Patch4: memstomp-quietmode.patch Patch5: memstomp-rh1093173.patch Patch6: memstomp-rh1133815.patch Patch7: memstomp-implicit-int.patch +Patch8: bfd-api-change.patch %description @@ -46,6 +47,7 @@ overlapping memory arguments to certain library calls. %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 %build @@ -70,6 +72,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Mon May 18 2020 Jeff Law - 0.1.4-29 +- Various fixes for API changes in bfd + * Wed Jan 29 2020 Fedora Release Engineering - 0.1.4-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 6deda540a001c05a7092b92ce5cf6f83578fa096 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jul 2020 07:15:36 +0000 Subject: [PATCH 05/23] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 41309b9..fae5584 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 29%{?dist} +Release: 30%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -72,6 +72,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Tue Jul 28 2020 Fedora Release Engineering - 0.1.4-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon May 18 2020 Jeff Law - 0.1.4-29 - Various fixes for API changes in bfd From 151f387a716b0d70277e3c04066f53c1b1e4c181 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 6 Jan 2021 21:40:29 +0000 Subject: [PATCH 06/23] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- memstomp.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/memstomp.spec b/memstomp.spec index fae5584..763535f 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -16,6 +16,7 @@ URL: git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp # git archive --prefix memstomp-0.1.4-38573e7d/ master | gzip > memstomp-0.1.4-3867e37d.tar.gz Source0: %{name}-%{version}-%{githash}.tar.gz Requires: util-linux +BuildRequires: make BuildRequires: gcc BuildRequires: binutils-devel autoconf automake dejagnu From 524108f91f29b6fe12de72e45ab81e8063331c24 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 19:37:52 +0000 Subject: [PATCH 07/23] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 763535f..ec823ce 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 30%{?dist} +Release: 31%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -73,6 +73,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 0.1.4-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Tue Jul 28 2020 Fedora Release Engineering - 0.1.4-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 190d2b9ae6adfc3585b4ce08d3334c7ec38312c6 Mon Sep 17 00:00:00 2001 From: Sergey Kolosov Date: Tue, 30 Mar 2021 17:21:39 +0200 Subject: [PATCH 08/23] Introduce CI gating --- .fmf/version | 1 + gating.yaml | 20 +++++ plans/ci.fmf | 6 ++ tests/Sanity/memstomp-testsuite/Makefile | 64 ++++++++++++++++ tests/Sanity/memstomp-testsuite/PURPOSE | 3 + tests/Sanity/memstomp-testsuite/main.fmf | 20 +++++ tests/Sanity/memstomp-testsuite/runtest.sh | 87 ++++++++++++++++++++++ 7 files changed, 201 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/ci.fmf create mode 100644 tests/Sanity/memstomp-testsuite/Makefile create mode 100644 tests/Sanity/memstomp-testsuite/PURPOSE create mode 100644 tests/Sanity/memstomp-testsuite/main.fmf create mode 100755 tests/Sanity/memstomp-testsuite/runtest.sh 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/gating.yaml b/gating.yaml new file mode 100644 index 0000000..84b7773 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,20 @@ +--- !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} + - !PassingTestCaseRule {test_case_name: baseos-qe.koji-build.scratch-build.validation} +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} diff --git a/plans/ci.fmf b/plans/ci.fmf new file mode 100644 index 0000000..1ad2c12 --- /dev/null +++ b/plans/ci.fmf @@ -0,0 +1,6 @@ +summary: CI Gating Plan +discover: + how: fmf + directory: tests +execute: + how: beakerlib diff --git a/tests/Sanity/memstomp-testsuite/Makefile b/tests/Sanity/memstomp-testsuite/Makefile new file mode 100644 index 0000000..189fbe8 --- /dev/null +++ b/tests/Sanity/memstomp-testsuite/Makefile @@ -0,0 +1,64 @@ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Makefile of /tools/memstomp/Sanity/memstomp-testsuite +# Description: Runs memstomp testsuite on installed packages +# Author: Miroslav Franc +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2013 Red Hat, Inc. All rights reserved. +# +# This copyrighted material is made available to anyone wishing +# to use, modify, copy, or redistribute it subject to the terms +# and conditions of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +export TEST=/tools/memstomp/Sanity/memstomp-testsuite +export TESTVERSION=1.0 + +BUILT_FILES= + +FILES=$(METADATA) runtest.sh Makefile PURPOSE + +.PHONY: all install download clean + +run: $(FILES) build + ./runtest.sh + +build: $(BUILT_FILES) + test -x runtest.sh || chmod a+x runtest.sh + +clean: + rm -f *~ $(BUILT_FILES) + + +include /usr/share/rhts/lib/rhts-make.include + +$(METADATA): Makefile + @echo "Owner: Miroslav Franc " > $(METADATA) + @echo "Name: $(TEST)" >> $(METADATA) + @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) + @echo "Path: $(TEST_DIR)" >> $(METADATA) + @echo "Description: Runs memstomp testsuite on installed packages" >> $(METADATA) + @echo "Type: Sanity" >> $(METADATA) + @echo "TestTime: 15m" >> $(METADATA) + @echo "RunFor: memstomp" >> $(METADATA) + @echo "Requires: autoconf automake binutils-devel dejagnu gcc gcc-c++ glibc-devel memstomp rpm-build" >> $(METADATA) + @echo "Priority: Normal" >> $(METADATA) + @echo "License: GPLv2" >> $(METADATA) + @echo "Confidential: no" >> $(METADATA) + @echo "Destructive: no" >> $(METADATA) + @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL8 -RHEL9" >> $(METADATA) + + rhts-lint $(METADATA) diff --git a/tests/Sanity/memstomp-testsuite/PURPOSE b/tests/Sanity/memstomp-testsuite/PURPOSE new file mode 100644 index 0000000..8be9f56 --- /dev/null +++ b/tests/Sanity/memstomp-testsuite/PURPOSE @@ -0,0 +1,3 @@ +PURPOSE of /tools/memstomp/Sanity/memstomp-testsuite +Description: Runs memstomp testsuite on installed packages +Author: Miroslav Franc diff --git a/tests/Sanity/memstomp-testsuite/main.fmf b/tests/Sanity/memstomp-testsuite/main.fmf new file mode 100644 index 0000000..6388c8a --- /dev/null +++ b/tests/Sanity/memstomp-testsuite/main.fmf @@ -0,0 +1,20 @@ +summary: Runs memstomp testsuite on installed packages +description: '' +contact: Miroslav Franc +component: +- memstomp +test: ./runtest.sh +framework: beakerlib +recommend: +- autoconf +- automake +- binutils-devel +- dejagnu +- gcc +- gcc-c++ +- glibc-devel +- memstomp +- rpm-build +duration: 15m +extra-summary: /tools/memstomp/Sanity/memstomp-testsuite +extra-task: /tools/memstomp/Sanity/memstomp-testsuite diff --git a/tests/Sanity/memstomp-testsuite/runtest.sh b/tests/Sanity/memstomp-testsuite/runtest.sh new file mode 100755 index 0000000..ad1a6d6 --- /dev/null +++ b/tests/Sanity/memstomp-testsuite/runtest.sh @@ -0,0 +1,87 @@ +#!/bin/bash +# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /tools/memstomp/Sanity/memstomp-testsuite +# Description: Runs memstomp testsuite on installed packages +# Author: Miroslav Franc +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2013 Red Hat, Inc. All rights reserved. +# +# This copyrighted material is made available to anyone wishing +# to use, modify, copy, or redistribute it subject to the terms +# and conditions of the GNU General Public License version 2. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGES=(binutils-devel autoconf automake dejagnu) + +if [[ $(arch) == i686 ]] +then + ourlibdir=lib +else + ourlibdir=lib64 +fi + +PACKAGE=memstomp + +if scl_enabled +then + for p in ${X_SCLS} + do + [[ $p == devtoolset* ]] && PACKAGE=${p}-${PACKAGE} + done; unset p +fi + +rlJournalStart + rlPhaseStartSetup "testing $PACKAGE" + for p in "${PACKAGES[@]}"; do + rpm -q "$p" || yum -y install "$p" + rlAssertRpm "$p" + done; unset p + rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" + rlRun "pushd $TmpDir" + rlRun "echo '%_topdir /root/memstomp-rebuild' > ~/.rpmmacros" + rlRun "mkdir -p /root/memstomp-rebuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}" + rlFetchSrcForInstalled $PACKAGE + rlRun "rpm -Uvh *.src.rpm" + export CC=/usr/bin/gcc + rlRun "rpmbuild -bi /root/memstomp-rebuild/SPECS/memstomp.spec &> build_log" + rlFileSubmit build_log + rlRun "pushd /root/memstomp-rebuild/BUILD/memstomp-*/testsuite" + rlLog "We should run this on installed packages..." + rlRun "find /root/memstomp-rebuild/ -name libmemstomp.so -delete" + rlRun "find /root/memstomp-rebuild/ -name libmemstomp-backtrace-symbols.so -delete" + rlPhaseEnd + + rlPhaseStartTest + rlRun "runtest -v --tool memstomp --srcdir `pwd` > $TmpDir/log 2>&1" + rlAssertNotGrep 'unexpected failures' $TmpDir/log + rlLog "No testcases should disappear..." + rlRun "[[ $(grep '# of expected passes' $TmpDir/log | awk '{print $5}') -ge 88 ]]" + rlLog "$(sed -n '/=== memstomp Summary ===/,$p' $TmpDir/log)" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd"; rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlRun "rm -r /root/memstomp-rebuild" + rlRun "rm -r ~/.rpmmacros" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd From 8a53feacf43a484b1ed32f3927be44c62ebcfe37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kadl=C4=8D=C3=ADk?= Date: Thu, 10 Jun 2021 08:49:51 +0200 Subject: [PATCH 09/23] Do not use a kernel rebuild as a gating test baseos-qe.koji-build.scratch-build.validation is a scratch kernel build test. While it is important for components like gcc, it's probably an overkill for memstomp, not to mention the testing time. --- gating.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/gating.yaml b/gating.yaml index 84b7773..ce3cdc1 100644 --- a/gating.yaml +++ b/gating.yaml @@ -5,7 +5,6 @@ decision_context: bodhi_update_push_stable subject_type: koji_build rules: - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} - - !PassingTestCaseRule {test_case_name: baseos-qe.koji-build.scratch-build.validation} --- !Policy product_versions: - rhel-8 From b0d752f9c87843754a128b3c5658f18bb322df1a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 14:07:44 +0000 Subject: [PATCH 10/23] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index ec823ce..bdf1e61 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 31%{?dist} +Release: 32%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -73,6 +73,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 0.1.4-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 0.1.4-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 9940f5ee4b39e57956017dade7cf08677d0ba7e6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 19:04:50 +0000 Subject: [PATCH 11/23] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index bdf1e61..8d41c8f 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 32%{?dist} +Release: 33%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -73,6 +73,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.1.4-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 0.1.4-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 8469af446bdda8c70962c67e3ed09f36d2fa72be Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 20:55:50 +0000 Subject: [PATCH 12/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 8d41c8f..751f06a 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 33%{?dist} +Release: 34%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -73,6 +73,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 0.1.4-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 0.1.4-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 4b106f22211308ba2387f983edf6ca199b570a97 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 19:21:35 +0000 Subject: [PATCH 13/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 751f06a..9df1c3c 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 34%{?dist} +Release: 35%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -73,6 +73,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 0.1.4-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jul 21 2022 Fedora Release Engineering - 0.1.4-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 064ab9b3dae6b5ed4c35f72f0cd1309577ad0fbd Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 20 Feb 2023 11:44:22 -0700 Subject: [PATCH 14/23] - Fix for libibery no longer providing PTR (#2171607) --- memstomp-PTR.patch | 17 +++++++++++++++++ memstomp.spec | 8 +++++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 memstomp-PTR.patch diff --git a/memstomp-PTR.patch b/memstomp-PTR.patch new file mode 100644 index 0000000..0afb7d8 --- /dev/null +++ b/memstomp-PTR.patch @@ -0,0 +1,17 @@ +diff --git a/backtrace-symbols.c b/backtrace-symbols.c +index 5384e2e..9fc464a 100644 +--- a/backtrace-symbols.c ++++ b/backtrace-symbols.c +@@ -90,10 +90,10 @@ static asymbol **slurp_symtab(bfd *const abfd) + return syms; + + unsigned int size; +- long symcount = bfd_read_minisymbols(abfd, false, (PTR) & syms, &size); ++ long symcount = bfd_read_minisymbols(abfd, false, (void *) & syms, &size); + if (symcount == 0) + symcount = bfd_read_minisymbols(abfd, true /* dynamic */ , +- (PTR) & syms, &size); ++ (void *) & syms, &size); + + if (symcount < 0) + bfd_fatal(bfd_get_filename(abfd)); diff --git a/memstomp.spec b/memstomp.spec index 9df1c3c..a6efae3 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 35%{?dist} +Release: 36%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -29,6 +29,7 @@ Patch5: memstomp-rh1093173.patch Patch6: memstomp-rh1133815.patch Patch7: memstomp-implicit-int.patch Patch8: bfd-api-change.patch +Patch9: memstomp-PTR.patch %description @@ -49,6 +50,7 @@ overlapping memory arguments to certain library calls. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build @@ -73,6 +75,10 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Mon Feb 20 2023 Jeff Law - 0.1.4-36 +- Fix for libibery no longer providing PTR + (#2171607) + * Thu Jan 19 2023 Fedora Release Engineering - 0.1.4-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From c819fe3502441bfbafd586cbc02300a1b00ff015 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Mon, 6 Mar 2023 14:38:05 -0500 Subject: [PATCH 15/23] Link in binutils sframe library when available to fix FTBFS. (rhbz#2171607) --- memstomp-sframe.patch | 12 ++++++++++++ memstomp.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 memstomp-sframe.patch diff --git a/memstomp-sframe.patch b/memstomp-sframe.patch new file mode 100644 index 0000000..b0091eb --- /dev/null +++ b/memstomp-sframe.patch @@ -0,0 +1,12 @@ +diff -up memstomp-0.1.4-38573e7d/configure.ac.orig memstomp-0.1.4-38573e7d/configure.ac +--- memstomp-0.1.4-38573e7d/configure.ac.orig 2023-03-06 14:07:57.086183046 -0500 ++++ memstomp-0.1.4-38573e7d/configure.ac 2023-03-06 14:16:31.513215306 -0500 +@@ -76,6 +76,8 @@ AC_SEARCH_LIBS([htab_find_slot], [iberty + AC_CHECK_HEADERS([libiberty.h], [], [AC_MSG_ERROR([*** libiberty.h header not found])]) + AC_SEARCH_LIBS([bfd_init], [bfd], [], [AC_MSG_ERROR([*** libbfd not found])]) + AC_CHECK_HEADERS([bfd.h], [], [AC_MSG_ERROR([*** bfd.h header not found])]) ++# Newer binutils-2.40 also need to link with sframe library ++AC_SEARCH_LIBS(sframe_decode, sframe) + + #### Typdefs, structures, etc. #### + diff --git a/memstomp.spec b/memstomp.spec index a6efae3..b485af9 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 36%{?dist} +Release: 37%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -30,6 +30,7 @@ Patch6: memstomp-rh1133815.patch Patch7: memstomp-implicit-int.patch Patch8: bfd-api-change.patch Patch9: memstomp-PTR.patch +Patch10: memstomp-sframe.patch %description @@ -51,6 +52,7 @@ overlapping memory arguments to certain library calls. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build @@ -75,6 +77,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Mon Mar 6 2023 William Cohen - 0.1.4-37 +- Link in binutils sframe library when available to fix FTBFS. (rhbz#2171607) + * Mon Feb 20 2023 Jeff Law - 0.1.4-36 - Fix for libibery no longer providing PTR (#2171607) From c1803184754e58e3ea461d0bf4b969ce93514306 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jul 2023 14:13:53 +0000 Subject: [PATCH 16/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index b485af9..4493170 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 37%{?dist} +Release: 38%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -77,6 +77,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jul 20 2023 Fedora Release Engineering - 0.1.4-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Mon Mar 6 2023 William Cohen - 0.1.4-37 - Link in binutils sframe library when available to fix FTBFS. (rhbz#2171607) From b0677f3155f18b2f5a3048230b910124bca17a84 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 07:19:15 +0000 Subject: [PATCH 17/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 4493170..cd0fdf3 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 38%{?dist} +Release: 39%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -77,6 +77,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 0.1.4-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Jul 20 2023 Fedora Release Engineering - 0.1.4-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 56ef5c32cd82f04ccf1c97505b21592bfcad342a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 06:11:31 +0000 Subject: [PATCH 18/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index cd0fdf3..646fbc8 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 39%{?dist} +Release: 40%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -77,6 +77,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jan 25 2024 Fedora Release Engineering - 0.1.4-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 0.1.4-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From b20ae3eaefc76a6dfd414ae577e38dcb2429abfc Mon Sep 17 00:00:00 2001 From: Software Management Team Date: Thu, 30 May 2024 12:46:47 +0200 Subject: [PATCH 19/23] Eliminate use of obsolete %patchN syntax (#2283636) --- memstomp.spec | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/memstomp.spec b/memstomp.spec index 646fbc8..e120acb 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -42,17 +42,17 @@ overlapping memory arguments to certain library calls. %prep %setup -q -n %{name}-%{version}-%{githash} -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 +%patch -P0 -p1 +%patch -P1 -p1 +%patch -P2 -p1 +%patch -P3 -p1 +%patch -P4 -p1 +%patch -P5 -p1 +%patch -P6 -p1 +%patch -P7 -p1 +%patch -P8 -p1 +%patch -P9 -p1 +%patch -P10 -p1 %build From 74ac3959bd505dab78eb64d95392fbd299306419 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 17:11:09 +0000 Subject: [PATCH 20/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index e120acb..6aae5c1 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 40%{?dist} +Release: 41%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -77,6 +77,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 0.1.4-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Thu Jan 25 2024 Fedora Release Engineering - 0.1.4-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From b6467618ccbd3ac7ea218e8fa0f0fabf5f9fab34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 7 Aug 2024 09:46:41 +0200 Subject: [PATCH 21/23] convert license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- memstomp.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/memstomp.spec b/memstomp.spec index 6aae5c1..5aeb574 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,12 +2,13 @@ Name: memstomp Version: 0.1.4 -Release: 41%{?dist} +Release: 42%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. # backtrace-symbols.c is built into an independent .so to avoid license contamination -License: LGPLv3+ and GPLv2+ +# Automatically converted from old format: LGPLv3+ and GPLv2+ - review is highly recommended. +License: LGPL-3.0-or-later AND GPL-2.0-or-later URL: git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: @@ -77,6 +78,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Wed Aug 07 2024 Miroslav Suchý - 0.1.4-42 +- convert license to SPDX + * Thu Jul 18 2024 Fedora Release Engineering - 0.1.4-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From e01abe70697af9ccc7e7d92211e6d516fe9c7cc7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 17:25:58 +0000 Subject: [PATCH 22/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index 5aeb574..a0cd7ff 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 42%{?dist} +Release: 43%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -78,6 +78,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 0.1.4-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Aug 07 2024 Miroslav Suchý - 0.1.4-42 - convert license to SPDX From f8e1e2710624f9cb09dac13b1eba35282743eaff Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 21:32:07 +0000 Subject: [PATCH 23/23] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- memstomp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memstomp.spec b/memstomp.spec index a0cd7ff..9f47afa 100644 --- a/memstomp.spec +++ b/memstomp.spec @@ -2,7 +2,7 @@ Name: memstomp Version: 0.1.4 -Release: 43%{?dist} +Release: 44%{?dist} Summary: Warns of memory argument overlaps to various functions # The entire source code is LGPLV3+ with the exception of backtrace-symbols.c which # is GPLv2+ by way of being a hacked up old version of binutils's addr2line. @@ -78,6 +78,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_mandir}/man1/memstomp.1.gz %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 0.1.4-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Fri Jan 17 2025 Fedora Release Engineering - 0.1.4-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild