From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <luca.boccassi@gmail.com>
Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com
 [209.85.128.66]) by dpdk.org (Postfix) with ESMTP id B6F665B26
 for <dev@dpdk.org>; Thu,  2 May 2019 14:54:27 +0200 (CEST)
Received: by mail-wm1-f66.google.com with SMTP id b10so2673583wmj.4
 for <dev@dpdk.org>; Thu, 02 May 2019 05:54:27 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to
 :references:content-transfer-encoding:user-agent:mime-version;
 bh=8J+FB9Oa44ebskzO5yTgpUDoq6sUoAd4i1rIGdTHvVg=;
 b=AdkkQ9bnxZ2AqdElBJc8Fn43f2cd0Sm5C9I5c0baX4EsX0C5a/mtxsm+DaNgadO2Js
 L7o18haCLyiPEedWjmKNZudq0LcSDwrW2U7m/3P15y6PdGYJaQqWQupixu7F6x+od4jC
 PsHgFBj5t+JwXvgdV5b65ahROy95R0EYzeZNjQ3j2UZarLj7Xq4LEFV+eeKcoFd8PRh4
 zSW2SbkbyQP09uax2SiezT88Ti6H0b/jw+/spG8B+KY1WY+K8Us7fQdCFtbyq3MrvFcU
 IGUHpQn8iN4yUAnTPlMIdCOC/iioVRKnnNE21sZcFcUrHCK18ysqJi6xo6L6ScUJ5pNZ
 CpUA==
X-Gm-Message-State: APjAAAWXzZS4F4qaHBlnduakrzTdoxUR9+Sku8l/YOp2LwADmHn6XcMt
 c5EJJAtD5m7M9NBaJVyEbcY=
X-Google-Smtp-Source: APXvYqztHBSSjITtJgBn+oaZjUiBHMsyRRGNeYMkfis0os8gf/qCE1wp+BmA0yRLRKRFBHbMhtFaxw==
X-Received: by 2002:a1c:44d7:: with SMTP id r206mr2178377wma.129.1556801667226; 
 Thu, 02 May 2019 05:54:27 -0700 (PDT)
Received: from localhost ([88.98.246.218])
 by smtp.gmail.com with ESMTPSA id r9sm46174039wrv.82.2019.05.02.05.54.26
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 02 May 2019 05:54:26 -0700 (PDT)
Message-ID: <31b91d2eccfb2371dc77b5c6833f9df654007e93.camel@debian.org>
From: Luca Boccassi <bluca@debian.org>
To: Thomas Monjalon <thomas@monjalon.net>, Bruce Richardson
 <bruce.richardson@intel.com>
Cc: dev@dpdk.org
Date: Thu, 02 May 2019 13:54:25 +0100
In-Reply-To: <3343772.7GDin1kDO3@xps>
References: <20190423220644.54589-1-bruce.richardson@intel.com>
 <20190426165043.17268-1-bruce.richardson@intel.com>
 <20190426165043.17268-5-bruce.richardson@intel.com>
 <3343772.7GDin1kDO3@xps>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.30.5-1 
MIME-Version: 1.0
Subject: Re: [dpdk-dev] [PATCH v2 4/6] devtools/test-meson-builds: add
 testing of pkg-config file
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 02 May 2019 12:54:27 -0000

On Thu, 2019-05-02 at 14:38 +0200, Thomas Monjalon wrote:
> > +$ninja_cmd -C $build_path install
> > +
> > +pc_file=3D$(find $DESTDIR -name libdpdk.pc)
> > +PKG_CONFIG_PATH=3D$(dirname $pc_file) ; export PKG_CONFIG_PATH
> > +
> > +# rather than hacking our environment, just edit the .pc file
> > prefix value
> > +sed -i -e "s|prefix=3D|prefix=3D$DESTDIR|" $pc_file
>=20
> What is the alternative?
> Cannot we configure meson with the right prefix?

Please see the email exchange between myself and Bruce on v1 3/4 - the
short version is that it can, but it gets messy due to the kernel
modules.

