Update to 12.3.0

Add patch for cmake 3.27 support
This commit is contained in:
Orion Poplawski 2023-06-09 20:11:41 -06:00
parent df818674e3
commit 05e041c920
6 changed files with 27 additions and 117 deletions

2
.gitignore vendored
View File

@ -33,3 +33,5 @@
/testsuite-12.1.0.tar.gz /testsuite-12.1.0.tar.gz
/dyninst-12.2.0.tar.gz /dyninst-12.2.0.tar.gz
/testsuite-12.2.0.tar.gz /testsuite-12.2.0.tar.gz
/dyninst-12.3.0.tar.gz
/testsuite-12.3.0.tar.gz

View File

@ -1,12 +0,0 @@
# c++/12/bits/basic_string.h in libstdc++-devel-12.1.1-3 no longer includes <ext/atomicity.h>
# atomicity.h includes gthr -> gthr-default -> pthread .h -> time.h -> struct-tm.h
# so explicitly include time.h
--- testsuite-12.1.0/src/CmdLine.C
+++ testsuite-12.1.0/src/CmdLine.C
@@ -38,5 +38,3 @@
-#if defined(os_windows_test)
#include <time.h>
-#endif

11
dyninst-cmake3.27.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up dyninst-12.3.0/cmake/warnings.cmake.cmake3.27 dyninst-12.3.0/cmake/warnings.cmake
--- dyninst-12.3.0/cmake/warnings.cmake.cmake3.27 2023-02-22 14:39:56.000000000 -0700
+++ dyninst-12.3.0/cmake/warnings.cmake 2023-06-09 19:59:32.831350952 -0600
@@ -127,6 +127,7 @@ endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang)$")
include(CheckCXXCompilerFlag)
+ include(CheckCXXSourceCompiles)
foreach(f IN LISTS REQUESTED_WARNING_FLAGS)
string(REGEX REPLACE "[^a-zA-Z0-9]" "_" v "HAS_CPP_FLAG_${f}")
set(CMAKE_REQUIRED_FLAGS "-${f}")

View File

