* [Buildroot] [PATCH 1/3] package/strace: bump to 4.21 @ 2018-02-25 18:34 Romain Naour 2018-02-25 18:34 ` [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency Romain Naour 2018-02-25 18:34 ` [Buildroot] [PATCH 3/3] package/strace: enable demangling of C++ symbol names in stack trace Romain Naour 0 siblings, 2 replies; 11+ messages in thread From: Romain Naour @ 2018-02-25 18:34 UTC (permalink / raw) To: buildroot Switch to the new upstream url [1]. Use new --disable-mpers option instead of st_cv_m32_mpers=no and st_cv_mx32_mpers=no Restore previous mpers check behaviour (strace < 4.21) by specifying --enable-mpers=check. Otherwire strace enforces mpers support by default which require a specific compiler. See [2]. [1] https://github.com/strace/strace/commit/51d40516df28d03e693fd782a4167d7bcf4c6ad3 [2] https://lists.strace.io/pipermail/strace-devel/2018-February/007924.html Signed-off-by: Romain Naour <romain.naour@gmail.com> --- Even if there are 4.21 archive file hashes provided by sourceforge, don't use them since we just switched to github. --- package/strace/strace.hash | 7 ++----- package/strace/strace.mk | 12 ++++++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package/strace/strace.hash b/package/strace/strace.hash index 404be39788..f05df2bb5e 100644 --- a/package/strace/strace.hash +++ b/package/strace/strace.hash @@ -1,7 +1,4 @@ -# From https://sourceforge.net/projects/strace/files/strace/4.20/ -md5 f2271ab0fac49ebee9cbd7f3469227cb strace-4.20.tar.xz -sha1 9cebc754af3434e4027a07745770892f685c0316 strace-4.20.tar.xz # Locally calculated after checking signature -# https://sourceforge.net/projects/strace/files/strace/4.20/strace-4.20.tar.xz.asc -sha256 5bf3148dd17306a42566f7da17368fdd781afa147db05ea63a4ca2b50f58c523 strace-4.20.tar.xz +# https://github.com/strace/strace/releases/download/v4.21/strace-4.21.tar.xz.asc +sha256 5c7688db44073e94c59a5627744e5699454419824cc8166e8bcfd7ec58375c37 strace-4.21.tar.xz sha256 ea7ff222f36c9df0aa2924a8f7c7d2aec3ea11e752feba4b15ec79b695b6236a COPYING diff --git a/package/strace/strace.mk b/package/strace/strace.mk index ba57774e5d..e292c60f2a 100644 --- a/package/strace/strace.mk +++ b/package/strace/strace.mk @@ -4,18 +4,22 @@ # ################################################################################ -STRACE_VERSION = 4.20 +STRACE_VERSION = 4.21 STRACE_SOURCE = strace-$(STRACE_VERSION).tar.xz -STRACE_SITE = http://downloads.sourceforge.net/project/strace/strace/$(STRACE_VERSION) +STRACE_SITE = https://github.com/strace/strace/releases/download/v$(STRACE_VERSION) STRACE_LICENSE = BSD-3-Clause STRACE_LICENSE_FILES = COPYING # strace bundle some kernel headers to build libmpers, this mixes userspace # headers and kernel headers which break the build with musl. # The stddef.h from gcc is used instead of the one from musl. +# Restore previous mpers check behaviour (strace < 4.21) by specifying +# --enable-mpers=check. Otherwire strace enforces mpers support by default +# which require a specific compiler. ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) -STRACE_CONF_OPTS += st_cv_m32_mpers=no \ - st_cv_mx32_mpers=no +STRACE_CONF_OPTS += --disable-mpers +else +STRACE_CONF_OPTS += --enable-mpers=check endif define STRACE_REMOVE_STRACE_GRAPH -- 2.14.3 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-02-25 18:34 [Buildroot] [PATCH 1/3] package/strace: bump to 4.21 Romain Naour @ 2018-02-25 18:34 ` Romain Naour 2018-02-25 20:28 ` Thomas De Schampheleire 2018-04-06 21:38 ` Thomas Petazzoni 2018-02-25 18:34 ` [Buildroot] [PATCH 3/3] package/strace: enable demangling of C++ symbol names in stack trace Romain Naour 1 sibling, 2 replies; 11+ messages in thread From: Romain Naour @ 2018-02-25 18:34 UTC (permalink / raw) To: buildroot This improve the reproducible build. Signed-off-by: Romain Naour <romain.naour@gmail.com> --- package/strace/strace.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/strace/strace.mk b/package/strace/strace.mk index e292c60f2a..9c1fab3871 100644 --- a/package/strace/strace.mk +++ b/package/strace/strace.mk @@ -10,6 +10,13 @@ STRACE_SITE = https://github.com/strace/strace/releases/download/v$(STRACE_VERSI STRACE_LICENSE = BSD-3-Clause STRACE_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_LIBUNWIND),y) +STRACE_DEPENDENCIES += libunwind +STRACE_CONF_OPTS += --with-libunwind +else +STRACE_CONF_OPTS += --without-libunwind +endif + # strace bundle some kernel headers to build libmpers, this mixes userspace # headers and kernel headers which break the build with musl. # The stddef.h from gcc is used instead of the one from musl. -- 2.14.3 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-02-25 18:34 ` [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency Romain Naour @ 2018-02-25 20:28 ` Thomas De Schampheleire 2018-02-25 20:50 ` Romain Naour 2018-02-25 21:34 ` Thomas Petazzoni 2018-04-06 21:38 ` Thomas Petazzoni 1 sibling, 2 replies; 11+ messages in thread From: Thomas De Schampheleire @ 2018-02-25 20:28 UTC (permalink / raw) To: buildroot Hi, 2018-02-25 19:34 GMT+01:00 Romain Naour <romain.naour@gmail.com>: > This improve the reproducible build. > > Signed-off-by: Romain Naour <romain.naour@gmail.com> > --- > package/strace/strace.mk | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/package/strace/strace.mk b/package/strace/strace.mk > index e292c60f2a..9c1fab3871 100644 > --- a/package/strace/strace.mk > +++ b/package/strace/strace.mk > @@ -10,6 +10,13 @@ STRACE_SITE = https://github.com/strace/strace/releases/download/v$(STRACE_VERSI > STRACE_LICENSE = BSD-3-Clause > STRACE_LICENSE_FILES = COPYING > > +ifeq ($(BR2_PACKAGE_LIBUNWIND),y) > +STRACE_DEPENDENCIES += libunwind > +STRACE_CONF_OPTS += --with-libunwind > +else > +STRACE_CONF_OPTS += --without-libunwind > +endif > + As far as I know, the main (only?) reason for a libunwind dependency is to support 'strace -k' to get callstack info. Perhaps it would be useful to update the Config.in file to hint about this, i.e. that users should enable libunwind manually if they want 'strace -k' support. In our local tree, I had added a config option to strace for that, but perhaps that is overkill? /Thomas ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-02-25 20:28 ` Thomas De Schampheleire @ 2018-02-25 20:50 ` Romain Naour 2018-02-25 21:34 ` Thomas Petazzoni 1 sibling, 0 replies; 11+ messages in thread From: Romain Naour @ 2018-02-25 20:50 UTC (permalink / raw) To: buildroot Hi Thomas, Le 25/02/2018 ? 21:28, Thomas De Schampheleire a ?crit?: > Hi, > > 2018-02-25 19:34 GMT+01:00 Romain Naour <romain.naour@gmail.com>: >> This improve the reproducible build. >> >> Signed-off-by: Romain Naour <romain.naour@gmail.com> >> --- >> package/strace/strace.mk | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/package/strace/strace.mk b/package/strace/strace.mk >> index e292c60f2a..9c1fab3871 100644 >> --- a/package/strace/strace.mk >> +++ b/package/strace/strace.mk >> @@ -10,6 +10,13 @@ STRACE_SITE = https://github.com/strace/strace/releases/download/v$(STRACE_VERSI >> STRACE_LICENSE = BSD-3-Clause >> STRACE_LICENSE_FILES = COPYING >> >> +ifeq ($(BR2_PACKAGE_LIBUNWIND),y) >> +STRACE_DEPENDENCIES += libunwind >> +STRACE_CONF_OPTS += --with-libunwind >> +else >> +STRACE_CONF_OPTS += --without-libunwind >> +endif >> + > > As far as I know, the main (only?) reason for a libunwind dependency > is to support 'strace -k' to get callstack info. Perhaps it would be > useful to update the Config.in file to hint about this, i.e. that > users should enable libunwind manually if they want 'strace -k' > support. Ok, why not. > > In our local tree, I had added a config option to strace for that, but > perhaps that is overkill? Most packages optional dependencies are handled like this, otherwise we have to maintain one config option for each optional dependencies. Best regards, Romain > > /Thomas > ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-02-25 20:28 ` Thomas De Schampheleire 2018-02-25 20:50 ` Romain Naour @ 2018-02-25 21:34 ` Thomas Petazzoni 2018-02-25 21:58 ` Thomas De Schampheleire 1 sibling, 1 reply; 11+ messages in thread From: Thomas Petazzoni @ 2018-02-25 21:34 UTC (permalink / raw) To: buildroot Hello Thomas, On Sun, 25 Feb 2018 21:28:19 +0100, Thomas De Schampheleire wrote: > In our local tree, I had added a config option to strace for that, but > perhaps that is overkill? Are you saying that you have changes in your local tree on packages available in upstream Buildroot, and you did not submit such changes ? :-) Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-02-25 21:34 ` Thomas Petazzoni @ 2018-02-25 21:58 ` Thomas De Schampheleire 2018-03-31 20:47 ` Peter Korsgaard 0 siblings, 1 reply; 11+ messages in thread From: Thomas De Schampheleire @ 2018-02-25 21:58 UTC (permalink / raw) To: buildroot 2018-02-25 22:34 GMT+01:00 Thomas Petazzoni <thomas.petazzoni@bootlin.com>: > Hello Thomas, > > On Sun, 25 Feb 2018 21:28:19 +0100, Thomas De Schampheleire wrote: > >> In our local tree, I had added a config option to strace for that, but >> perhaps that is overkill? > > Are you saying that you have changes in your local tree on packages > available in upstream Buildroot, and you did not submit such > changes ? :-) > Haha, yes indeed :-) But you may be glad to hear that I already made a list of such changes that should be upstreamable, and plan to tackle the upstreaming after merging 2018.02! ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-02-25 21:58 ` Thomas De Schampheleire @ 2018-03-31 20:47 ` Peter Korsgaard 2018-04-01 8:04 ` Thomas De Schampheleire 0 siblings, 1 reply; 11+ messages in thread From: Peter Korsgaard @ 2018-03-31 20:47 UTC (permalink / raw) To: buildroot >>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin@gmail.com> writes: Hi, >>> In our local tree, I had added a config option to strace for that, but >>> perhaps that is overkill? >> >> Are you saying that you have changes in your local tree on packages >> available in upstream Buildroot, and you did not submit such >> changes ? :-) >> > Haha, yes indeed :-) But you may be glad to hear that I already made a > list of such changes that should be upstreamable, and plan to tackle > the upstreaming after merging 2018.02! Did you already get 2018.02 merged? ;) -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-03-31 20:47 ` Peter Korsgaard @ 2018-04-01 8:04 ` Thomas De Schampheleire 0 siblings, 0 replies; 11+ messages in thread From: Thomas De Schampheleire @ 2018-04-01 8:04 UTC (permalink / raw) To: buildroot On Sat, Mar 31, 2018, 22:47 Peter Korsgaard <peter@korsgaard.com> wrote: > >>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin@gmail.com> > writes: > > Hi, > > >>> In our local tree, I had added a config option to strace for that, but > >>> perhaps that is overkill? > >> > >> Are you saying that you have changes in your local tree on packages > >> available in upstream Buildroot, and you did not submit such > >> changes ? :-) > >> > > > Haha, yes indeed :-) But you may be glad to hear that I already made a > > list of such changes that should be upstreamable, and plan to tackle > > the upstreaming after merging 2018.02! > > Did you already get 2018.02 merged? ;) > The code is ready, but the drop was postponed due to other issues... I'll get to it, don't worry :) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180401/ee2d53a1/attachment.html> ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency 2018-02-25 18:34 ` [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency Romain Naour 2018-02-25 20:28 ` Thomas De Schampheleire @ 2018-04-06 21:38 ` Thomas Petazzoni 1 sibling, 0 replies; 11+ messages in thread From: Thomas Petazzoni @ 2018-04-06 21:38 UTC (permalink / raw) To: buildroot Hello, On Sun, 25 Feb 2018 19:34:14 +0100, Romain Naour wrote: > This improve the reproducible build. > > Signed-off-by: Romain Naour <romain.naour@gmail.com> > --- > package/strace/strace.mk | 7 +++++++ > 1 file changed, 7 insertions(+) I've updated the Config.in help text to indicate that libunwind should be enabled to get "strace -k" support, as suggested by Thomas DS. And then I've applied. Thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 3/3] package/strace: enable demangling of C++ symbol names in stack trace 2018-02-25 18:34 [Buildroot] [PATCH 1/3] package/strace: bump to 4.21 Romain Naour 2018-02-25 18:34 ` [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency Romain Naour @ 2018-02-25 18:34 ` Romain Naour 2018-05-20 15:00 ` Thomas Petazzoni 1 sibling, 1 reply; 11+ messages in thread From: Romain Naour @ 2018-02-25 18:34 UTC (permalink / raw) To: buildroot This is a new feature of strace 4.21 but the configure check need to be fixed for Buildroot. Signed-off-by: Romain Naour <romain.naour@gmail.com> --- ...1-configure-allow-autoreconf-from-tarball.patch | 36 ++++++++++++++++++++++ ...0002-configure-fix-libiberty-header-check.patch | 33 ++++++++++++++++++++ package/strace/strace.mk | 12 ++++++++ 3 files changed, 81 insertions(+) create mode 100644 package/strace/0001-configure-allow-autoreconf-from-tarball.patch create mode 100644 package/strace/0002-configure-fix-libiberty-header-check.patch diff --git a/package/strace/0001-configure-allow-autoreconf-from-tarball.patch b/package/strace/0001-configure-allow-autoreconf-from-tarball.patch new file mode 100644 index 0000000000..92dc7ed585 --- /dev/null +++ b/package/strace/0001-configure-allow-autoreconf-from-tarball.patch @@ -0,0 +1,36 @@ +From b2247bbd30989c707f3cb5bbd9635c52e5c962e6 Mon Sep 17 00:00:00 2001 +From: Romain Naour <romain.naour@gmail.com> +Date: Sat, 17 Feb 2018 13:23:25 +0100 +Subject: [PATCH] configure: allow autoreconf from tarball + +git-version-gen copyright-year-gen file-date-gen tools +are missing from the strace tarball breaking autoreconf. + +Signed-off-by: Romain Naour <romain.naour@gmail.com> +--- + configure.ac | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 86b8a8eb..f1a47b97 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -32,12 +32,12 @@ + + AC_PREREQ(2.57) + AC_INIT([strace], +- m4_esyscmd([./git-version-gen .tarball-version]), ++ 4.21, + [strace-devel at lists.sourceforge.net], + [strace], + [https://strace.io]) +-m4_define([copyright_year], m4_esyscmd([./copyright-year-gen .year])) +-m4_define([manpage_date], m4_esyscmd([./file-date-gen strace.1.in])) ++m4_define([copyright_year], 2018) ++m4_define([manpage_date], 2018-02-11) + AC_COPYRIGHT([Copyright (c) 1999-]copyright_year[ The strace developers.]) + AC_CONFIG_SRCDIR([strace.c]) + AC_CONFIG_AUX_DIR([.]) +-- +2.14.3 + diff --git a/package/strace/0002-configure-fix-libiberty-header-check.patch b/package/strace/0002-configure-fix-libiberty-header-check.patch new file mode 100644 index 0000000000..29bfb40ac3 --- /dev/null +++ b/package/strace/0002-configure-fix-libiberty-header-check.patch @@ -0,0 +1,33 @@ +From 9487aac43518272074a1e1131c517b35b2529580 Mon Sep 17 00:00:00 2001 +From: Romain Naour <romain.naour@gmail.com> +Date: Sat, 17 Feb 2018 12:38:37 +0100 +Subject: [PATCH] configure: fix libiberty header check + +The demangle.h header check for libiberty is looking at two potential +file location. If one is missing the check fail. + +Since binutils package install demangle.h in +"STAGING_DIR/usr/include/libiberty/demangle.h", remove the wrong +path. + +Signed-off-by: Romain Naour <romain.naour@gmail.com> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index f1a47b97..052ce971 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -922,7 +922,7 @@ use_libiberty=no + AS_IF([test "x$use_libunwind" = xyes && test "x$with_libiberty" != xno], + [saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $libiberty_CPPFLAGS" +- AC_CHECK_HEADERS([demangle.h libiberty/demangle.h], ++ AC_CHECK_HEADERS([libiberty/demangle.h], + [saved_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $libiberty_LDFLAGS" + AC_CHECK_LIB([iberty],[cplus_demangle], +-- +2.14.3 + diff --git a/package/strace/strace.mk b/package/strace/strace.mk index 9c1fab3871..f55755429d 100644 --- a/package/strace/strace.mk +++ b/package/strace/strace.mk @@ -10,6 +10,10 @@ STRACE_SITE = https://github.com/strace/strace/releases/download/v$(STRACE_VERSI STRACE_LICENSE = BSD-3-Clause STRACE_LICENSE_FILES = COPYING +# 0001-configure-allow-autoreconf-from-tarball.patch +# 0002-configure-fix-libiberty-header-check.patch +STRACE_AUTORECONF = YES + ifeq ($(BR2_PACKAGE_LIBUNWIND),y) STRACE_DEPENDENCIES += libunwind STRACE_CONF_OPTS += --with-libunwind @@ -17,6 +21,14 @@ else STRACE_CONF_OPTS += --without-libunwind endif +# Demangling symbols in stack trace needs libunwind and libiberty. +ifeq ($(BR2_PACKAGE_BINUTILS)$(BR2_PACKAGE_LIBUNWIND),yy) +STRACE_DEPENDENCIES += binutils +STRACE_CONF_OPTS += --with-libiberty=$(STAGING_DIR)/usr +else +STRACE_CONF_OPTS += --without-libiberty +endif + # strace bundle some kernel headers to build libmpers, this mixes userspace # headers and kernel headers which break the build with musl. # The stddef.h from gcc is used instead of the one from musl. -- 2.14.3 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 3/3] package/strace: enable demangling of C++ symbol names in stack trace 2018-02-25 18:34 ` [Buildroot] [PATCH 3/3] package/strace: enable demangling of C++ symbol names in stack trace Romain Naour @ 2018-05-20 15:00 ` Thomas Petazzoni 0 siblings, 0 replies; 11+ messages in thread From: Thomas Petazzoni @ 2018-05-20 15:00 UTC (permalink / raw) To: buildroot Hello, On Sun, 25 Feb 2018 19:34:15 +0100, Romain Naour wrote: > ...1-configure-allow-autoreconf-from-tarball.patch | 36 ++++++++++++++++++++++ > ...0002-configure-fix-libiberty-header-check.patch | 33 ++++++++++++++++++++ In fact those patches are not necessary if you pass --with-libiberty=check. In this case, it doesn't fail at the first demangle.h check, and moves on to the next header file location. So I've fixed that up, dropped the patches and AUTORECONF = YES, and applied to next. Thanks! Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2018-05-20 15:00 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-25 18:34 [Buildroot] [PATCH 1/3] package/strace: bump to 4.21 Romain Naour 2018-02-25 18:34 ` [Buildroot] [PATCH 2/3] package/strace: add missing libunwind optional dependency Romain Naour 2018-02-25 20:28 ` Thomas De Schampheleire 2018-02-25 20:50 ` Romain Naour 2018-02-25 21:34 ` Thomas Petazzoni 2018-02-25 21:58 ` Thomas De Schampheleire 2018-03-31 20:47 ` Peter Korsgaard 2018-04-01 8:04 ` Thomas De Schampheleire 2018-04-06 21:38 ` Thomas Petazzoni 2018-02-25 18:34 ` [Buildroot] [PATCH 3/3] package/strace: enable demangling of C++ symbol names in stack trace Romain Naour 2018-05-20 15:00 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox