From unknown Fri Jun 20 07:22:56 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38838 <38838@debbugs.gnu.org> To: bug#38838 <38838@debbugs.gnu.org> Subject: Status: 'whatis' doesn't work Reply-To: bug#38838 <38838@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:22:56 +0000 retitle 38838 'whatis' doesn't work reassign 38838 guix submitter 38838 Jakub K=C4=85dzio=C5=82ka severity 38838 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 31 16:59:49 2019 Received: (at submit) by debbugs.gnu.org; 31 Dec 2019 21:59:49 +0000 Received: from localhost ([127.0.0.1]:35273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imPYL-0004Ih-H8 for submit@debbugs.gnu.org; Tue, 31 Dec 2019 16:59:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:52870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imPYK-0004IY-6i for submit@debbugs.gnu.org; Tue, 31 Dec 2019 16:59:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55702) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imPYJ-0005ZT-4y for bug-guix@gnu.org; Tue, 31 Dec 2019 16:59:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imPYI-00047M-4c for bug-guix@gnu.org; Tue, 31 Dec 2019 16:59:46 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:42050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1imPYH-00040q-Pf for bug-guix@gnu.org; Tue, 31 Dec 2019 16:59:46 -0500 Received: (qmail 25614 invoked by uid 1009); 31 Dec 2019 22:59:43 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25679. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.009082 secs); 31 Dec 2019 21:59:43 -0000 Received: from unknown (HELO zdrowyportier.kadziolka.net) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 31 Dec 2019 22:59:43 +0100 Date: Tue, 31 Dec 2019 22:59:41 +0100 From: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= To: bug-guix@gnu.org Subject: 'whatis' doesn't work Message-ID: <20191231215941.jpr57n5kqp6x3km6@zdrowyportier.kadziolka.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 37.59.186.212 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) The 'whatis' utility from man-db 2.9.0 doesn't work for me. This includes both my user profile and 'guix environment's. 'apropos' works, so the man database is present and working. $ guix environment --pure --ad-hoc man-db man-pages [env] $ apropos memcpy memcpy (3) - copy memory area wmemcpy (3) - copy an array of wide-characters [env] $ whatis memcpy memcpy: nothing appropriate. Regards, Jakub Kądziołka From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 06 13:05:26 2020 Received: (at 38838) by debbugs.gnu.org; 6 Jan 2020 18:05:26 +0000 Received: from localhost ([127.0.0.1]:46665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioWkn-0001cO-Rp for submit@debbugs.gnu.org; Mon, 06 Jan 2020 13:05:26 -0500 Received: from mail-qv1-f45.google.com ([209.85.219.45]:36971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioWkl-0001cA-Db for 38838@debbugs.gnu.org; Mon, 06 Jan 2020 13:05:25 -0500 Received: by mail-qv1-f45.google.com with SMTP id f16so19401711qvi.4 for <38838@debbugs.gnu.org>; Mon, 06 Jan 2020 10:05:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Uomu0pUd9lCFYMTEK1u4vESBCVfgem5F9ugGFu2kEDI=; b=oacviWJ8eWFFy0UU/FS5ZdcbQspOBgH//2xyGXdzDRxjbT9kn+4nRcpZFSUeenVmQa CI93x/wJAvq7PrUC4V1E5UvfYyszeDFQ9DrF49zkC7kg92nq6UydSNuV6/VuOcSS01dN mhaxlvNIt1B2tClWusucivp6n+zkm2SHEY5WfNDLwlPNoTpkhcxErtzV6YvfxNDtMfHU zWlAfSKuuOah13eX6/6u18zWrnMnwWvBRopNUl6+2P/5MjznppSRJYUrptl+lQnDXTx+ eh0Ik+Bvz54S9LSsrhmfqHe/OM8axnfKhGp/vxAZEH1iE2TdfYwUOkMCEY84eRpf2uwS iuYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Uomu0pUd9lCFYMTEK1u4vESBCVfgem5F9ugGFu2kEDI=; b=tgFvbeLaa4f4y3QKObMo1ofdLmWHZaYBMHuFFiCu1CEvFO7S8dWX3vV3DF/q3j1/j9 x54SL08BerR692vNL6kEXhKhc52sOkT7MIWMm6R1o4GBfIRCpfVi7k/EViL/QMVTK8H9 vVfpprrQ9OQ9T3/YQilX3x8jcvMyOIdBBycFZG5DGToJWXWDSUXYN3scD74ytdA2ocWl lm30SkUrcMbwKjcG1Rre6s0kGqtOcQ+1NmE6jkTkVjgd8t5T4zLl7pS5WP17N4BOOEQm 2jVAcqjCdcbjrMgx/FeeAPTBJp3stVtkV4TPrF6ImetDt95QT9n9ssGxsVkBnze4atLy 0Rmg== X-Gm-Message-State: APjAAAUaSkZvQpsx0g9BiIZlGwqCYzcFvvHy4Wp9aenT8bZRVmNeoHVN 87umlLjVh0A1JJdD518WhCxXpvY8dMjqHJywePvPySEN X-Google-Smtp-Source: APXvYqy6xrRDQJaDPeKPx6SuY4PRWOCWhFvJszpgXGkcYWz9W62D2O4gUGW1Ne4cHQLTTkAjdB0y3Yi1WQDsQcHfEHA= X-Received: by 2002:a0c:f703:: with SMTP id w3mr80471622qvn.6.1578333917631; Mon, 06 Jan 2020 10:05:17 -0800 (PST) MIME-Version: 1.0 References: <20191231215941.jpr57n5kqp6x3km6@zdrowyportier.kadziolka.net> In-Reply-To: <20191231215941.jpr57n5kqp6x3km6@zdrowyportier.kadziolka.net> From: zimoun Date: Mon, 6 Jan 2020 19:05:06 +0100 Message-ID: Subject: Re: bug#38838: 'whatis' doesn't work To: =?UTF-8?B?SmFrdWIgS8SFZHppb8WCa2E=?= Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38838 Cc: 38838@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dear, I confirm that something appears unexpected with the command 'whatis'. Below, using Guix 3a695c01d7ee18f30f22df53f3c44dfac04017f1, and running `guix environment --ad-hoc man-db man-pages --pure` then let output the internal debugging information (option '-d'). See below. Everything seems pointing to the correct path, so maybe it should come from the 'index.db' file. Well, let manually build an index, by first download the necessary files with (outside the environment): guix build man-pages --no-grafts --check -K then inside the environment: mandb -c /tmp/guix-build-man-pages-5.04.drv-0/man-pages-5.04 and now, whatis -M /tmp/guix-build-man-pages-5.04.drv-0/man-pages-5.04 memcpy works as expected. Last, note that using the 'apropos/whatis' binary from Debian and the path of the temporary profile (guix environment), I get: --8<---------------cut here---------------start------------->8--- /usr/bin/apropos -M /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man memcpy memcpy (3) - copy memory area wmemcpy (3) - copy an array of wide-characters /usr/bin/whatis -M /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man memcpy memcpy: nothing appropriate --8<---------------cut here---------------end--------------->8--- I do not know if this report helps and if the index is the culprit. What do you think? All the best, simon --8<---------------cut here---------------start------------->8--- # whatis man -d -f memcpy >From the config file /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/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'. Added sections: `1', `n', `l', `8', `3', `0', `2', `5', `4', `9', `6', `7'. >From the config file /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/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'. Added sections: `1', `n', `l', `8', `3', `0', `2', `5', `4', `9', `6', `7'. add_nls_manpaths(): processing /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man checking for locale C adding /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man to manpathlist final search path = /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man path=/gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man memcpy: nothing appropriate. --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- # apropos man -d -k memcpy >From the config file /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/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'. Added sections: `1', `n', `l', `8', `3', `0', `2', `5', `4', `9', `6', `7'. >From the config file /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/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'. Added sections: `1', `n', `l', `8', `3', `0', `2', `5', `4', `9', `6', `7'. add_nls_manpaths(): processing /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man checking for locale C adding /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man to manpathlist final search path = /gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man path=/gnu/store/hg02c2i5ycd4g0498xwgsbxyikz1bvf1-profile/share/man name: memcpy sec. ext: 3 section: 3 comp. ext: gz id: A mtime: 0.000000000 pointer: - filter: - whatis: copy memory area memcpy (3) - copy memory area name: wmemcpy sec. ext: 3 section: 3 comp. ext: gz id: A mtime: 0.000000000 pointer: - filter: - whatis: copy an array of wide-characters wmemcpy (3) - copy an array of wide-characters --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 02 00:26:23 2022 Received: (at 38838-done) by debbugs.gnu.org; 2 Mar 2022 05:26:23 +0000 Received: from localhost ([127.0.0.1]:38861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPHVG-0008E0-QO for submit@debbugs.gnu.org; Wed, 02 Mar 2022 00:26:23 -0500 Received: from mail-qv1-f54.google.com ([209.85.219.54]:39933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPHVE-0008Dl-Se for 38838-done@debbugs.gnu.org; Wed, 02 Mar 2022 00:26:21 -0500 Received: by mail-qv1-f54.google.com with SMTP id dy10so719364qvb.6 for <38838-done@debbugs.gnu.org>; Tue, 01 Mar 2022 21:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Q0y1igDt8Cu6PkksMZuQOZBv4OJNAguq5WPcnOTXvSQ=; b=TSjhGDkKHlA/qKXGWKA94A5y1Us4ZdtE5eachjLI4P/VmfL7Alw0JBH5qf2r8sel5S qio9sQ8Gv0DKiTOn58OhGyzQGmiwEHXJvCOWXe79WVtR5bRExD06VUO+d5S57vIhtIO4 Sjt7AfSulVDkP9+zEO+J480IyGZ0MnjWKvd8Bai4crm8kFEacpIFPAbUEh/vyyDYJqNI KixUYjIhH9lNg+yTi4eNZsLEk/dXZBRmVZq7BCe+MwjqsJ3HNeyfP5fzmChMt0/xTJyY WtrFKKcSGyIROV5raFHgONG6il1mVUsWuuuiupAyP0ILuBL1Dl22o7NjR5X4QcuQGOOA SwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Q0y1igDt8Cu6PkksMZuQOZBv4OJNAguq5WPcnOTXvSQ=; b=UGCjQFGcz8kRTSTMRUbMfsbyFq+khIMLL0QOmKA7ORhQprT7baCLnbay+4V5YSM+PY N6JHOhHRZTTmCjMMgXIo6uoBg3dRPGc5rMEchKB4Xa8bI5u9vMpl/SwFKRmi61EMBCLf ajVDrpJTy25gYt1A7GnRjQkJSN95y/sglc3CO7U1B2cnUDifLJiW71D2PFZVxi0PGii2 +mE+qFm+s7Zgoo/W4hDWYyWc9lLZW+rxpxKjzj3Xp1UU3paBtyN+Ts5yI+B5QPa/9ukn w2twsQJ0K9cLGrTYad/TglhCpLqvy0zn7hhtvMV8tpKQR3acfPUyBZPzYWNCVJQPUUIt hHKw== X-Gm-Message-State: AOAM533hVCAoEitwC/cvCEKlycXat5zNtL8RI1l0TBcVXVR82LlHXiJB xqvxgSSq0OaCFnwjFgG7KjTgvLzHwMk= X-Google-Smtp-Source: ABdhPJzHGWeDFBFqhomhF6xophSxz0GQcq/6T5wWrp792areGkQDMYzitcbqODW58zTxfCVBwUW+uA== X-Received: by 2002:a05:6214:246b:b0:42c:1c8c:a70a with SMTP id im11-20020a056214246b00b0042c1c8ca70amr19901568qvb.3.1646198774965; Tue, 01 Mar 2022 21:26:14 -0800 (PST) Received: from hurd (dsl-155-199.b2b2c.ca. [66.158.155.199]) by smtp.gmail.com with ESMTPSA id f15-20020ac86ecf000000b002d58a639121sm9918297qtv.97.2022.03.01.21.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 21:26:14 -0800 (PST) From: Maxim Cournoyer To: zimoun Subject: Re: bug#38838: 'whatis' doesn't work References: <20191231215941.jpr57n5kqp6x3km6@zdrowyportier.kadziolka.net> Date: Wed, 02 Mar 2022 00:26:13 -0500 In-Reply-To: (zimoun's message of "Mon, 6 Jan 2020 19:05:06 +0100") Message-ID: <87tuchj56y.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 38838-done Cc: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= , 38838-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, zimoun writes: > Dear, > > I confirm that something appears unexpected with the command 'whatis'. > > Below, using Guix 3a695c01d7ee18f30f22df53f3c44dfac04017f1, and running > `guix environment --ad-hoc man-db man-pages --pure` then let output the > internal debugging information (option '-d'). See below. > > Everything seems pointing to the correct path, so maybe it should come > from the 'index.db' file. [...] > I do not know if this report helps and if the index is the culprit. You were on the right path; the database file was indeed the culprit. This is the database, in hex, generated by man-db for a single cat.1.gz man page: --8<---------------cut here---------------start------------->8--- 2476 6572 7369 6f6e 2400 322e 352e 3000 $version$.2.5.0. 00003010: 6361 7400 2d09 3109 3109 3136 3436 3138 cat.-.1.1.164618 00003020: 3834 3934 0939 3333 3430 3030 3430 0941 8494.933400040.A 00003030: 092d 092d 0967 7a09 636f 6e63 6174 656e .-.-.gz.concaten 00003040: 6174 6520 6669 6c65 7320 616e 6420 7072 ate files and pr 00003050: 696e 7420 6f6e 2074 6865 2073 7461 6e64 int on the stand 00003060: 6172 6420 6f75 7470 7574 0000 0000 0000 ard output...... 00003070: --8<---------------cut here---------------end--------------->8--- while this is what Guix was generating: --8<---------------cut here---------------start------------->8--- 00000600: 2476 6572 7369 6f6e 2400 322e 352e 3000 $version$.2.5.0. 00000610: 2f74 6d70 2f67 7569 782f 6d61 6e2f 6d61 /tmp/guix/man/ma 00000620: 6e31 2f63 6174 2e31 2e67 7a00 6361 7409 n1/cat.1.gz.cat. 00000630: 3109 3109 3009 3009 4109 2d09 2d09 677a 1.1.0.0.A.-.-.gz 00000640: 0963 6f6e 6361 7465 6e61 7465 2066 696c .concatenate fil 00000650: 6573 2061 6e64 2070 7269 6e74 206f 6e20 es and print on 00000660: 7468 6520 7374 616e 6461 7264 206f 7574 the standard out 00000670: 7075 7400 0000 0000 0000 0000 0000 0000 put............. --8<---------------cut here---------------end--------------->8--- The entry that comes right after the 2.5.0 version is the key. Guix was using the file name, while man-db uses the name of the man page, such as 'cat'. With the following change: --8<---------------cut here---------------start------------->8--- modified guix/man-db.scm @@ -110,7 +110,12 @@ (define (write-mandb-database file entries) ;; Write ENTRIES in sorted order so we get deterministic output. (for-each (lambda (entry) (gdbm-set! db - (string-append (mandb-entry-file-name entry) + ;; For the 'whatis' tool to find anything, the key + ;; should match the name of the software, + ;; e.g. 'cat'. Derive it from the file name, as + ;; the name could technically be #f. + (string-append (abbreviate-file-name + (mandb-entry-file-name entry)) "\x00") (entry->string entry))) (sort entries mandb-entry8--- I now get: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix shell --pure man-db coreutils -- whatis cat [...] building database for manual pages... building profile with 2 packages... cat (1) - concatenate files and print on the standard output --8<---------------cut here---------------end--------------->8--- and apropos, man seem to continue working as expected. Pushed as deaa322963. Closing. Thanks for the report! Maxim From unknown Fri Jun 20 07:22:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 30 Mar 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator