Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build breaks if PACKAGECONFIG excludes examples #248

Open
wants to merge 1 commit into
base: kirkstone
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions recipes-graphics/libegt/libegt_1.5.bb
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ INSANE_SKIP:${PN} = "dev-so"
#deleted audio files to avoid check_data_file_clashes error
do_install:append() {
rm -f ${D}/usr/lib/libegt.a
rm -f ${D}/usr/share/egt/examples/audioplayer/*.mp3
rm -f ${D}/usr/share/egt/examples/drummachine/*.wav
sed -i -e '2,/<\/entry>/d' ${D}/usr/share/egt/examples/video/video.xml

# Only attempt file removal if examples are built
if ${@bb.utils.contains('PACKAGECONFIG', 'examples', 'true', 'false', d)}; then
rm -f ${D}/usr/share/egt/examples/audioplayer/*.mp3
rm -f ${D}/usr/share/egt/examples/drummachine/*.wav
sed -i -e '2,/<\/entry>/d' ${D}/usr/share/egt/examples/video/video.xml
fi

sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
Expand Down
11 changes: 8 additions & 3 deletions recipes-graphics/libegt/libegt_1.6.bb
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ INSANE_SKIP:${PN} = "dev-so"
#deleted audio files to avoid check_data_file_clashes error
do_install:append() {
rm -f ${D}/usr/lib/libegt.a
rm -f ${D}/usr/share/egt/examples/audioplayer/*.mp3
rm -f ${D}/usr/share/egt/examples/drummachine/*.wav
sed -i -e '2,/<\/entry>/d' ${D}/usr/share/egt/examples/video/video.xml

# Only attempt file removal if examples are built
if ${@bb.utils.contains('PACKAGECONFIG', 'examples', 'true', 'false', d)}; then
rm -f ${D}/usr/share/egt/examples/audioplayer/*.mp3
rm -f ${D}/usr/share/egt/examples/drummachine/*.wav
sed -i -e '2,/<\/entry>/d' ${D}/usr/share/egt/examples/video/video.xml
fi

sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
Expand Down
10 changes: 8 additions & 2 deletions recipes-graphics/libegt/libegt_1.7.bb
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,14 @@ INSANE_SKIP:${PN} = "dev-so"
#deleted audio files to avoid check_data_file_clashes error
do_install:append() {
rm -f ${D}/usr/lib/libegt.a
rm -f ${D}/usr/share/egt/examples/audioplayer/*.mp3
rm -f ${D}/usr/share/egt/examples/drummachine/*.wav

# Only attempt file removal if examples are built
if ${@bb.utils.contains('PACKAGECONFIG', 'examples', 'true', 'false', d)}; then
rm -f ${D}/usr/share/egt/examples/audioplayer/*.mp3
rm -f ${D}/usr/share/egt/examples/drummachine/*.wav
sed -i -e '2,/<\/entry>/d' ${D}/usr/share/egt/examples/video/video.xml
fi

sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
Expand Down