--=20
Kind regards,
Luca Boccassi

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id 1145FA0AC5
	for <public@inbox.dpdk.org>; Thu,  2 May 2019 14:54:31 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 8F5365B2E;
	Thu,  2 May 2019 14:54:29 +0200 (CEST)
Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com
 [209.85.128.66]) by dpdk.org (Postfix) with ESMTP id B6F665B26
 for <dev@dpdk.org>; Thu,  2 May 2019 14:54:27 +0200 (CEST)
Received: by mail-wm1-f66.google.com with SMTP id b10so2673583wmj.4
 for <dev@dpdk.org>; Thu, 02 May 2019 05:54:27 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to
 :references:content-transfer-encoding:user-agent:mime-version;
 bh=8J+FB9Oa44ebskzO5yTgpUDoq6sUoAd4i1rIGdTHvVg=;
 b=AdkkQ9bnxZ2AqdElBJc8Fn43f2cd0Sm5C9I5c0baX4EsX0C5a/mtxsm+DaNgadO2Js
 L7o18haCLyiPEedWjmKNZudq0LcSDwrW2U7m/3P15y6PdGYJaQqWQupixu7F6x+od4jC
 PsHgFBj5t+JwXvgdV5b65ahROy95R0EYzeZNjQ3j2UZarLj7Xq4LEFV+eeKcoFd8PRh4
 zSW2SbkbyQP09uax2SiezT88Ti6H0b/jw+/spG8B+KY1WY+K8Us7fQdCFtbyq3MrvFcU
 IGUHpQn8iN4yUAnTPlMIdCOC/iioVRKnnNE21sZcFcUrHCK18ysqJi6xo6L6ScUJ5pNZ
 CpUA==
X-Gm-Message-State: APjAAAWXzZS4F4qaHBlnduakrzTdoxUR9+Sku8l/YOp2LwADmHn6XcMt
 c5EJJAtD5m7M9NBaJVyEbcY=
X-Google-Smtp-Source: APXvYqztHBSSjITtJgBn+oaZjUiBHMsyRRGNeYMkfis0os8gf/qCE1wp+BmA0yRLRKRFBHbMhtFaxw==
X-Received: by 2002:a1c:44d7:: with SMTP id r206mr2178377wma.129.1556801667226; 
 Thu, 02 May 2019 05:54:27 -0700 (PDT)
Received: from localhost ([88.98.246.218])
 by smtp.gmail.com with ESMTPSA id r9sm46174039wrv.82.2019.05.02.05.54.26
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 02 May 2019 05:54:26 -0700 (PDT)
Message-ID: <31b91d2eccfb2371dc77b5c6833f9df654007e93.camel@debian.org>
From: Luca Boccassi <bluca@debian.org>
To: Thomas Monjalon <thomas@monjalon.net>, Bruce Richardson
 <bruce.richardson@intel.com>
Cc: dev@dpdk.org
Date: Thu, 02 May 2019 13:54:25 +0100
In-Reply-To: <3343772.7GDin1kDO3@xps>
References: <20190423220644.54589-1-bruce.richardson@intel.com>
 <20190426165043.17268-1-bruce.richardson@intel.com>
 <20190426165043.17268-5-bruce.richardson@intel.com>
 <3343772.7GDin1kDO3@xps>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.30.5-1 
MIME-Version: 1.0
Subject: Re: [dpdk-dev] [PATCH v2 4/6] devtools/test-meson-builds: add
 testing of pkg-config file
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>
Message-ID: <20190502125425.4wUZRFMFnbF8tt-KPwS9NghSQvetC2XEoY6HHQZ45O4@z>

On Thu, 2019-05-02 at 14:38 +0200, Thomas Monjalon wrote:
> > +$ninja_cmd -C $build_path install
> > +
> > +pc_file=3D$(find $DESTDIR -name libdpdk.pc)
> > +PKG_CONFIG_PATH=3D$(dirname $pc_file) ; export PKG_CONFIG_PATH
> > +
> > +# rather than hacking our environment, just edit the .pc file
> > prefix value
> > +sed -i -e "s|prefix=3D|prefix=3D$DESTDIR|" $pc_file
>=20
> What is the alternative?
> Cannot we configure meson with the right prefix?

Please see the email exchange between myself and Bruce on v1 3/4 - the
short version is that it can, but it gets messy due to the kernel
modules.

--=20
Kind regards,
Luca Boccassi