From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6BA219A2AA for ; Thu, 27 Jun 2024 17:33:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719509586; cv=none; b=eO/pdjjQUxncEhrL6Jf5kZMJQq4CFImWL+lfJEpobNbtJwIOK4DTdj1nyR3alT+6qeFxL8+kiXv1E04/spPD3A2OYsn/AE1+uwgVpz6VREGanaW95fn/S8HMeM+EWRf2y41cHbjVtKHpnfisLjwAnN1R22TNyr5UTVTSrutczmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719509586; c=relaxed/simple; bh=6KMR7PgsUZzS4Gtw9YtoPUY76plMCLiaA0INtD68ckA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G9YU+ACF5r+u0fhhXEfpWm9NJo5SdOLEyV9tkmCQ4nrDcfkKQyM6npYCgKfZMwHT0TxDSz2B0MxgROrbY00NIfsQVxzdDIpmtCd6z6kNhyGR3w8Wg2CRvm7Etqvr9tsPF497cr6jObHoTsEP2ha9QLhfl0/hVB1nt+LpLPvANIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ia7Lw250; arc=none smtp.client-ip=209.85.166.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ia7Lw250" Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-375f6841f01so3738605ab.2 for ; Thu, 27 Jun 2024 10:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1719509584; x=1720114384; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6KMR7PgsUZzS4Gtw9YtoPUY76plMCLiaA0INtD68ckA=; b=Ia7Lw250ll0AjoBUjmmpes/Ux3zdHdL2UjDCw1cDD/5QzwO8ktfxpkKSnn1Dqaagk8 j8WM/AM8NbqTlsO37pWdY5Po+UtktzxIR4K7EgzjzTC8bMBxLzpXiZm+QuYev+/7j/Am Jty1LxYvzYZLFLlnHpyxkk+6YndfBaciOgvT0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719509584; x=1720114384; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6KMR7PgsUZzS4Gtw9YtoPUY76plMCLiaA0INtD68ckA=; b=vQ494YPNkOMgkaGRKGNwi4t0UficHPCbcYF4rOGLDPG1idzz6+pqg42F+QC6R8oNde YfGCTUezMGgN8iLP9Ac+WB3gdlb8SEBx9U0o0UAJ7oSAI9x5jjBUWcGBv05UGN7qeKvQ V4dNRtEK1x4yNxrueiULsBpTQFGBr/sX4Yqm1clqM5uvv1IJNPhop9aTd1vtwwQOTmsV WW35YsdDYx8NR6PtkrqXa0azFQwLWwOfwYen0aMdzInvgiGphWXFQ37zPAHxWfpBMJat pTQJSKAin4j3MriTgAxT0kUpK56EeNZu1zklNespH0eizs2TOMNI8CV9jRfEtSV7uepJ S2WQ== X-Forwarded-Encrypted: i=1; AJvYcCXKmlASI6MY92SZXSKW3VTk32RAdjr5JUfDnuOqhAUsOOjIbY8sWR1tkg9FNDQyihaPoYYC0cZ2kw2WAgn42PZiDl74uKhSNys= X-Gm-Message-State: AOJu0YxheCHea3SaUkhErA1ijiTDnWN6AYFC3EV4YnVIlui0sYahG2Qt 4NwBkElSD76zcG2bgq++XPFDm1zgDRbtk/+bVSJmPKk25bcXXPtpUgni3dwCcEQ= X-Google-Smtp-Source: AGHT+IEMU6AcW29OkWVmweJshUFJGfoNdG7kvYlvBcXgW69ACdRZg6teUH2RpIB4m1sqKiImI5XK+g== X-Received: by 2002:a05:6e02:925:b0:377:117e:e26f with SMTP id e9e14a558f8ab-377117ee83bmr66551975ab.2.1719509583900; Thu, 27 Jun 2024 10:33:03 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-37ad2982818sm35465ab.36.2024.06.27.10.33.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jun 2024 10:33:03 -0700 (PDT) Message-ID: Date: Thu, 27 Jun 2024 11:33:03 -0600 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] cpupower: Make help command available for custom install dir To: Roman Storozhenko , Thomas Renninger , Shuah Khan Cc: Javier Carrasco , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20240627-fix-help-issue-v3-1-85318a3974e4@gmail.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240627-fix-help-issue-v3-1-85318a3974e4@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/27/24 01:49, Roman Storozhenko wrote: > When the 'cpupower' utility installed in the custom dir, it fails to > render appropriate help info for a particular subcommand: > $ LD_LIBRARY_PATH=lib64/ bin/cpupower help monitor > with error message like 'No manual entry for cpupower-monitor.1' > The issue is that under the hood it calls 'exec' function with > the following args: 'man cpupower-monitor.1'. In turn, 'man' search > path is defined in '/etc/manpath.config'. Of course it contains only > standard system man paths. > Make subcommands help available for a user by setting up 'MANPATH' > environment variable to the custom installation man pages dir. That > variable value will be prepended to the man pages standard search paths > as described in 'SEARCH PATH' section of MANPATH(5). What I am asking you is what happens when you set the MANPATH before running the command? thanks, -- Shuah