From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 8CFAD8D9E for ; Tue, 22 Sep 2015 12:39:53 +0200 (CEST) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1ZeKzD-0002Zu-7i; Tue, 22 Sep 2015 06:39:48 -0400 Date: Tue, 22 Sep 2015 06:39:41 -0400 From: Neil Horman To: Olivier MATZ Message-ID: <20150922103941.GA31679@hmsreliant.think-freely.org> References: <1442608390-12537-1-git-send-email-mario.alfredo.c.arevalo@intel.com> <5600F549.20000@redhat.com> <56010A91.5020607@6wind.com> <56011296.7060502@redhat.com> <56011898.6090207@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56011898.6090207@6wind.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -1.0 (-) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 0/7] Add hierarchical support to make install X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 10:39:53 -0000 On Tue, Sep 22, 2015 at 11:00:08AM +0200, Olivier MATZ wrote: > Hi, > > On 09/22/2015 10:34 AM, Panu Matilainen wrote: > > On 09/22/2015 11:00 AM, Olivier MATZ wrote: > >> Actually, the current "install" directive means: install all stuff > >> required to build a project for the specified targets (example: > >> x86_64-native-linuxapp-gcc). > >> > >> If we just do "make install T=${target}", the target is installed > >> into the current SDK source. Adding DESTDIR will install the binary > >> DPDK in a new directory. Example: > >> > >> make -j32 T="*-native-linuxapp-gcc" DESTDIR=/tmp/binary-dpdk install > >> > >> In both cases, the result can be used to build an application (like > >> the one found in examples) using the the DPDK framework. So, the current > >> "install" directive should be understood as "install binary sdk". > > > > I know. What it now does is the very problem being addressed :) > > > > The current behavior is just so alien to the rest of the OSS world it > > actually creates an extra barrier of entry to the project. Besides that, > > it forces people to manually do the cp/mv dance instead - witness > > %install in pkg/dpdk.spec. It also unnecessarily rebuilds stuff when it > > should be just copying. > > I agree, I was just trying to summarize what the "install" does > right now, I don't say it's the proper behavior. > > > >> From what I understand, what Mario wants to add is a "install runtime > >> libraries" directive. > > > > Its not limited to runtime libraries, it installs headers and such too. > > The point, AFAICS, is have "make install" do what people actually expect > > it to do - a system-wide installation. Principle of least surprise and all. > > > >> > >> I agree that using H=1 is maybe not the clearest solution. What about > >> renaming the "install" directive to: > >> - install-sdk > >> - install-runtime > >> > >> It would help to keep the current behavior of "install" for some time, > >> marking it as deprecated. > > > > Nothing wrong with having separate targets for installing runtime- and > > sdk-specific bits, but thats not the point here. > > Hmm I think it is. > > My question is: do we want to keep the current install behavior for > compatibility or not? Should we consider this makefile directive as > an API? People may use it, and we should at least ask us it it should > follow a sort of API deprecation process like we do for the code. > That's why I talked about 2 new commands and deprecate the old one. > No, build requirements and mechanisms should not be considered part of the API. There might be other reasons to keep them consistent (and there may be here), but we don't need to proect the build mechanism, as API is meant to allow backward compatibility for applications, and the build details are orthogonal to that. Neil > Regards, > Olivier >