diff options
| -rw-r--r-- | meta/classes/binconfig-disabled.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/binconfig-disabled.bbclass b/meta/classes/binconfig-disabled.bbclass index 595cd096f5..602a669aa1 100644 --- a/meta/classes/binconfig-disabled.bbclass +++ b/meta/classes/binconfig-disabled.bbclass | |||
| @@ -9,9 +9,10 @@ FILES_${PN}-dev += "${bindir}/*-config" | |||
| 9 | 9 | ||
| 10 | do_install_append () { | 10 | do_install_append () { |
| 11 | for x in ${BINCONFIG}; do | 11 | for x in ${BINCONFIG}; do |
| 12 | echo "#!/bin/sh" > ${D}$x | ||
| 13 | # Make the disabled script emit invalid parameters for those configure | 12 | # Make the disabled script emit invalid parameters for those configure |
| 14 | # scripts which call it without checking the return code. | 13 | # scripts which call it without checking the return code. |
| 14 | echo "#!/bin/sh" > ${D}$x | ||
| 15 | echo "echo 'ERROR: $x should not be used, use an alternative such as pkg-config' >&2" >> ${D}$x | ||
| 15 | echo "echo '--should-not-have-used-$x'" >> ${D}$x | 16 | echo "echo '--should-not-have-used-$x'" >> ${D}$x |
| 16 | echo "exit 1" >> ${D}$x | 17 | echo "exit 1" >> ${D}$x |
| 17 | done | 18 | done |
