Skip to contentSkip to conversation

libid3tag: Filter -ffile-prefix-map too

PATCH New Khem Raj 1 participant 2 messages Apr 29, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 libid3tag: Filter -ffile-prefix-map too

helps when compiler has -ffile-prefix-map flag which helps reproducibility as well

---
 .../libid3tag/libid3tag/cflags_filter.patch               | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
meta/recipes-multimedia/libid3tag/libid3tag/cflags_filter.patch +3 -5
index 0d1d0dc381..1895748d1d 100644
@@ -4,15 +4,13 @@ flags. We need those to generate reproducible binaries. Allow them through.
 Upstream-Status: Pending
 Signed-off-by: Richard Purdie <[email protected]>
 
-Index: libid3tag-0.15.1b/configure.ac
-===================================================================
---- libid3tag-0.15.1b.orig/configure.ac
-+++ libid3tag-0.15.1b/configure.ac
+--- a/configure.ac
++++ b/configure.ac
 @@ -99,6 +99,10 @@ do
  	-mno-cygwin)
  	    shift
  	    ;;
-+	-fmacro-prefix-map*|-fdebug-prefix-map*)
++	-fmacro-prefix-map*|-fdebug-prefix-map*|-ffile-prefix-map*)
 +	    CFLAGS="$CFLAGS $1"
 +	    shift
 +	    ;;
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 2/2 libjpeg-turbo: Use --reproducible option for nasm

This ensures that nasm version and timestamps do but appear in build outputs

---
 meta/recipes-graphics/jpeg/libjpeg-turbo_2.0.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/jpeg/libjpeg-turbo_2.0.6.bb +1 -1
index b6efc6bca0..0bd6af8db9 100644
@@ -29,7 +29,7 @@ RCONFLICTS_${PN} += "jpeg"
 
 inherit cmake pkgconfig
 
-export NASMENV = "--debug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
+export NASMENV = "--reproducible --debug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
 
 # Add nasm-native dependency consistently for all build arches is hard
 EXTRA_OECMAKE_append_class-native = " -DWITH_SIMD=False"
Signature · 1 line
2.31.1