Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Yu, Mingli" <mingli.yu@windriver.com>
To: <richard.purdie@linuxfoundation.org>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] nspr: improve reproducibility
Date: Mon, 26 Nov 2018 09:50:48 +0800	[thread overview]
Message-ID: <5BFB5178.1020809@windriver.com> (raw)
In-Reply-To: <20181116070959.96026-1-mingli.yu@windriver.com>

Ping.

Thanks,

On 2018年11月16日 15:09, mingli.yu@windriver.com wrote:
> From: Mingli Yu <Mingli.Yu@windriver.com>
>
> Remove _BUILD_STRING and _BUILD_TIME in _pl_bld.h
> to avoid introducing timestamp in the .so library
> such as libnspr4.so as below:
>   $ readelf --wide --decompress --hex-dump=.rodata libnspr4.so
>   [snip]
>    0x00004000 32303138 2d31312d 31352030 353a3439 2018-11-15 05:49
>   [snip]
>
> [YOCTO #12639]
>
> Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
> ---
>   ...remove-_BUILD_STRING-and-_BUILD_TIME.patch | 103 ++++++++++++++++++
>   meta/recipes-support/nspr/nspr_4.20.bb        |   1 +
>   2 files changed, 104 insertions(+)
>   create mode 100644 meta/recipes-support/nspr/nspr/Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch
>
> diff --git a/meta/recipes-support/nspr/nspr/Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch b/meta/recipes-support/nspr/nspr/Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch
> new file mode 100644
> index 0000000000..90fe45f34d
> --- /dev/null
> +++ b/meta/recipes-support/nspr/nspr/Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch
> @@ -0,0 +1,103 @@
> +From 8a592e4ead4ed6befe6044da3dd2dc7523c33905 Mon Sep 17 00:00:00 2001
> +From: Mingli Yu <Mingli.Yu@windriver.com>
> +Date: Fri, 16 Nov 2018 13:52:49 +0800
> +Subject: [PATCH] Makefile.in: remove _BUILD_STRING and _BUILD_TIME
> +
> +Remove _BUILD_STRING and _BUILD_TIME to avoid
> +adding timestamp to _pl_bld.h which can result
> +in adding timestamp in library file such as
> +libnspr4.so.
> + $ readelf --wide --decompress --hex-dump=.rodata libnspr4.so
> + [snip]
> +  0x00004000 32303138 2d31312d 31352030 353a3439 2018-11-15 05:49
> + [snip]
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
> +---
> + lib/ds/Makefile.in        | 8 +-------
> + lib/libc/src/Makefile.in  | 8 +-------
> + lib/prstreams/Makefile.in | 8 +-------
> + pr/src/Makefile.in        | 8 +-------
> + 4 files changed, 4 insertions(+), 28 deletions(-)
> +
> +diff --git a/lib/ds/Makefile.in b/lib/ds/Makefile.in
> +index e737791..b578476 100644
> +--- a/lib/ds/Makefile.in
> ++++ b/lib/ds/Makefile.in
> +@@ -114,13 +114,7 @@ GARBAGE += $(TINC)
> +
> + $(TINC):
> + 	@$(MAKE_OBJDIR)
> +-	@$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
> +-	@if test ! -z "$(SH_NOW)"; then \
> +-	    $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
> +-	else \
> +-	    true; \
> +-	fi
> +-	@$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
> ++	@$(ECHO) '#define _PRODUCTION "$(PROD)"' > $(TINC)
> +
> +
> + $(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
> +diff --git a/lib/libc/src/Makefile.in b/lib/libc/src/Makefile.in
> +index e8a6d9f..978ed28 100644
> +--- a/lib/libc/src/Makefile.in
> ++++ b/lib/libc/src/Makefile.in
> +@@ -116,13 +116,7 @@ GARBAGE += $(TINC)
> +
> + $(TINC):
> + 	@$(MAKE_OBJDIR)
> +-	@$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
> +-	@if test ! -z "$(SH_NOW)"; then \
> +-	    $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
> +-	else \
> +-	    true; \
> +-	fi
> +-	@$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
> ++	@$(ECHO) '#define _PRODUCTION "$(PROD)"' > $(TINC)
> +
> +
> + $(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
> +diff --git a/lib/prstreams/Makefile.in b/lib/prstreams/Makefile.in
> +index aeb2944..f318097 100644
> +--- a/lib/prstreams/Makefile.in
> ++++ b/lib/prstreams/Makefile.in
> +@@ -116,13 +116,7 @@ endif
> +
> + $(TINC):
> + 	@$(MAKE_OBJDIR)
> +-	@$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
> +-	@if test ! -z "$(SH_NOW)"; then \
> +-	    $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
> +-	else \
> +-	    true; \
> +-	fi
> +-	@$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
> ++	@$(ECHO) '#define _PRODUCTION "$(PROD)"' > $(TINC)
> +
> +
> + $(OBJDIR)/plvrsion.$(OBJ_SUFFIX): plvrsion.c $(TINC)
> +diff --git a/pr/src/Makefile.in b/pr/src/Makefile.in
> +index 19c5a69..b4ac31c 100644
> +--- a/pr/src/Makefile.in
> ++++ b/pr/src/Makefile.in
> +@@ -326,13 +326,7 @@ GARBAGE += $(TINC)
> +
> + $(TINC):
> + 	@$(MAKE_OBJDIR)
> +-	@$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)
> +-	@if test ! -z "$(SH_NOW)"; then \
> +-	    $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \
> +-	else \
> +-	    true; \
> +-	fi
> +-	@$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)
> ++	@$(ECHO) '#define _PRODUCTION "$(PROD)"' > $(TINC)
> +
> +
> + $(OBJDIR)/prvrsion.$(OBJ_SUFFIX): prvrsion.c $(TINC)
> +--
> +2.7.4
> +
> diff --git a/meta/recipes-support/nspr/nspr_4.20.bb b/meta/recipes-support/nspr/nspr_4.20.bb
> index fe3b4bd2ed..98ca909631 100644
> --- a/meta/recipes-support/nspr/nspr_4.20.bb
> +++ b/meta/recipes-support/nspr/nspr_4.20.bb
> @@ -12,6 +12,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz
>              file://0002-Add-nios2-support.patch \
>              file://0001-md-Fix-build-with-musl.patch \
>              file://0004-Add-ARC-support.patch \
> +           file://Makefile.in-remove-_BUILD_STRING-and-_BUILD_TIME.patch \
>              file://nspr.pc.in \
>   "
>
>


      reply	other threads:[~2018-11-26  1:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-16  7:09 [PATCH] nspr: improve reproducibility mingli.yu
2018-11-26  1:50 ` Yu, Mingli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5BFB5178.1020809@windriver.com \
    --to=mingli.yu@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox