jcapik pushed to libdwarf (f22). "- ppc linker bug workaround (#1208467)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 15 17:35:57 UTC 2015
>From 37c487bf9631245063eb36f9853779c241863259 Mon Sep 17 00:00:00 2001
From: Jaromir Capik <jcapik at redhat.com>
Date: Wed, 15 Apr 2015 19:34:57 +0200
Subject: - ppc linker bug workaround (#1208467)
diff --git a/libdwarf-uninitialized-optopt-linker-conflict-workaround.patch b/libdwarf-uninitialized-optopt-linker-conflict-workaround.patch
new file mode 100644
index 0000000..46abcb8
--- /dev/null
+++ b/libdwarf-uninitialized-optopt-linker-conflict-workaround.patch
@@ -0,0 +1,24 @@
+diff -Naur dwarf-20150310.orig/dwarfdump/dwgetopt.c dwarf-20150310/dwarfdump/dwgetopt.c
+--- dwarf-20150310.orig/dwarfdump/dwgetopt.c 2015-03-10 16:59:49.000000000 +0100
++++ dwarf-20150310/dwarfdump/dwgetopt.c 2015-04-15 19:15:02.311785906 +0200
+@@ -52,7 +52,7 @@
+
+ int opterr = 1, /* if error message should be printed */
+ optind = 1, /* index into parent argv vector */
+- optopt, /* character checked for validity */
++ optopt = 0, /* character checked for validity */
+ optreset; /* reset getopt */
+ char *optarg; /* argument associated with option */
+
+diff -Naur dwarf-20150310.orig/libdwarf/dwgetopt.c dwarf-20150310/libdwarf/dwgetopt.c
+--- dwarf-20150310.orig/libdwarf/dwgetopt.c 2015-03-10 17:01:44.000000000 +0100
++++ dwarf-20150310/libdwarf/dwgetopt.c 2015-04-15 19:15:32.621786769 +0200
+@@ -52,7 +52,7 @@
+
+ int opterr = 1, /* if error message should be printed */
+ optind = 1, /* index into parent argv vector */
+- optopt, /* character checked for validity */
++ optopt = 0, /* character checked for validity */
+ optreset; /* reset getopt */
+ char *optarg; /* argument associated with option */
+
diff --git a/libdwarf.spec b/libdwarf.spec
index b7964be..20918db 100644
--- a/libdwarf.spec
+++ b/libdwarf.spec
@@ -6,7 +6,7 @@
Name: libdwarf
Version: 20150310
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Library to access the DWARF Debugging file format
Group: Development/Libraries
@@ -14,6 +14,8 @@ License: LGPLv2
URL: http://www.prevanders.net/dwarf.html
Source0: http://www.prevanders.net/%{name}-%{version}.tar.gz
Patch0: libdwarf-shlib.patch
+#1208467 - FTBFS workaround (ppc linker bug)
+Patch1: libdwarf-uninitialized-optopt-linker-conflict-workaround.patch
BuildRequires: binutils-devel elfutils-libelf-devel
@@ -53,6 +55,7 @@ to access DWARF debug information.
%prep
%setup -q -n dwarf-%{version}
%patch0 -p1 -b .shlib
+%patch1 -p1 -b .optopt
%build
%configure --enable-shared
@@ -89,6 +92,9 @@ install -pDm 0755 dwarfdump/dwarfdump %{buildroot}%{_bindir}/dwarfdump
%{_bindir}/dwarfdump
%changelog
+* Wed Apr 15 2015 Jaromir Capik <jcapik at redhat.com> - 20150310-3
+- ppc linker bug workaround (#1208467)
+
* Thu Mar 12 2015 Tom Hughes <tom at compton.nu> - 20150310-2
- Disable hardened builds for now
- Drop explicit CFLAGS as %%configure sets them anyway
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/libdwarf.git/commit/?h=f22&id=37c487bf9631245063eb36f9853779c241863259
More information about the scm-commits
mailing list