diff -Nru oprofile-1.4.0/debian/changelog oprofile-1.4.0/debian/changelog --- oprofile-1.4.0/debian/changelog 2021-01-21 20:31:18.000000000 +0000 +++ oprofile-1.4.0/debian/changelog 2023-12-07 12:21:47.000000000 +0000 @@ -1,3 +1,9 @@ +oprofile (1.4.0-0ubuntu8) noble; urgency=medium + + * libbfd needs libzstd and libsframe. (LP: #2045844) + + -- Sudip Mukherjee Thu, 07 Dec 2023 12:21:47 +0000 + oprofile (1.4.0-0ubuntu7) hirsute; urgency=medium * Link with the static bfd library. diff -Nru oprofile-1.4.0/debian/control oprofile-1.4.0/debian/control --- oprofile-1.4.0/debian/control 2020-09-22 12:14:53.000000000 +0100 +++ oprofile-1.4.0/debian/control 2023-12-07 12:21:47.000000000 +0000 @@ -16,7 +16,8 @@ pkg-config, xsltproc, zlib1g-dev, - default-jdk + default-jdk, + libzstd-dev Homepage: http://oprofile.sourceforge.net Vcs-Browser: http://git.printk.org/?p=liuqi/debian/oprofile.git;a=summary Vcs-git: git://git.printk.org/liuqi/debian/oprofile.git diff -Nru oprofile-1.4.0/debian/patches/static-libbfd.patch oprofile-1.4.0/debian/patches/static-libbfd.patch --- oprofile-1.4.0/debian/patches/static-libbfd.patch 2021-01-20 11:20:59.000000000 +0000 +++ oprofile-1.4.0/debian/patches/static-libbfd.patch 2023-12-07 12:21:47.000000000 +0000 @@ -5,7 +5,7 @@ LIBS="$ORIG_SAVE_LIBS" LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB" -BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB $Z_LIB" -+BFD_LIBS="-liberty $DL_LIB $INTL_LIB $Z_LIB" ++BFD_LIBS="-lsframe -lzstd -liberty $DL_LIB $INTL_LIB $Z_LIB" POPT_LIBS="-lpopt" AC_SUBST(LIBERTY_LIBS) AC_SUBST(BFD_LIBS) @@ -22,7 +22,7 @@ --- a/libopagent/Makefile.am +++ b/libopagent/Makefile.am -@@ -15,7 +15,7 @@ libopagent_la_CPPFLAGS = -I ${top_srcdir +@@ -15,7 +15,7 @@ libopagent_la_CPPFLAGS = -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ @@ -44,11 +44,13 @@ ../libutil/libutil.a --- a/m4/binutils.m4 +++ b/m4/binutils.m4 -@@ -9,16 +9,12 @@ AC_CHECK_FUNCS(xcalloc) +@@ -9,16 +9,14 @@ AC_CHECK_FUNCS(xcalloc) AC_CHECK_FUNCS(xmemdup) AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl"; DL_LIB="-ldl", DL_LIB="") AC_CHECK_LIB(intl, main, LIBS="$LIBS -lintl"; INTL_LIB="-lintl", INTL_LIB="") +AC_CHECK_LIB(z, compress, LIBS="$LIBS -lz"; Z_LIB="-lz", Z_LIB="") ++AC_CHECK_LIB(sframe, sframe_encoder_write, LIBS="$LIBS -lsframe") ++AC_CHECK_LIB(zstd, ZSTD_createDStream, LIBS="$LIBS -lzstd") -AC_CHECK_LIB(bfd, bfd_openr, LIBS="-lbfd $LIBS"; Z_LIB="", - [AC_CHECK_LIB(z, compress,