mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
snort,proftpd,net-snmp: Deal with -ffile-prefix-map as well
this is another option for reproducibility which can be used by compilers, and here consider processing it as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
8170a965d0
commit
f04fd1f5e7
@ -74,7 +74,7 @@ do_install_append() {
|
||||
install -d ${D}${sysconfdir}/default/volatiles
|
||||
install -m 0644 ${WORKDIR}/volatiles.99_snort ${D}${sysconfdir}/default/volatiles/99_snort
|
||||
|
||||
sed -i -e 's|-fdebug-prefix-map[^ ]*||g; s|-fmacro-prefix-map[^ ]*||g; s|${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc
|
||||
sed -i -e 's|-ffile-prefix-map[^ ]*||g; s|-fdebug-prefix-map[^ ]*||g; s|-fmacro-prefix-map[^ ]*||g; s|${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc
|
||||
}
|
||||
|
||||
pkg_postinst_${PN}() {
|
||||
|
||||
@ -109,6 +109,7 @@ do_install () {
|
||||
|
||||
sed -e 's|--sysroot=${STAGING_DIR_HOST}||g' \
|
||||
-e 's|${STAGING_DIR_NATIVE}||g' \
|
||||
-e 's|-ffile-prefix-map=[^ ]*||g' \
|
||||
-e 's|-fdebug-prefix-map=[^ ]*||g' \
|
||||
-e 's|-fmacro-prefix-map=[^ ]*||g' \
|
||||
-i ${D}/${bindir}/prxs
|
||||
|
||||
@ -120,6 +120,7 @@ do_install_append() {
|
||||
sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
|
||||
-i ${D}${bindir}/net-snmp-create-v3-user
|
||||
sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \
|
||||
-e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \
|
||||
-e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
|
||||
-e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
|
||||
-e 's@[^ ]*--sysroot=[^ "]*@@g' \
|
||||
@ -172,6 +173,7 @@ net_snmp_sysroot_preprocess () {
|
||||
-e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
|
||||
-e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
|
||||
-e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=${S}@g" \
|
||||
-e "s@-ffile-prefix-map=${SNMP_DBGDIR}@-ffile-prefix-map=${WORKDIR}=${SNMP_DBGDIR}@g" \
|
||||
-e "s@-fdebug-prefix-map=${SNMP_DBGDIR}@-fdebug-prefix-map=${WORKDIR}=${SNMP_DBGDIR}@g" \
|
||||
-e "s@-fdebug-prefix-map= -fdebug-prefix-map=@-fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
|
||||
-fdebug-prefix-map=${STAGING_DIR_HOST}=@g" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user