From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] mk: fix FreeBSD build Date: Thu, 21 Jul 2016 10:27:54 +0200 Message-ID: <3763917.FNUyifCyb9@xps13> References: <1468857995-130392-1-git-send-email-sergio.gonzalez.monroy@intel.com> <1468935637-39937-1-git-send-email-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Christian Ehrhardt , dev , Ferruh Yigit To: Sergio Gonzalez Monroy Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 06C4C3777 for ; Thu, 21 Jul 2016 10:27:57 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id q128so13527215wma.1 for ; Thu, 21 Jul 2016 01:27:57 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > The sed syntax of '0,/regexp/' is GNU specific and fails with > > non GNU sed in FreeBSD. > > > > To solve the issue we can use awk instead to remove duplicates. > > > > The awk script basically keeps the last config value, while > > maintaining order and comments from original config file. > > > > Fixes: b2063f104db7 ("mk: filter duplicate configuration entries") > > > > Signed-off-by: Sergio Gonzalez Monroy > > Hi, > the order changed, but IMHO actually it improved. > Things are now at the place they were before, but with the overwriting > config value that came later - that is the best of both worlds. > > Tested a few config runs pre/post patch and compared them sorted (equal) > and unsorted - now configs slotted in where they belong. > Thanks for updating Sergio > > Acked-by: Christian Ehrhardt Applied, thanks