From 9d4d64a7ef7ee84cb5c2499e5bdf0fab19e208dc Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 10 Feb 2017 21:02:55 -0500 Subject: [PATCH] fix warnings/errors from latest compilers --- README | 3 +++ frysk-0.4-check-p-not-status.patch | 11 +++++++++++ frysk-0.4-jnixx-signed-unsigned.patch | 11 +++++++++++ frysk.spec | 9 ++++++++- 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 frysk-0.4-check-p-not-status.patch create mode 100644 frysk-0.4-jnixx-signed-unsigned.patch diff --git a/README b/README index b616b53..fbae01b 100644 --- a/README +++ b/README @@ -6,6 +6,9 @@ Fixing Fedora: - install fedora-packager +For a local build: + + $ fedpkg compile To do a scratch build: diff --git a/frysk-0.4-check-p-not-status.patch b/frysk-0.4-check-p-not-status.patch new file mode 100644 index 0000000..9b52d69 --- /dev/null +++ b/frysk-0.4-check-p-not-status.patch @@ -0,0 +1,11 @@ +--- frysk-0.4/frysk-sys/frysk/sys/proc/jni/Status.cxx.dist 2017-02-10 18:49:47.680517267 -0500 ++++ frysk-0.4/frysk-sys/frysk/sys/proc/jni/Status.cxx 2017-02-10 18:49:59.424346177 -0500 +@@ -91,7 +91,7 @@ + break; + } + } +- if (state == '\0') ++ if (*p == '\0') + return Status(env, NULL); + + // UID diff --git a/frysk-0.4-jnixx-signed-unsigned.patch b/frysk-0.4-jnixx-signed-unsigned.patch new file mode 100644 index 0000000..2a365be --- /dev/null +++ b/frysk-0.4-jnixx-signed-unsigned.patch @@ -0,0 +1,11 @@ +--- frysk-0.4/frysk-sys/jnixx/Printer.java.dist 2017-02-10 17:14:52.993596017 -0500 ++++ frysk-0.4/frysk-sys/jnixx/Printer.java 2017-02-10 17:15:20.770189841 -0500 +@@ -318,6 +318,8 @@ + || name.equals("xor") + || name.equals("not") + || name.equals("register") ++ || name.equals("signed") ++ || name.equals("unsigned") + ) { + return name + "$"; + } else { diff --git a/frysk.spec b/frysk.spec index 43a4cfb..42bbb4c 100644 --- a/frysk.spec +++ b/frysk.spec @@ -1,7 +1,7 @@ Summary: Execution analysis and debugging tool-suite Name: frysk Version: 0.4 -Release: 55%{?dist} +Release: 56%{?dist} # Fedora 17+ is still waiting for vte et.al. bindings. %define enable_gnome %{fedora}0 < 170 @@ -58,6 +58,8 @@ Patch35: frysk-0.4-clone-cursor.patch Patch36: frysk-0.4-fedpkg-lint-licence.patch Patch37: frysk-0.4-fedpkg-lint-solib.patch Patch38: frysk-0.4-gelf-newphdr.patch +Patch39: frysk-0.4-jnixx-signed-unsigned.patch +Patch40: frysk-0.4-check-p-not-status.patch Patch100: frysk-0.4-aclocaljavac.patch Patch101: frysk-0.4-cxx-scope.patch @@ -248,6 +250,8 @@ mv frysk-imports/libunwind/configure.{in,ac} %patch36 -p1 -z .fedpkg-lint-licence %patch37 -p1 -z .fedpkg-lint-solib %patch38 -p1 -z .gelf-newphdr +%patch39 -p1 -z .jnixx-signed-unsigned +%patch40 -p1 -z .check-p-not-status echo "%{version}-%{release}" > frysk-common/version.in @@ -437,6 +441,9 @@ rm -rf %{buildroot} %endif %changelog +* Fri Feb 10 2017 Andrew Cagney - 0.4-56 +- fix warnings/errors from latest compilers + * Fri Feb 10 2017 Fedora Release Engineering - 0.4-55 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild