package/elfutils: fix build with uclibc
PATCH 1/1 package/elfutils: fix build with uclibc
Update first patch to fix a build failure with uclibc and elfutils in version 0.183.0 which errors out if obstack is not found since
https://sourceware.org/git/?p=elfutils.git;a=commit;h=da855fc9cd415c288bfcb9de1f3d5eb329de0557
Indeed, obstack has been removed from uclibc-ng since version 1.0.21 and
https://github.com/wbx-github/uclibc-ng/commit/0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15
Fixes:
- http://autobuild.buildroot.org/results/003ae73c7b48ad6b9837fb19ca197061d20eaf6d
--- ...-Add-a-enable-disable-progs-configure-option.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +11 -0
@@ -20,6 +20,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> Signed-off-by: Bernd Kuhls <[email protected]> [Rebased on 0.183] Signed-off-by: Peter Seiderer <[email protected]> +[Fabrice: don't error out if obstack is not found] +Signed-off-by: Fabrice Fontaine <[email protected]> --- Makefile.am | 6 +++++- configure.ac | 6 ++++++
@@ -60,6 +62,15 @@ index d345495..0dd4b1e 100644 dnl zlib is mandatory. save_LIBS="$LIBS" LIBS= +@@ -579,7 +585,7 @@ saved_LIBS="$LIBS" + AC_SEARCH_LIBS([_obstack_free], [obstack]) + LIBS="$saved_LIBS" + case "$ac_cv_search__obstack_free" in +- no) AC_MSG_FAILURE([failed to find _obstack_free]) ;; ++ no) obstack_LIBS= ;; + -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;; + *) obstack_LIBS= ;; + esac -- 2.30.1
Signature · 1 line
2.30.1
PATCH 1/1 package/elfutils: fix build with uclibc
Hello Fabrice,
Quoted 10 lines · Fabrice Fontaine
Update first patch to fix a build failure with uclibc and elfutils in version 0.183.0 which errors out if obstack is not found since
https://sourceware.org/git/?p=elfutils.git;a=commit;h=da855fc9cd415c288bfcb9de1f3d5eb329de0557Indeed, obstack has been removed from uclibc-ng since version 1.0.21 and
https://github.com/wbx-github/uclibc-ng/commit/0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15Fixes:
- http://autobuild.buildroot.org/results/003ae73c7b48ad6b9837fb19ca197061d20eaf6d
Thanks for taking care of the build failure, but...
Quoted 24 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- ...-Add-a-enable-disable-progs-configure-option.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +4
-0@@ -20,6 +20,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> Signed-off-by: Bernd Kuhls <[email protected]> [Rebased on 0.183] Signed-off-by: Peter Seiderer <[email protected]> +[Fabrice: don't error out if obstack is not found] +Signed-off-by: Fabrice Fontaine <[email protected]> --- Makefile.am | 6 +++++- configure.ac | 6 ++++++@@ -60,6 +62,15 @@ index d345495..0dd4b1e 100644 dnl zlib is mandatory. save_LIBS="$LIBS" LIBS= +@@ -579,7 +585,7 @@ saved_LIBS="$LIBS" + AC_SEARCH_LIBS([_obstack_free], [obstack])
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch index d345495..0dd4b1e 100644 · line 76
Quoted 10 lines
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +7
-0+ LIBS="$saved_LIBS" + case "$ac_cv_search__obstack_free" in +- no) AC_MSG_FAILURE([failed to find _obstack_free]) ;; ++ no) obstack_LIBS= ;; + -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;; + *) obstack_LIBS= ;; + esac -- 2.30.1
Is this not a complete unrelated/new matter (and so belongs to an extra patch)?
Regards,
Peter
PATCH 1/1 package/elfutils: fix build with uclibc
Hello Peter,
Le jeu. 18 mars 2021 ? 18:33, Peter Seiderer <[email protected]> a ?crit :
Quoted 46 lines
Hello Fabrice,
Quoted 10 lines · Fabrice Fontaine
Update first patch to fix a build failure with uclibc and elfutils in version 0.183.0 which errors out if obstack is not found since
https://sourceware.org/git/?p=elfutils.git;a=commit;h=da855fc9cd415c288bfcb9de1f3d5eb329de0557Indeed, obstack has been removed from uclibc-ng since version 1.0.21 and
https://github.com/wbx-github/uclibc-ng/commit/0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15Fixes:
- http://autobuild.buildroot.org/results/003ae73c7b48ad6b9837fb19ca197061d20eaf6dThanks for taking care of the build failure, but...
Quoted 28 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- ...-Add-a-enable-disable-progs-configure-option.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +8
-0@@ -20,6 +20,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> Signed-off-by: Bernd Kuhls <[email protected]> [Rebased on 0.183] Signed-off-by: Peter Seiderer <[email protected]> +[Fabrice: don't error out if obstack is not found] +Signed-off-by: Fabrice Fontaine <[email protected]> --- Makefile.am | 6 +++++- configure.ac | 6 ++++++@@ -60,6 +62,15 @@ index d345495..0dd4b1e 100644 dnl zlib is mandatory. save_LIBS="$LIBS" LIBS= +@@ -579,7 +585,7 @@ saved_LIBS="$LIBS" + AC_SEARCH_LIBS([_obstack_free], [obstack]) + LIBS="$saved_LIBS" + case "$ac_cv_search__obstack_free" in +- no) AC_MSG_FAILURE([failed to find _obstack_free]) ;; ++ no) obstack_LIBS= ;;
Quoted 8 lines
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch index d345495..0dd4b1e 100644 · line 76
Quoted 6 lines
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +3
-0+ -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;; + *) obstack_LIBS= ;; + esac -- 2.30.1Is this not a complete unrelated/new matter (and so belongs to an extra patch)?
From my perspective, this is not unrelated as obstack has "always" been used by some of the elfutils program but I'm open to discussion. I can create a dedicated patch but it doesn't make sense to send it upstream without first patch.
I don't know if first patch was sent and if so, what was upstream reaction? An other option would be to disable elfutils on uclibc as I don't think we should maintain not upstreamable patch forever.
Quoted 6 lines
Regards,
Peter
Best Regards,
Fabrice
PATCH 1/1 package/elfutils: fix build with uclibc
Hello Fabrice,
Quoted 57 lines · Fabrice Fontaine
Hello Peter,
Le jeu. 18 mars 2021 ? 18:33, Peter Seiderer <[email protected]> a ?crit :
Quoted 46 lines
Hello Fabrice,
Quoted 10 lines · Fabrice Fontaine
Update first patch to fix a build failure with uclibc and elfutils in version 0.183.0 which errors out if obstack is not found since
https://sourceware.org/git/?p=elfutils.git;a=commit;h=da855fc9cd415c288bfcb9de1f3d5eb329de0557Indeed, obstack has been removed from uclibc-ng since version 1.0.21 and
https://github.com/wbx-github/uclibc-ng/commit/0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15Fixes:
- http://autobuild.buildroot.org/results/003ae73c7b48ad6b9837fb19ca197061d20eaf6dThanks for taking care of the build failure, but...
Quoted 28 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- ...-Add-a-enable-disable-progs-configure-option.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +8
-0@@ -20,6 +20,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> Signed-off-by: Bernd Kuhls <[email protected]> [Rebased on 0.183] Signed-off-by: Peter Seiderer <[email protected]> +[Fabrice: don't error out if obstack is not found] +Signed-off-by: Fabrice Fontaine <[email protected]> --- Makefile.am | 6 +++++- configure.ac | 6 ++++++@@ -60,6 +62,15 @@ index d345495..0dd4b1e 100644 dnl zlib is mandatory. save_LIBS="$LIBS" LIBS= +@@ -579,7 +585,7 @@ saved_LIBS="$LIBS" + AC_SEARCH_LIBS([_obstack_free], [obstack]) + LIBS="$saved_LIBS" + case "$ac_cv_search__obstack_free" in +- no) AC_MSG_FAILURE([failed to find _obstack_free]) ;; ++ no) obstack_LIBS= ;;Quoted 8 lines
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch index d345495..0dd4b1e 100644 · line 76
Quoted 6 lines
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +3
-0+ -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;; + *) obstack_LIBS= ;; + esac -- 2.30.1Is this not a complete unrelated/new matter (and so belongs to an extra patch)?
Quoted 2 lines
From my perspective, this is not unrelated as obstack has "always" been used by some of the elfutils program but I'm open to discussion.
O.k, good point ;-), maybe this reasoning is worth to be more emphasized in the commit message/patch-commit-message?
Quoted 2 lines
I can create a dedicated patch but it doesn't make sense to send it upstream without first patch.
For upstream the check/error-out on obstack should depend on the --{enable,disable}-progs option...
Quoted 3 lines
I don't know if first patch was sent and if so, what was upstream reaction? An other option would be to disable elfutils on uclibc as I don't think we should maintain not upstreamable patch forever.
Give it a upstream chance... ;-)
Nevertheless you can add my:
Regards,
Peter
Quoted 9 lines
Quoted 6 lines
Regards,
PeterBest Regards,
Fabrice
PATCH 1/1 package/elfutils: fix build with uclibc
Hi Peter,
Le jeu. 18 mars 2021 ? 20:13, Peter Seiderer <[email protected]> a ?crit :
Quoted 71 lines
Hello Fabrice,
Quoted 57 lines · Fabrice Fontaine
Hello Peter,
Le jeu. 18 mars 2021 ? 18:33, Peter Seiderer <[email protected]> a ?crit :
Quoted 46 lines
Hello Fabrice,
Quoted 10 lines · Fabrice Fontaine
Update first patch to fix a build failure with uclibc and elfutils in version 0.183.0 which errors out if obstack is not found since
https://sourceware.org/git/?p=elfutils.git;a=commit;h=da855fc9cd415c288bfcb9de1f3d5eb329de0557Indeed, obstack has been removed from uclibc-ng since version 1.0.21 and
https://github.com/wbx-github/uclibc-ng/commit/0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15Fixes:
- http://autobuild.buildroot.org/results/003ae73c7b48ad6b9837fb19ca197061d20eaf6dThanks for taking care of the build failure, but...
Quoted 28 lines
Signed-off-by Fabrice Fontaine <[email protected]>--- ...-Add-a-enable-disable-progs-configure-option.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +8
-0@@ -20,6 +20,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> Signed-off-by: Bernd Kuhls <[email protected]> [Rebased on 0.183] Signed-off-by: Peter Seiderer <[email protected]> +[Fabrice: don't error out if obstack is not found] +Signed-off-by: Fabrice Fontaine <[email protected]> --- Makefile.am | 6 +++++- configure.ac | 6 ++++++@@ -60,6 +62,15 @@ index d345495..0dd4b1e 100644 dnl zlib is mandatory. save_LIBS="$LIBS" LIBS= +@@ -579,7 +585,7 @@ saved_LIBS="$LIBS" + AC_SEARCH_LIBS([_obstack_free], [obstack]) + LIBS="$saved_LIBS" + case "$ac_cv_search__obstack_free" in +- no) AC_MSG_FAILURE([failed to find _obstack_free]) ;; ++ no) obstack_LIBS= ;;Quoted 8 lines
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch index d345495..0dd4b1e 100644 · line 76
Quoted 6 lines
package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch +3
-0+ -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;; + *) obstack_LIBS= ;; + esac -- 2.30.1Is this not a complete unrelated/new matter (and so belongs to an extra patch)?
Quoted 2 lines
From my perspective, this is not unrelated as obstack has "always" been used by some of the elfutils program but I'm open to discussion.
O.k, good point ;-), maybe this reasoning is worth to be more emphasized in the commit message/patch-commit-message?
Quoted 2 lines
I can create a dedicated patch but it doesn't make sense to send it upstream without first patch.
Quoted 8 lines
For upstream the check/error-out on obstack should depend on the --{enable,disable}-progs option...
Quoted 3 lines
I don't know if first patch was sent and if so, what was upstream reaction? An other option would be to disable elfutils on uclibc as I don't think we should maintain not upstreamable patch forever.
Give it a upstream chance... ;-)
I had forgotten that I already sent them this patch 6 months ago and they didn't want to merge it:
https://sourceware.org/pipermail/elfutils-devel/2020q4/002913.html
I'll let others decide if we should continue to maintain this patch forever or if we should drop it and disable elfutils on uclibc.
Quoted 18 lines
Nevertheless you can add my:
Reviewed-by Peter Seiderer <[email protected]>Regards,
PeterQuoted 9 lines
Quoted 6 lines
Regards,
PeterBest Regards,
Fabrice
Best Regards,
Fabrice
Thomas Petazzoni
AppliedPATCH 1/1 package/elfutils: fix build with uclibc
In reply to Fabrice FontaineQuoted 7 lines · On Thu, 18 Mar 2021 08:42:19 +0100 Fabrice Fontaine…
Update first patch to fix a build failure with uclibc and elfutils in version 0.183.0 which errors out if obstack is not found since
https://sourceware.org/git/?p=elfutils.git;a=commit;h=da855fc9cd415c288bfcb9de1f3d5eb329de0557Indeed, obstack has been removed from uclibc-ng since version 1.0.21 and
https://github.com/wbx-github/uclibc-ng/commit/0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/003ae73c7b48ad6b9837fb19ca197061d20eaf6dSigned-off-by Fabrice Fontaine <[email protected]>--- ...-Add-a-enable-disable-progs-configure-option.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com