From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id DB79A4CB3 for ; Wed, 12 Sep 2018 19:21:39 +0200 (CEST) Received: by mail-wr1-f68.google.com with SMTP id v17-v6so2871852wrr.9 for ; Wed, 12 Sep 2018 10:21:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hNzoPl1aTy3xU0mV4GgkAxB7teWbIEi6ZkOmtD5t/iA=; b=rnZx+xt+r7MjenJ5evieQyML7yggooz+Pw2n9l7six2WVY1m7J9xJ/vSqa4fdx+V+p qVkd/2EkffzxmtCulhPejjFCoo9/mTqWfU2Vu3ifu4kww2NH3svesRSsxRVRGmqAmjrd jHF+IBBcvU903Sn13U6OT5HuGE6D3XZy7WZyh85GntO5cLBZJzGyxTN+u9bVXVflGI58 0U5dkVe56/fwIkHg4T4lQ6LvF7AO1A8xXJyk9vGLE/KxW3q6nK7sxb/8VbnbiZ9b2E8T hK9UhgRcVhpjZ0E/+lDf0vIDjPQbFNx/LktXTjApYWCtoDJlZBNIqMv7weh91/4A4XW2 7Zqw== X-Gm-Message-State: APzg51CK2vIw/7K8Fc9iO0sAw6WIvEw+grPZ/WeBkgt0UQe6dfWAMmzK S3smh7KZR+yyU222sSbtECeVrNg0E7U= X-Google-Smtp-Source: ANB0VdY8lSScyCtuzZDz7SfxzqxXnJM2kIb63vblwVAucIos/rs/UWV4fjJY5WySvxg6UorT0XpXaA== X-Received: by 2002:adf:84c1:: with SMTP id 59-v6mr2236367wrg.97.1536772899138; Wed, 12 Sep 2018 10:21:39 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id u4-v6sm879825wro.47.2018.09.12.10.21.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Sep 2018 10:21:37 -0700 (PDT) From: Luca Boccassi To: dev@dpdk.org Cc: bruce.richardson@intel.com, tredaelli@redhat.com Date: Wed, 12 Sep 2018 18:21:34 +0100 Message-Id: <20180912172134.21099-1-bluca@debian.org> X-Mailer: git-send-email 2.18.0 Subject: [dpdk-dev] [PATCH] build: create relative symlinks for PMDs in libdir X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2018 17:21:40 -0000 Add -r option to ln, otherwise the link will be absolute and contain the build path and break packaging among other things: lrwxrwxrwx 1 bluca bluca 99 Sep 11 22:17 librte_mempool_dpaa.so.1.1 -> /home/bluca/git/dpdk/testt4//usr/local/lib/x86_64-linux-gnu/dpdk/ drivers/librte_mempool_dpaa.so.1.1 With -r: lrwxrwxrwx 1 bluca bluca 35 Sep 12 18:13 librte_pmd_zlib.so.1.1 -> dpdk/drivers/librte_pmd_zlib.so.1.1 Fixes: ed4d43d73e2b ("build: symlink drivers to library directory") Cc: stable@dpdk.org Signed-off-by: Luca Boccassi --- buildtools/symlink-drivers-solibs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/symlink-drivers-solibs.sh b/buildtools/symlink-drivers-solibs.sh index 803dfec491..9826c6ae37 100644 --- a/buildtools/symlink-drivers-solibs.sh +++ b/buildtools/symlink-drivers-solibs.sh @@ -9,4 +9,4 @@ # parameters to script are paths relative to install prefix: # 1. directory containing driver files e.g. lib64/dpdk/drivers # 2. directory for installed regular libs e.g. lib64 -ln -sf ${DESTDIR}/${MESON_INSTALL_PREFIX}/$1/* ${DESTDIR}/${MESON_INSTALL_PREFIX}/$2 +ln -rsf ${DESTDIR}/${MESON_INSTALL_PREFIX}/$1/* ${DESTDIR}/${MESON_INSTALL_PREFIX}/$2 -- 2.18.0