From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: fix plugindir processing to be filesystem agnostic Date: Mon, 23 Nov 2015 11:41:48 +0100 Message-ID: <5046573.RFcWRsU8GT@xps13> References: <923ebe527219fa16ca91e74b416b978803056d70.1447829123.git.pmatilai@redhat.com> <5652AC5A.4080005@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Panu Matilainen Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id A0CBE8E8E for ; Mon, 23 Nov 2015 11:43:04 +0100 (CET) Received: by wmvv187 with SMTP id v187so154037618wmv.1 for ; Mon, 23 Nov 2015 02:43:04 -0800 (PST) In-Reply-To: <5652AC5A.4080005@redhat.com> 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" Hi Panu, 2015-11-23 08:04, Panu Matilainen: > On 11/20/2015 06:38 PM, David Marchand wrote: > > It looks like you would skip the symbolic links while you were not before. > > Intended ? > > Intended. We want to accept symlinks in the driver directory, but the > actual drivers are always regular files. No we use symbolic links: http://dpdk.org/browse/dpdk/commit/mk/rte.lib.mk?id=133b75923 http://dpdk.org/browse/dpdk/tree/mk/rte.lib.mk#n170 On the same topic, you've added a check in 9f8eb1d9: + if (stat(solib->name, &sb) == -1) { + RTE_LOG(ERR, EAL, "Invalid plugin specified: %s: %s\n", + solib->name, strerror(errno)); It is a regression because we cannot anymore load a plugin from LD_LIBRARY_PATH without specifying its full path. It can be tested with scripts/test-null.sh. How do you suggest to fix it? Thanks