From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] dependencies: ensure that DESTDIR isn't set when running Buildroot
Date: Sat, 30 Jun 2012 14:53:42 +0200 [thread overview]
Message-ID: <4FEEF6D6.6030701@mind.be> (raw)
In-Reply-To: <1340964896-12899-1-git-send-email-thomas.petazzoni@free-electrons.com>
On 06/29/12 12:14, Thomas Petazzoni wrote:
> Having DESTDIR set in the environment before running Buildroot creates
> some funky problems in the build process. Prevent users from running
> into this kind of troubles.
>
> Cc: Michael Opdenacker<michael.opdenacker@free-electrons.com>
> Signed-off-by: Thomas Petazzoni<thomas.petazzoni@free-electrons.com>
> ---
> support/dependencies/dependencies.sh | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
> index c47ffcf..43ec3cc 100755
> --- a/support/dependencies/dependencies.sh
> +++ b/support/dependencies/dependencies.sh
> @@ -48,6 +48,12 @@ if test -n "$PERL_MM_OPT" ; then
> exit 1
> fi
>
> +if test -n "$DESTDIR" ; then
> + /bin/echo -e "\nYou have the DESTDIR environment variable set. Please"
> + /bin/echo -e "unset it so that Buildroot can work properly."
> + exit 1
> +fi
Why not just override and export DESTDIR from the top-level Makefile?
Regards,
Arnout
> +
> # Verify that which is installed
> if ! which which> /dev/null ; then
> /bin/echo -e "\nYou must install 'which' on your build machine\n";
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2012-06-30 12:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-29 10:14 [Buildroot] [PATCH] dependencies: ensure that DESTDIR isn't set when running Buildroot Thomas Petazzoni
2012-06-30 12:53 ` Arnout Vandecappelle [this message]
2012-06-30 21:53 ` Peter Korsgaard
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=4FEEF6D6.6030701@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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