From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GNneAkw+8WWZBAEA62LTzQ:P1 (envelope-from ) for ; Wed, 13 Mar 2024 06:49:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GNneAkw+8WWZBAEA62LTzQ (envelope-from ) for ; Wed, 13 Mar 2024 06:49:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710308940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=7uCl/FIYTbNaLduq81EODd15HMmZFD14FlstC6op3SE=; b=lqoDFb6gPE1mTWasF+UNr2h6B2y/HqJcc7nziGttPQeNyMQnD1pPOnf6QstwM8cOlpLFg1 PeBKCcYEgOJoEEgCNSeOR0TO8O0UNYkC0J2BiD4tIVXq+nTv2l53lZ39RT/5Js5UAHsI4y /E83VfjYDy1Mv3Z1YVIh0RnfFBwD2eFsmDKO+9U23HVPFy2WyIYUSrnQEevLDjBTHn/wc9 J2qjwVfpdC+UgP/zwmSqDIylLDMzejs/21ru6xzmZrz1CY6wjuMPkwTwqo0tKfEXiosLrq +oQoYmNrJEJRwyPlz9C8y9nMYdGzLZnp2H/pxREizPwBpNfTn6YkPUBGc+xzvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710308940; a=rsa-sha256; cv=none; b=gc70oiGi6qZ3jm5wb73NJJvHXxS8OQxQJUw3/sPC37EkV6ShhNzMTck7oRSuQSnGmIIpXp 2mEC3Y9rUAmEWHoC3YCOBlV9Lb7LsXxln5RUR08F7u63O+Kq1T2i7Bo5iWxuip+k28upIQ JDYzN1fyuqVzshFTw2HuZC3Y/9PlVYA4UBwDc/uQaMoaSts5X7a0NkbTp58mR3zD2OjydV 6Pwh2ycbJNGcWJ8GVfqYFjjUvNj6VEN+DJVz7qWgtsJ1owguy6JwgBWoJhAQ5JcF/1L/3X J2vsWPzr14MsQeavJ0gJagazLgd1FYgRAIToih5Ig0ULG8iHwPFalsQJuI/BQQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3662D255AC for ; Wed, 13 Mar 2024 06:48:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkHTW-0003P6-Hu; Wed, 13 Mar 2024 01:48:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkHTT-0003OF-Ny; Wed, 13 Mar 2024 01:48:23 -0400 Received: from mailxcu.skyguard.com.cn ([210.12.103.1] helo=smtp.secgator.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkHTP-00050h-I3; Wed, 13 Mar 2024 01:48:23 -0400 Received: from mail.skyguard.com.cn (unknown [172.21.23.75]) by smtp.secgator.com (SkyGuard) with ESMTPS id 4Tvffs71cCz4tCXt; Wed, 13 Mar 2024 13:47:33 +0800 (CST) Received: from [172.22.3.81] (unknown [172.21.24.65]) by mail.skyguard.com.cn (Postfix) with ESMTPSA id 4TvfgQ2tmsz2xG1; Wed, 13 Mar 2024 13:48:02 +0800 (CST) Message-ID: <36d2bb47-0786-475d-87eb-ced11a059681@skyguard.com.cn> Date: Wed, 13 Mar 2024 13:49:17 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: help-guix@gnu.org, guix-devel@gnu.org From: Pan Xie Subject: Mandb does not include guix package man pages Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=210.12.103.1; envelope-from=xiepan@skyguard.com.cn; helo=smtp.secgator.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.78 X-Spam-Score: -4.78 X-Migadu-Queue-Id: 3662D255AC X-TUID: swEwpbPKKXQy Hello I find this issue on both GuixSD and guix package manager on ArchLinux. The problem is `man -k' can not find manpages installed by guix. I believe the issue is caused by `mandb' does not include guix packages' man pages when generating its index database. Confirm sbcl is installed: #+begin_example [0]:root@guix03:~# guix package -I | grep sbcl sbcl                  2.4.0           out /gnu/store/093cjg5472s8j8hjzi2as61cs4w3lwrf-sbcl-2.4.0 #+end_example "man -k" can't find sbcl from its index database. But `manpath' has the correct setting, thus `man -w' can locate the man page file #+begin_example [0]:root@guix03:~# man -k sbcl sbcl: nothing appropriate. [16]:root@guix03:~# man -w sbcl /gnu/store/093cjg5472s8j8hjzi2as61cs4w3lwrf-sbcl-2.4.0/share/man/man1/sbcl.1.gz [0]:root@guix03:~# manpath /root/.guix-profile/share/man:/run/current-system/profile/share/man:/gnu/store/gjsxzcc0gqpz4lpbsrbidlnn5ij1lfm1-gzip-1.12/share/man:/gnu/store/g4wn6n3frwnjsay098mqgy046wxl4iym-coreutils-9.1/share/man #+end_example "MANPATH" environment variable is empty #+begin_example [0]:root@guix03:~# echo $MANPATH #+end_example Use `mandb' update the index database, with debug output #+begin_example [0]:root@guix03:~# mandb -d From the config file /gnu/store/w427xcp2628gg2wcxivvccw2pm2ijjk9-man-db-2.11.1/etc/man_db.conf:   Mandatory mandir `/usr/man'.   Mandatory mandir `/usr/share/man'.   Mandatory mandir `/usr/local/share/man'.   Path `/bin' mapped to mandir `/usr/share/man'.   Path `/usr/bin' mapped to mandir `/usr/share/man'.   Path `/sbin' mapped to mandir `/usr/share/man'.   Path `/usr/sbin' mapped to mandir `/usr/share/man'.   Path `/usr/local/bin' mapped to mandir `/usr/local/man'.   Path `/usr/local/bin' mapped to mandir `/usr/local/share/man'.   Path `/usr/local/sbin' mapped to mandir `/usr/local/man'.   Path `/usr/local/sbin' mapped to mandir `/usr/local/share/man'.   Path `/usr/X11R6/bin' mapped to mandir `/usr/X11R6/man'.   Path `/usr/bin/X11' mapped to mandir `/usr/X11R6/man'.   Path `/usr/games' mapped to mandir `/usr/share/man'.   Path `/opt/bin' mapped to mandir `/opt/man'.   Path `/opt/sbin' mapped to mandir `/opt/man'.   Global mandir `/usr/man', catdir `/var/cache/man/fsstnd'.   Global mandir `/usr/share/man', catdir `/var/cache/man'.   Global mandir `/usr/local/man', catdir `/var/cache/man/oldlocal'.   Global mandir `/usr/local/share/man', catdir `/var/cache/man/local'.   Global mandir `/usr/X11R6/man', catdir `/var/cache/man/X11R6'.   Global mandir `/opt/man', catdir `/var/cache/man/opt'.   Global mandir `/snap/man', catdir `/var/cache/man/snap'.   Added sections: `1', `n', `l', `8', `3', `0', `2', `3type', `5', `4', `9', `6', `7'. path directory /root/.guix-profile/bin is not in the config file   adding /root/.guix-profile/share/man to manpath path directory /root/Projects/config/scripts is not in the config file path directory /run/setuid-programs is not in the config file path directory /root/.config/guix/current/bin is not in the config file path directory /root/.guix-profile/bin is not in the config file path directory /run/current-system/profile/bin is not in the config file   adding /run/current-system/profile/share/man to manpath path directory /run/current-system/profile/sbin is not in the config file path directory /gnu/store/gjsxzcc0gqpz4lpbsrbidlnn5ij1lfm1-gzip-1.12/bin is not in the config file   adding /gnu/store/gjsxzcc0gqpz4lpbsrbidlnn5ij1lfm1-gzip-1.12/share/man to manpath path directory /gnu/store/g4wn6n3frwnjsay098mqgy046wxl4iym-coreutils-9.1/bin is not in the config file   adding /gnu/store/g4wn6n3frwnjsay098mqgy046wxl4iym-coreutils-9.1/share/man to manpath adding mandatory man directories warning: /usr/man: No such file or directory warning: /usr/share/man: No such file or directory warning: /usr/local/share/man: No such file or directory warning: /usr/man: No such file or directory warning: /usr/share/man: No such file or directory warning: /usr/local/man: No such file or directory warning: /usr/local/share/man: No such file or directory warning: /usr/X11R6/man: No such file or directory warning: /opt/man: No such file or directory warning: /snap/man: No such file or directory final search path = 0 man subdirectories contained newer manual pages. 0 manual pages were added. 0 stray cats were added. 0 old database entries were purged. #+end_example "man -k" still can't find sbcl from its database #+begin_example [0]:root@guix03:~# man -k sbcl sbcl: nothing appropriate. #+end_example Please enlighten me how to include guix manpages into mandb. Will there be improvement to guix's mandb to make it include manpages by default in guix's future release? Thanks Pan