@ -2,18 +2,18 @@ Summary: An API for Run-time Code Generation
License: LGPLv2+ License: LGPLv2+
Name: dyninst Name: dyninst
Group: Development/Libraries Group: Development/Libraries
Release: 4%{?dist} Release: 1%{?dist}
URL: http://www.dyninst.org URL: http://www.dyninst.org
Version: 12.2.0 Version: 12.3.0
ExclusiveArch: %{ix86} x86_64 ppc64le aarch64 ExclusiveArch: %{ix86} x86_64 ppc64le aarch64
%define __testsuite_version 12.2.0 %define __testsuite_version 12.3.0
Source0: https://github.com/dyninst/dyninst/archive/v%{version}/dyninst-%{version}.tar.gz Source0: https://github.com/dyninst/dyninst/archive/v%{version}/dyninst-%{version}.tar.gz
Source1: https://github.com/dyninst/testsuite/archive/%{__testsuite_version}/testsuite-%{__testsuite_version}.tar.gz Source1: https://github.com/dyninst/testsuite/archive/v%{__testsuite_version}/testsuite-%{__testsuite_version}.tar.gz
Patch1: dwarf-error.patch Patch1: dwarf-error.patch
Patch2: cmdline.patch # Support cmake 3.27 - https://github.com/dyninst/dyninst/pull/1438
Patch3: rhbz2173030.patch Patch2: dyninst-cmake3.27.patch
%global dyninst_base dyninst-%{version} %global dyninst_base dyninst-%{version}
%global testsuite_base testsuite-%{__testsuite_version} %global testsuite_base testsuite-%{__testsuite_version}
@ -82,15 +82,8 @@ making sure that dyninst works properly.
%setup -q -T -D -a 1 %setup -q -T -D -a 1
pushd %{dyninst_base} pushd %{dyninst_base}
%patch1 -p1 -b .dwerr %patch -P1 -p1 -b .dwerr
popd %patch -P2 -p1 -b .cmake3.27
pushd %{testsuite_base}
%patch2 -p1 -b .cmdline
popd
pushd %{dyninst_base}
%patch3 -p1
popd popd
# cotire seems to cause non-deterministic gcc errors # cotire seems to cause non-deterministic gcc errors
@ -193,6 +186,10 @@ find %{buildroot}%{_libdir}/dyninst/testsuite/ \
%attr(644,root,root) %{_libdir}/dyninst/testsuite/*.a %attr(644,root,root) %{_libdir}/dyninst/testsuite/*.a
%changelog %changelog
* Sat Jun 10 2023 Orion Poplawski <orion@nwra.com> - 12.3.0-1
- Update to 12.3.0
- Add patch for cmake 3.27 support
* Thu Feb 23 2023 Frank Ch. Eigler <fche@redhat.com> - 12.2.0-4 * Thu Feb 23 2023 Frank Ch. Eigler <fche@redhat.com> - 12.2.0-4
- rhbz2173030: ftbfs with gcc 13 - rhbz2173030: ftbfs with gcc 13

View File

@ -1,88 +0,0 @@
commit 358db4610e4919690d928797713bef3cf67ef61d
gpg: Signature made Wed 22 Feb 2023 10:51:01 AM EST
gpg: using RSA key 4AEE18F83AFDEB23
gpg: Good signature from "GitHub (web-flow commit signing) <noreply@github.com>" [full]
Author: kupsch <kupsch@cs.wisc.edu>
Date: Wed Feb 22 09:51:01 2023 -0600
explicitly include <array> (#1384)
- std::array is used in this file, but not included explicitly as
on many systems this header is implicitly included recursively
via another included file. On new versions of headers this may
no longer be the case, so explicitly include it.
diff --git a/instructionAPI/src/InstructionDecoder-aarch64.h b/instructionAPI/src/InstructionDecoder-aarch64.h
index 7994d0b1cc81..ae516232a68b 100644
--- a/instructionAPI/src/InstructionDecoder-aarch64.h
+++ b/instructionAPI/src/InstructionDecoder-aarch64.h
@@ -28,6 +28,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <array>
#include "InstructionDecoderImpl.h"
#include <iostream>
#include "Immediate.h"
commit 0cd2b8b7858f48cd60e070010bb6600a1f44180e
gpg: Signature made Wed 22 Feb 2023 04:03:20 PM EST
gpg: using RSA key 4AEE18F83AFDEB23
gpg: Good signature from "GitHub (web-flow commit signing) <noreply@github.com>" [full]
Author: Tim Haines <thaines.astro@gmail.com>
Date: Wed Feb 22 15:03:20 2023 -0600
Add missing <array> includes (#1385)
These were showing up on ufront@rice.
diff --git a/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.C b/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.C
index e852f47437a1..f62b1f5463e8 100644
--- a/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.C
+++ b/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.C
@@ -30,6 +30,7 @@
#include "Ternary.h"
#include "InstructionDecoder-amdgpu-cdna2.h"
+#include <array>
namespace Dyninst {
namespace InstructionAPI {
diff --git a/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.C b/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.C
index 449255ae00b4..3093ece41002 100644
--- a/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.C
+++ b/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.C
@@ -30,6 +30,7 @@
#include "Ternary.h"
#include "InstructionDecoder-amdgpu-vega.h"
+#include <array>
namespace Dyninst {
namespace InstructionAPI {
commit 2e3bf92eedf575c780e4381ae810a050ee404f03
gpg: Signature made Thu 05 Jan 2023 02:13:14 PM EST
gpg: using RSA key 4AEE18F83AFDEB23
gpg: Good signature from "GitHub (web-flow commit signing) <noreply@github.com>" [full]
Author: kupsch <kupsch@cs.wisc.edu>
Date: Thu Jan 5 13:13:14 2023 -0600
add missing include file (#1344)
- add missing #include <deque>
On more platforms and library combinations <deque> is included via
some other header, but there is combination where this is not true
diff --git a/dataflowAPI/src/AbslocInterface.C b/dataflowAPI/src/AbslocInterface.C
index 9d7ad000c2b6..582e64004967 100644
--- a/dataflowAPI/src/AbslocInterface.C
+++ b/dataflowAPI/src/AbslocInterface.C
@@ -29,6 +29,7 @@
*/
+#include <deque>
#include "Absloc.h"
#include "AbslocInterface.h"

View File

@ -1,2 +1,2 @@
SHA512 (dyninst-12.2.0.tar.gz) = 3c29b77bd2213c58ec0ccb04a8cc70314b66924a151f29b30de14d171cf5d61b53a323d97456e51687d02e6c6095bb8b0e6eab103a75f150507c4eb8657f258c SHA512 (dyninst-12.3.0.tar.gz) = 894980c2ce0701c0544877e841e2933a59963eb49ff9b8cde17f67e300d618b77e9fc95f60301a4b8ecaee729010fbab3ec78ef6e2c2fcea118c56d26cb1c3ce
SHA512 (testsuite-12.2.0.tar.gz) = 4510de4413989a558697c3cf7dbd742d2ccc2c31603f04ed87dc4d7d90908ba99a6993e1a84f820caadbbf46f190ce85c99bbb1030a1fac7022a662f8439bed5 SHA512 (testsuite-12.3.0.tar.gz) = c8d09395cc37ac1ebbd73049e365b703d1fc904d84b73c7749809d8f9dc36ce0b3b842a2fa9e28ba6ffda4e6d2aeb4ca70c2265d3cacc199db3d10c26a12df33