From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mail.openembedded.org (Postfix) with ESMTP id 17F6671A72 for ; Mon, 11 Dec 2017 15:37:05 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id r6so16683749itr.3 for ; Mon, 11 Dec 2017 07:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:subject:to:cc:date:in-reply-to:references :mime-version; bh=hu10b8vLNjGy9l4t7YSSdGHYR5N4u4YCzAwkd8zktdE=; b=Xq6toBiksZLQ1pQYizy4TmDQsW+x2vpXTwr4p8OaPmysM5xXgDtOZbm6P0XEDvNXEh J3250uIqIG3s0w1n+BF0ZN6IKjQFPLfbrbU67HvqIlRRP9q7jwVHy1ELXMeTQ62Kukwq hl8WhIfk6R4hl64itROJT4YcLQ+9tFSqpXo9dODGYxFVwmVUmnKUIDBH3o8VPIFk2uwH wx3jFqPNMNj3bpAcuzBW2aVFwKlUg4N5vEQI22/Y6zYzHtpwrPHKjBK6M7G+4sLQ6vLs 1vP0QOHWYi6C+OixPwkrJXmj1y9KipmVGKhTB0b4ufu5GD06yVgubE3TVTZVvtCaleT/ s7DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:subject:to:cc:date:in-reply-to :references:mime-version; bh=hu10b8vLNjGy9l4t7YSSdGHYR5N4u4YCzAwkd8zktdE=; b=C26To8GxYa6/HDN1iheB79AFz80R59BgnwY9YEvcJKfpFBrYkfGsNTSMU4xJ1Nbrvk JhXhB9JJ0bhZy8cIaOJ7NJJZSbfybxjZjL8vUqXwB+7WDHh8d2ggW+a66152fMp1bPDW TefbYTMzU8iDbw2nScTM9t6o+FF5eOzFwwqq1WqrouSfyYu9yn6EGyxGJeNfgrdqKWN9 /Oob9FVpB/tajiSbBPNMekfU0TRjpYrdQBqIMTdU+7vq1PzJlb870wlW/oOKdeb8yKBB 6Ue/nPYVgSILINDvhpMF3nGwfdOBsPWiSEdyyG83qaJgobETc/RbrZybgqT17PspC8x4 5aMQ== X-Gm-Message-State: AKGB3mIAYoaNfY+Z0KMs3+hhPt5vTHSwg+rv2+E35ykUWd8Mr0IbyuZt OwPQnwhQejCVzm+jaqFoR9yxwvBQ X-Google-Smtp-Source: ACJfBosWKeXq16Jqnt49jrm1TJ0adq1q2ChQtd5IyeEH4P/gnjiKxWNg4qWuFyIx57f2lFO0+MRQbA== X-Received: by 10.36.40.206 with SMTP id h197mr1396496ith.12.1513006627239; Mon, 11 Dec 2017 07:37:07 -0800 (PST) Received: from ola-842mrw1.ad.garmin.com ([204.77.163.55]) by smtp.googlemail.com with ESMTPSA id c36sm6479733iod.11.2017.12.11.07.37.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Dec 2017 07:37:06 -0800 (PST) From: Joshua Watt X-Google-Original-From: Joshua Watt Message-ID: <1513006625.9676.9.camel@gmail.com> To: "Burton, Ross" , Stefan Agner Date: Mon, 11 Dec 2017 09:37:05 -0600 In-Reply-To: <1513006338.9676.5.camel@gmail.com> References: <20171211135720.38714-1-stefan@agner.ch> <1b5588ed9cdad157c4129eb45d2a0fe0@agner.ch> <1513006338.9676.5.camel@gmail.com> X-Mailer: Evolution 3.26.2 (3.26.2-1.fc27) Mime-Version: 1.0 Cc: Stefan Agner , Otavio Salvador , OE-core Subject: Re: [PATCH] waf.bbclass: explicitly pass libdir X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 15:37:06 -0000 Content-Type: multipart/alternative; boundary="=-6r9ZujrzbviOFh3vl8b5" --=-6r9ZujrzbviOFh3vl8b5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Mon, 2017-12-11 at 09:32 -0600, Joshua Watt wrote: > On Mon, 2017-12-11 at 14:58 +0000, Burton, Ross wrote: > > On 11 December 2017 at 14:16, Stefan Agner wrote: > > > Hm, isn't this a "base" option which is always supported? > > > > No idea. :) > > > > > There are a bunch of others. But most seem to derive from PREFIX, > > > which > > > > > > we set... > > > > > > > > > > > > Installation prefix: > > > > > > > > > > > > By default, "waf install" will put the files in > > > "/usr/local/bin", > > > > > > "/usr/local/lib" etc. An installation prefix other than > > > > > > "/usr/local" can be given using "--prefix", for example > > > > > > "--prefix=$HOME" > > > > > > > > > > > > > > > > > > > > > > > > --prefix=PREFIX installation prefix [default: > > > '/usr/local/'] > > > > > > --destdir=DESTDIR installation root [default: ''] > > > > > > --exec-prefix=EXEC_PREFIX > > > > > > installation prefix for binaries [PREFIX] > > > > > > > > > > > > Installation directories: > > > > > > --bindir=BINDIR user commands [EXEC_PREFIX/bin] > > > > > > --sbindir=SBINDIR system binaries [EXEC_PREFIX/sbin] > > > > > > --libexecdir=LIBEXECDIR > > > > > > program-specific binaries > > > [EXEC_PREFIX/libexec] > > > > > > > > > > > > --sysconfdir=SYSCONFDIR > > > > > > host-specific configuration [PREFIX/etc] > > > > > > --sharedstatedir=SHAREDSTATEDIR > > > > > > architecture-independent variable data > > > > > > [PREFIX/com] > > > > > > > > > > > > --localstatedir=LOCALSTATEDIR > > > > > > variable data [PREFIX/var] > > > > > > --libdir=LIBDIR object code libraries [EXEC_PREFIX/lib64] > > > > > > --includedir=INCLUDEDIR > > > > > > header files [PREFIX/include] > > > > > > --oldincludedir=OLDINCLUDEDIR > > > > > > header files for non-GCC compilers > > > > > > [/usr/include] > > > > > > > > > > > > --datarootdir=DATAROOTDIR > > > > > > architecture-independent data root > > > > > > [PREFIX/share] > > > > > > > > > > > > --datadir=DATADIR architecture-independent data > > > [DATAROOTDIR] > > > > > > --infodir=INFODIR GNU "info" documentation > > > [DATAROOTDIR/info] > > > > > > --localedir=LOCALEDIR > > > > > > locale-dependent data > > > [DATAROOTDIR/locale] > > > > > > --mandir=MANDIR manual pages [DATAROOTDIR/man] > > > > > > --docdir=DOCDIR documentation root > > > [DATAROOTDIR/doc/PACKAGE] > > > > > > --htmldir=HTMLDIR HTML documentation [DOCDIR] > > > > > > --dvidir=DVIDIR DVI documentation [DOCDIR] > > > > > > --pdfdir=PDFDIR PDF documentation [DOCDIR] > > > > > > --psdir=PSDIR PostScript documentation [DOCDIR] > > > > But we do allow distros to override those, so passing the on > > Vanilla waf only supports --prefix, --libdir, and --bindir. Anything > else is a result of loading the gnu_dirs tool, which not all projects > are required to do. Sorry, hit send too soo: waf (at least version 2.0) also errors out on unknown options. I think the three I listed are the only ones we can do generically. There might be some way to easily adding the rest if you know waf is loading gnu_dirs > > es that we can is good. bitbake.conf has the canonical list of > > prefix variables that we expose. > > > > Ross > > --=-6r9ZujrzbviOFh3vl8b5 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Mon, 2017-12-11 at 09:32 -0600, Joshua Wat= t wrote:
On Mon, 2017-12-11 at 14:58 += 0000, Burton, Ross wrote:
= On 11 December 2017 at 14:16, Stefan Agner <stefan@agner.ch> w= rote:
Hm, isn't this a "base" option which is always supported?

