From patchwork Mon May 13 16:59:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 164039 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1580123ili; Mon, 13 May 2019 10:00:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy516I+dGg7alC7ZMb2JbTt5pQKCXhntuqNyAkpARp0FCDiQjhGoWE0iA3tmm20bE/Xu4H X-Received: by 2002:a63:8dc8:: with SMTP id z191mr33052789pgd.9.1557766808196; Mon, 13 May 2019 10:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557766808; cv=none; d=google.com; s=arc-20160816; b=JMxOyVqLiTYRlHc8vPfdsWLjYFjxDD6FT1+4bmSnQXx06J8bqthODQ19x3LsfYeaq3 8s22oWOOn1A1pys4qP/ZoUXNYyt2pX+vawB+qD4sVwPAgyyTFzDAh53L2OMaIxfqnBAe oNRah4X3qEg0zvvd58Sfq4V1KwpP94PGhP8giOf4c0NdAVrqCUPeoHONsVxT0we9h9wq yOkp22/oT7Rlav3XwUtG8RRULYblqRqrgvFNV8AY8BINuvMxL3EaeZy0LBUCD2HzF6rs a3OEoK8Ijy6gH10OtTV9onpbaX5mcRoB/r/1ojjAvYet8NNLha69mDT5UVtwevu4vIYC K0vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=SZB3zJ4v81eaSGRsTULmXjg9bUrbGPIuKFZ7Vw49Z3U=; b=tXnnQWr1YIW3qo2SZ0XiAr8kKJaqykDIgrGuoyC0iVs+bPPfs5ZoxWMCHuWXqBhASZ KNEaTr4P6xIfmVUgQ6lSQ5B4HKDpov9sRTncxsaUNqRk8vDZXgMcmwHMopchbpp3Ckxb dXYLU6cSctGktyDg29LA0tvykz1NovM/Er+CY29cfftD1pW54g5Fzb6T6EUEph7mTzLJ 4IM/JxnyMN+OhewgFLyypTUcMbgn0A1lYK617bkrfAR4fyQ7PtN8545SGvxiEtDp+KuQ gzUVUPN4Yk/+79m+kJnHvBtqlAmV5G4NgNTwdNBZwfmHg3QP9O43YobKquuFooYmxjTq 6vvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=bM9wORCH; dkim=pass header.i=@linaro.org header.s=google header.b="F3/tqMyG"; spf=pass (google.com: domain of libc-alpha-return-101956-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101956-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id r71si9902471pgr.518.2019.05.13.10.00.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 10:00:08 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-101956-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=bM9wORCH; dkim=pass header.i=@linaro.org header.s=google header.b="F3/tqMyG"; spf=pass (google.com: domain of libc-alpha-return-101956-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101956-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=kpcVU4DUnEKQatlcjrpzA0WeSPmW0kriCJ/JwMzslBMRsH+m1A85O x+Zj0m4EC3ZSa+gCeTM15LAfoSeoEm5Vxfpb2/p5ftzZx9Spxv6dm494NwAVcEZQ CfdfyC5lvmyl6UnxR4vh2R7iOCJ2mXQUv4AyJXdwhdkm5jt1OCUzQM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=XgWdIAUUJr+BsF2zoSTD5M72WIo=; b=bM9wORCHnFzrB8oV+A8vQ5MAueYC ntyud4yhMxAWL7Q2ck1i22tztFISH/yu/GMDJzMY/P54qb3W5Iu1JLCg1DwWDTYp qN/K45F/RM9Uj4E9cQcnQXGRQyOVHRCzQhIoFNE+aWj/i0mcIRsJrEykvhkBCtH5 hUuXfiQgb/aiP34= Received: (qmail 7804 invoked by alias); 13 May 2019 16:59:59 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 7796 invoked by uid 89); 13 May 2019 16:59:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:644 X-HELO: mail-vs1-f65.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SZB3zJ4v81eaSGRsTULmXjg9bUrbGPIuKFZ7Vw49Z3U=; b=F3/tqMyGUaQEgcvLtYKl1kIdLvNyzDR2pwFnmzDfBN/RvkZqdbMk98e+4gL55VEaTu vas0aX+6vJ4G//rTJmjM1kMHBFnUz9MLC30Nk2uXdcnsUynt1UlaBr4jLN2iu+XTxabP p3twStCEsEDpN5JmJ0pFgx246YvfE735Y0YNt3UuFOjzcYBlBoCFHHn0KHbh+nffbidN btg5X2G1Z+JNR+jIXIIQOJCJ32h1FweWKzM8Y09TyyiIqPveRun8BJtK8Y6mj19fQnIr 2iFwRIFVtjMHepOL3wcBHQknp7OCzcqjIcsqc9YfTxVHZoNUcKh3TvlMGWEe+eSwGHn8 Ds9A== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Carlos O'Donell Subject: [PATCH 1/3] Make --bindir effetive Date: Mon, 13 May 2019 13:59:50 -0300 Message-Id: <20190513165952.28972-1-adhemerval.zanella@linaro.org> This allows sets a path using --bindir. Checked on x86_64-linux-gnu with a non-default --bindir and checked resulting installed binaries (pldd for instance). * config.make.in (bindir): New variable. --- config.make.in | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/config.make.in b/config.make.in index f46bfc29bb..2fed3da773 100644 --- a/config.make.in +++ b/config.make.in @@ -10,6 +10,7 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ libdir = @libdir@ +bindir = @bindir@ slibdir = @libc_cv_slibdir@ rtlddir = @libc_cv_rtlddir@ complocaledir = @libc_cv_complocaledir@ From patchwork Mon May 13 16:59:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 164040 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1580533ili; Mon, 13 May 2019 10:00:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlnXWbS9xlHagUu3v5bqVp8d/XO4gq5QqkRITkPganrWlGVNn1fLgvP5IkBPOZ7rhuIW69 X-Received: by 2002:a63:8dc9:: with SMTP id z192mr32088187pgd.6.1557766824109; Mon, 13 May 2019 10:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557766824; cv=none; d=google.com; s=arc-20160816; b=GEI7UJLErtx9Em3V7Lyi6IQdJxaze8LYbLY10N8mwEwk0S6lUyJppUzITrIrHdU0Ik 77t3qADaaooczUyjX/SqfFaarEhr3pPteMy+IxtMbAhtbVITPQgeh+zQjBpFwDuGAgNr PLVicISuIVyLpuH75brOSJ+NYjbNsIeufjbrfF/ePMEjlxLotgxwpKGU7kA9nGR/sBhe VnXqPrG+fJJ3ftyuQ8lF9lzTk32eWL3CtKqcQ6Njb0oqLafDCEBI/LJyhc2y7DSAA7wt +8qm+HUMaNTPxJRTEnh9vERwArtT5l6hvANI+VVp/7VG3zXop36IAaF1EOb9In2n/b9d k9kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=5iLP8DsMf82r/N+1r2UMIJuS+uNpF92U7mg974ivwUg=; b=O5Z84/0aflRhECkE0GJUhmBR5eMkGXCyQ1f1Ac4pdB0ASQ+Xapg1Hd3T5pgG6dPZ7j bEvssi2DmFITcccwy3eLpr950OB72XGzrZO4ZI6NDuGhzhi0Wfl0VaChrJvaV0W+EkoY TGZsFaM3oX8DwsUQrq/PS8WxTWodKBOVnNZZlRvuNjnw/Yh0rD4K547BZ7QsLAzqe2Ti +yOTNyRdMGaIKdKsBYan1gZT4TqhqJeObCw+qQ3v9tQjDQqb1BnkoqUCva4DLh1U0qTw IlS8h/7fo3RxmsIh7/OFeMOq7jGjSDzalg8YSsJr8LPKDT1JYcuX19qwjGpLPVfYw0Lg a4aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=LKzv0dbN; dkim=pass header.i=@linaro.org header.s=google header.b=uecL1jxj; spf=pass (google.com: domain of libc-alpha-return-101957-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101957-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id q23si17744579pfh.28.2019.05.13.10.00.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 10:00:24 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-101957-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=LKzv0dbN; dkim=pass header.i=@linaro.org header.s=google header.b=uecL1jxj; spf=pass (google.com: domain of libc-alpha-return-101957-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101957-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=VHuuGH7HG9yPr9gSLV8S24VFgunSUvS POerHQ5zfk9iwrCwBkxhlw1nmvRk3eSWWyUjW/RsfiJClBuaYTjqG27W/uzckg1T Qy32s/Om3895Ik6CwKRE8aDHwDMqJUUqQKiCH4+6w7sw5WkoYaIModvEKWfpyfQp pE2SBzhKd/ZY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=BAgUF1bn1AgHu4uvdep7NU/x9oQ=; b=LKzv0 dbNIYLvChiQTL1BI+zbLVbX2w42DWZkq70TDybQYagSVIfho6PRaWpmwqFZF28DH R6JHd0ZDy0ELBMnNVod98YNzvrbnmfxQtrzuqJC9CKF8UoBPBC029nRScNsqOx+y yBjvWViMd/NcPAbhcuWU9SDoDtsSa5Vw89kfzw= Received: (qmail 8070 invoked by alias); 13 May 2019 17:00:01 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 8002 invoked by uid 89); 13 May 2019 17:00:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=1798, HX-Languages-Length:1939 X-HELO: mail-ua1-f41.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5iLP8DsMf82r/N+1r2UMIJuS+uNpF92U7mg974ivwUg=; b=uecL1jxjpmeehvgeKhY7asETQUUDGVbO9tVeUDJrL2mal4/yGFOHjCaHYpykEEtjiP d5JnAFuQyfhB5elSk7AkQvPxS1+CHIHZHMe/SOJhIcrtKxRw9QBsTt6ak02dtfnXs2vv G+aQwFFWfKGp3knP/0z8GnQjlS0Dw8s6/vWHjLivJyiFGwjY5rLD3171HZDx+bnBWXGY UOk2LGnYIZmDL9o29CRoLdb3p/NsAwqigJxLqbThS1yGAQQLBV9kB4pcu2DS4j3mNam7 i1NNUjcAcr54EuWQgB4gAYSII6uHUeCUiLHI8GzycXogSEtxzAuC5ULwYcU5O7cxt68D 5l+g== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Carlos O'Donell Subject: [PATCH 2/3] support: Export bindir path on support_path Date: Mon, 13 May 2019 13:59:51 -0300 Message-Id: <20190513165952.28972-2-adhemerval.zanella@linaro.org> In-Reply-To: <20190513165952.28972-1-adhemerval.zanella@linaro.org> References: <20190513165952.28972-1-adhemerval.zanella@linaro.org> Checked on x86_64-linux-gnu. * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH. * support/support.h (support_bindir_prefix): New variable. * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix): --- support/Makefile | 3 ++- support/support.h | 2 ++ support/support_paths.c | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/support/Makefile b/support/Makefile index 64044f6f5c..fe416cdc5f 100644 --- a/support/Makefile +++ b/support/Makefile @@ -179,7 +179,8 @@ CFLAGS-support_paths.c = \ -DOBJDIR_PATH=\"`cd $(objpfx)/..; pwd`\" \ -DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \ -DINSTDIR_PATH=\"$(prefix)\" \ - -DLIBDIR_PATH=\"$(libdir)\" + -DLIBDIR_PATH=\"$(libdir)\" \ + -DBINDIR_PATH=\"$(bindir)\" ifeq (,$(CXX)) LINKS_DSO_PROGRAM = links-dso-program-c diff --git a/support/support.h b/support/support.h index 97fef2cd23..b162491be6 100644 --- a/support/support.h +++ b/support/support.h @@ -105,6 +105,8 @@ extern const char support_objdir_elf_ldso[]; extern const char support_install_prefix[]; /* Corresponds to the install's lib/ or lib64/ directory. */ extern const char support_libdir_prefix[]; +/* Corresponds to the install's bin/ directory. */ +extern const char support_bindir_prefix[]; extern ssize_t support_copy_file_range (int, off64_t *, int, off64_t *, size_t, unsigned int); diff --git a/support/support_paths.c b/support/support_paths.c index 937e6e1012..75634aab9a 100644 --- a/support/support_paths.c +++ b/support/support_paths.c @@ -57,3 +57,10 @@ const char support_libdir_prefix[] = LIBDIR_PATH; #else # error please -DLIBDIR_PATH=something in the Makefile #endif + +#ifdef BINDIR_PATH +/* Corresponds to the install's bin/ directory. */ +const char support_bindir_prefix[] = BINDIR_PATH; +#else +# error please -DBINDIR_PATH=something in the Makefile +#endif From patchwork Mon May 13 16:59:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 164041 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1580687ili; Mon, 13 May 2019 10:00:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDlI4qbZK44liNkH7INONNYmowqaMqU3BZ8rnYxjAhjgs2H4WVa2u8yk++02NKglGum6oW X-Received: by 2002:a63:234c:: with SMTP id u12mr33652270pgm.264.1557766831339; Mon, 13 May 2019 10:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557766831; cv=none; d=google.com; s=arc-20160816; b=e0sFDtD+OLnNeaKGXxSm+tajOuHAHRis7i7c7JHIoiUNN2Y3D5MWjoc/oi7q7D6+bq v2HdujjjzvUhgV6iveC428ZbXmEho7j43vJ67JPHUNnbKJeTtirkkuqq54+379v6Es1f vbKXfz4/z+xz5zxD/w+olGqtLAtbIi+UDoNdtUorJUQYPHzJxwpFFShleKfWMXo3+zxR Yi0bSf2Cz3YPZTFRovAH/Tq5k3SaZBIg+Icr7Tv3Am/oBd13Hdz37kz8JzwkzWCRVwgv NXX9ihymdzwM/8gIiiXAcX78cK4AgiGhqkhKNxpq+6AqbUwZ+M1yhYRkF0q9sWiNAwKv 4rxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=+HFb/MCBBnzyFoYf24Sqja3VP692/AMRNKl2QuS76Q8=; b=OK3EEAPqhSgac93+AWI6G9Zw1hKg6ZQRa7pR4ou/I9Ar9b8vrn7g7LtvVNZtdg6BpY Y3T9dU4gcV2kxAJXfhsYRLh6z42MpEhZVU63ZyCGHU2YeDK1ncyzxh1Kb8vl53aZW9mW jfJKuuyK03tWIYXcAEKNipLNhfJUkOjgco8tu02ru6MQUxT/jDdAwvnD/dAUHL3kyVws eVb4ilYKWxiOdF33WqELSSnqLoeuzPX7+uqFAIbBFpYBJ5YgnuIESOCqYp9sku/ef26k jAUBx/IxtkNSRXiw/6+6FE78IBOoXRrKnLALpw7RzTJEjgyH0iPPy2lG6qvESgjS1Jd8 Yjqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=S8QmJt4n; dkim=pass header.i=@linaro.org header.s=google header.b=wbWy7IMX; spf=pass (google.com: domain of libc-alpha-return-101958-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101958-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 3si3223970pgj.104.2019.05.13.10.00.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 10:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-101958-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=S8QmJt4n; dkim=pass header.i=@linaro.org header.s=google header.b=wbWy7IMX; spf=pass (google.com: domain of libc-alpha-return-101958-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101958-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=N+dAjI1ESKAqoln9zKzCSB8AAtLB7m5 QuD01G2O/QAgeVA1eVTjhju+9/994TxvtLTInAlDXeFiuPLcuqgg86tJDFp+fQTP ZKvtzlTiPeNMg7iLzkwI77AugsdlSqktNjXhk34qDJfIAI+nrPr29gDKOPxCXiLK +DCGjboih60w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=nNDKSmsSSDX7bVMQhxiuXfTV7Tk=; b=S8QmJ t4ntlFJ8R/cqL/3OQmbt7oIqZH+MkHLARXxqewI9PLEL99K7HsWuUDu8BdZSHOnE q6g4S2hGGwr0NNprzCEGF5xHfrhOhuC8Ozfe2t0GzSieP/yfIG3kEHH+CuJDlQHA 7In2q9VcFph+XsYdhv2tnYgqxedEKmkZpsOAVM= Received: (qmail 8350 invoked by alias); 13 May 2019 17:00:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 8270 invoked by uid 89); 13 May 2019 17:00:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=18, 6 X-HELO: mail-vs1-f67.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+HFb/MCBBnzyFoYf24Sqja3VP692/AMRNKl2QuS76Q8=; b=wbWy7IMXgggLaAvQNISnXWKgtrsd7S6QyLQ5gS0Qe35O8UZfFqFMATTPZfLhRxKDx8 pvobqv61NRDZTMUFbp4M9+IRkdEzNuyA7rz0dds5DYxkJ/cw6fPQsq20h0xpinwUNKdv sJxww15IR7lFnl8jR9R7lTpeGiKlBzrh8XXUAz1FvPq7EpOereCpMie9J+8dAdqjNMHk N3oS87I8MwmXZz3tyJXdyhw5JJZhHpOz3UUWRn9ZNa2MFsk/YcpCZIXZkK6QjSYlpIxx qrZ6z4siggW7i1g9Bo0LcUQ0HsFqDHEgJPaGcpPVcQtfF0c6+libeqFOP0G8kdPnUTEZ PMbA== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Carlos O'Donell Subject: [PATCH 3/3] elf: Fix tst-pldd for non-default --prefix and/or --bindir (BZ#24544) Date: Mon, 13 May 2019 13:59:52 -0300 Message-Id: <20190513165952.28972-3-adhemerval.zanella@linaro.org> In-Reply-To: <20190513165952.28972-1-adhemerval.zanella@linaro.org> References: <20190513165952.28972-1-adhemerval.zanella@linaro.org> Use a new libsupport support_bindir_prefix instead of a hardcoded /usr/bin to create the pldd path on container directory. Checked on x86_64-linux-gnu with default and non-default --prefix and --bindir paths, as well with --enable-hardcoded-path-in-tests. [BZ #24544] * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of pre-defined value. --- elf/tst-pldd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/elf/tst-pldd.c b/elf/tst-pldd.c index 2a9f58936f..6b7c94a1c0 100644 --- a/elf/tst-pldd.c +++ b/elf/tst-pldd.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -28,6 +29,7 @@ #include #include #include +#include static void target_process (void *arg) @@ -60,12 +62,14 @@ do_test (void) char pid[3 * sizeof (uint32_t) + 1]; snprintf (pid, array_length (pid), "%d", target.pid); - const char prog[] = "/usr/bin/pldd"; + char *prog = xasprintf ("%s/pldd", support_bindir_prefix); pldd = support_capture_subprogram (prog, (char *const []) { (char *) prog, pid, NULL }); support_capture_subprocess_check (&pldd, "pldd", 0, sc_allow_stdout); + + free (prog); } /* Check 'pldd' output. The test is expected to be linked against only