Disable libbfd buildid support, it seems to fail to build. archive/raspbian/5.15.15-2+rpi1 raspbian/5.15.15-2+rpi1
authorPeter Michael Green <plugwash@raspbian.org>
Tue, 15 Feb 2022 17:10:22 +0000 (17:10 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 15 Feb 2022 17:11:02 +0000 (17:11 +0000)
debian/changelog
debian/patches/perf-avoid-binutils-buildid.patch [new file with mode: 0644]
debian/patches/series
tools/perf/util/symbol-elf.c

index 52e2f48a14d7e3c20bc807cb8b625590650d33e9..a3af3241454c6deef490409f473a9b224b34ea11 100644 (file)
@@ -3,6 +3,9 @@ linux (5.15.15-2+rpi1) bookworm-staging; urgency=medium
   [changes brought forward from 4.14.13-1+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Wed, 07 Feb 2018 23:32:32 +0000]
   * Disable kernel builds from this package, we build our kernels from other source packages.
 
+  [changes introduced in 5.15.15-2+rpi1 by Peter Michael Green]
+  * Disable libbfd buildid support, it seems to fail to build.
+
  -- Peter Michael Green <plugwash@raspbian.org>  Sun, 13 Feb 2022 14:24:17 +0000
 
 linux (5.15.15-2) unstable; urgency=high
diff --git a/debian/patches/perf-avoid-binutils-buildid.patch b/debian/patches/perf-avoid-binutils-buildid.patch
new file mode 100644 (file)
index 0000000..bd05f2e
--- /dev/null
@@ -0,0 +1,32 @@
+Description: Disable libbfd buildid support, it seems to fail to build.
+Author: Peter Michael Green <plugwash@raspbian.org>
+
+--- linux-5.15.15.orig/tools/perf/util/symbol-elf.c
++++ linux-5.15.15/tools/perf/util/symbol-elf.c
+@@ -537,7 +537,7 @@ out:
+       return err;
+ }
+-#ifdef HAVE_LIBBFD_BUILDID_SUPPORT
++/*#ifdef HAVE_LIBBFD_BUILDID_SUPPORT
+ static int read_build_id(const char *filename, struct build_id *bid)
+ {
+@@ -566,7 +566,7 @@ out_close:
+       return err;
+ }
+-#else // HAVE_LIBBFD_BUILDID_SUPPORT
++#else // HAVE_LIBBFD_BUILDID_SUPPORT */
+ static int read_build_id(const char *filename, struct build_id *bid)
+ {
+@@ -598,7 +598,7 @@ out:
+       return err;
+ }
+-#endif // HAVE_LIBBFD_BUILDID_SUPPORT
++//#endif // HAVE_LIBBFD_BUILDID_SUPPORT
+ int filename__read_build_id(const char *filename, struct build_id *bid)
+ {
index c9c555a10aefe442be255e99bcacbd1be952af6f..83d13a1e475bee7143148627642f724e206e3978 100644 (file)
@@ -129,3 +129,4 @@ bugfix/all/tools-include-uapi-fix-errno.h.patch
 bugfix/all/perf-srcline-Use-long-running-addr2line-per-DSO.patch
 
 # ABI maintenance
+perf-avoid-binutils-buildid.patch
index 31cd59a2b66e6cc2223ad6fb18bfe90d40e9d4b2..2cf11d5a293df2597305ae42d89ca5dca60f32e6 100644 (file)
@@ -537,7 +537,7 @@ out:
        return err;
 }
 
-#ifdef HAVE_LIBBFD_BUILDID_SUPPORT
+/*#ifdef HAVE_LIBBFD_BUILDID_SUPPORT
 
 static int read_build_id(const char *filename, struct build_id *bid)
 {
@@ -566,7 +566,7 @@ out_close:
        return err;
 }
 
-#else // HAVE_LIBBFD_BUILDID_SUPPORT
+#else // HAVE_LIBBFD_BUILDID_SUPPORT */
 
 static int read_build_id(const char *filename, struct build_id *bid)
 {
@@ -598,7 +598,7 @@ out:
        return err;
 }
 
-#endif // HAVE_LIBBFD_BUILDID_SUPPORT
+//#endif // HAVE_LIBBFD_BUILDID_SUPPORT
 
 int filename__read_build_id(const char *filename, struct build_id *bid)
 {