No idea. :)
 
There are a bunch of others. But most seem to derive fr= om PREFIX, which
we set...

  Installation prefix:

    By default, "waf install" will put the files in "/usr/local/b= in",
"/usr/local/lib" etc. An installation prefix other than
    "/usr/local" can be given using "--prefix", for example
"--prefix=3D$HOME"



    --prefix=3DPREFIX     installation prefix [def= ault: '/usr/local/']
    --destdir=3DDESTDIR   installation root [default: '= ']
    --exec-prefix=3DEXEC_PREFIX
                     = ;   installation prefix for binaries [PREFIX]

  Installation directories:
    --bindir=3DBINDIR     user commands [EXEC_PREF= IX/bin]
    --sbindir=3DSBINDIR   system binaries [EXEC_PREFIX/= sbin]
    --libexecdir=3DLIBEXECDIR
                     = ;   program-specific binaries [EXEC_PREFIX/libexec]

    --sysconfdir=3DSYSCONFDIR
                     = ;   host-specific configuration [PREFIX/etc]
    --sharedstatedir=3DSHAREDSTATEDIR
                     = ;   architecture-independent variable data
[PREFIX/com]

    --localstatedir=3DLOCALSTATEDIR
                     = ;   variable data [PREFIX/var]
    --libdir=3DLIBDIR     object code libraries [E= XEC_PREFIX/lib64]
    --includedir=3DINCLUDEDIR
                     = ;   header files [PREFIX/include]
    --oldincludedir=3DOLDINCLUDEDIR
                     = ;   header files for non-GCC compilers
[/usr/include]

    --datarootdir=3DDATAROOTDIR
                     = ;   architecture-independent data root
[PREFIX/share]

    --datadir=3DDATADIR   architecture-independent data= [DATAROOTDIR]
    --infodir=3DINFODIR   GNU "info" documentation [DAT= AROOTDIR/info]
    --localedir=3DLOCALEDIR
                     = ;   locale-dependent data [DATAROOTDIR/locale]
    --mandir=3DMANDIR     manual pages [DATAROOTDI= R/man]
    --docdir=3DDOCDIR     documentation root [DATA= ROOTDIR/doc/PACKAGE]
    --htmldir=3DHTMLDIR   HTML documentation [DOCDIR]     --dvidir=3DDVIDIR     DVI documentation [DOCDI= R]
    --pdfdir=3DPDFDIR     PDF documentation [DOCDI= R]
    --psdir=3DPSDIR       PostScript document= ation [DOCDIR]

But we do allow distros = to override those, so passing the on

Vanilla waf only supports --prefix, --libdir, and --bindi= r. Anything else is a result of loading the gnu_dirs tool, which not all pr= ojects are required to do.

Sorry, hit= send too soo: waf (at least version 2.0) also errors out on unknown option= s. I think the three I listed are the only ones we can do generically. Ther= e might be some way to easily adding the rest if you know waf is loading gn= u_dirs


es that we can is good.  bitbake.conf has the ca= nonical list of prefix variables that we expose.

R= oss 
--=-6r9ZujrzbviOFh3vl8b5--