From nobody Thu Nov 25 15:16:20 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 405C718A2DDD; Thu, 25 Nov 2021 15:16:33 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J0M0d02wMz3wVT; Thu, 25 Nov 2021 15:16:33 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id D05A4B794; Thu, 25 Nov 2021 15:16:32 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f178.google.com with SMTP id 8so6408538qtx.5; Thu, 25 Nov 2021 07:16:32 -0800 (PST) X-Gm-Message-State: AOAM530SrQLNmG9tuLxyRImnHOOhlVWe2V1JXbsfAxKEWp6/ESpEgcuP E9o/5nYyKifNhApbl6RFcqnPQyrwgKs8jetWby0= X-Google-Smtp-Source: ABdhPJx6knF1NU0d2d7DeCsy4xSnCTSbEEhfPkTywOPeS5zcRqzy7hWgBgipA+ZY3Hk+yrLV7EvAPDA6b5xM4Nkjm9A= X-Received: by 2002:a05:622a:291:: with SMTP id z17mr18431706qtw.138.1637853392312; Thu, 25 Nov 2021 07:16:32 -0800 (PST) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 References: <202106300806.15U86pGq037942@gitrepo.freebsd.org> <20210706090311.aomxh4n45tkpktdc@aniel.nours.eu> <20211125142339.zxkjpbohkxk4hete@aniel.nours.eu> <9226a616-d279-9702-f13f-cee7299afc7a@FreeBSD.org> <20211125143145.5jajvx52p5ma347c@aniel.nours.eu> <4a53cb13-1a9c-22c3-c3ee-27790927f4e3@FreeBSD.org> In-Reply-To: From: Kyle Evans Date: Thu, 25 Nov 2021 09:16:20 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: git: 0a0f7486413c - main - man: Build manpages for all architectures To: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Cc: Andriy Gapon , Baptiste Daroussin , Ed Maste , src-committers , "" , dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637853393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mozvqk7UxAX/Oun8YjvlIlyNg1VBx+Y4YHQcqhFhbj4=; b=lpK3nN53bYAKXIwcn74QZHVHLJNIhZvF8tI7MWmVRXLHWs8Y43PsPe4BO5guyXyiVjjXz6 mEsT1apQGac4z43RAyOJCzV1xBeYC7TsUAfu97+MnzTlrY3kYOp4MSTaf2tg7FmbAtay1n tB+rUVPXv1EtrNvBjiGs32gwyNBN3o1LuHwX4GJ91wpbjbX2fptJsbe9RdRKlFRzXPjp9u FWTOezwRRclpEQubqiU9l9MYAjtTla/UQ6oTlVNcpDOD52Ts8gFnvT4Nkm39aEgv2Wojqk aT1YZKMsaEjzhOpNvED5yZloi0PlZV2nJBn424XuDfIQ1AxZp7iPSBTknhc0pg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637853393; a=rsa-sha256; cv=none; b=DSAD4AT2KI6qlYAbotJxCV5M6ZDRnfAYiXoyjGwgU7xqVM4LGv8trNKDmJOAbUkZR+lToR h6mDug3y1llsTJO9Qo1IoBRvrAeG9y1D2vironOxLlay/XSkU2o5fF3vRDLVblqtAWuacb H/MpeMk+43WlUMRgd7NCDMbZxE17CAiHV1UhOM3WhMcZc3B3iWBnKZ+Bh2YYDwvlDoFGgi C66HSNhNjEtZ9gNkqPfaEW/wd0kKdmcKSSOJ52+90/S1FxxWNxd9NPT4cb5zwltajDjHaB zLGZth9tJkY4gn4ATx7u/VakKYkReFx1NWnMiPhwqVGDfu69Wy38DwHNE1eqoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N (Resend from correct address, sorry) On Thu, Nov 25, 2021 at 8:30 AM Andriy Gapon wrote: > > On 25/11/2021 16:23, Baptiste Daroussin wrote: > > On Thu, Nov 25, 2021 at 03:57:41PM +0200, Andriy Gapon wrote: > >> Looking at the output I got another thought: do we need architecture sub-dir > >> links at all now that we install manpages to a main directory? > >> Is there any benefit to having the same manpage in a directory (like man4) > >> and its immediate subdirectory (like man4/arm) ? > >> > > Hardlink not in the same directory is imho a fragile setup anyway, what if a > > user has different mount points here, the hardlink would be broken. while there > > is little chances someone is doing that, history told me people are doing weird > > things and if they haven't yet, they will soon. > > > > I continue to think this kind of links should be 1/ symlinks, 2/ relative > > symlinks if they are in a situation which can become a cross device issue. > > Yeah... but are they needed at all? :-) > It's handy in the sense that it'd be nice to install all arch manpages on some machines, e.g., I develop arm stuff on amd64 and there are some drivers that simply aren't applicable to amd64, I'd like to be able to find those. I think the implementation is a bit odd, though, leading into: > I mean, whichever way we install manpages they are always installed into manX. > I do not see a point / benefit of having another copy / link / whatever in > manX/arch. > I guess I haven't read the context much here, but I don't see why either. /usr/bin/man's built-in search behavior checks $mandir/$machine and $mandir/$machine_arch before $mandir, it seems like we should be leaving them there and letting man do its thing. If you need a non-native arch then you can hopefully just poke around the arch subdirs (presumably mostly section 4 pages) to figure it out. There's a reason they're arch subdirs, and trying to install links or arch-specific pages into the main $mandir is asking for trouble when we actually have conflicting pages for whatever reason between archs. Thanks, Kyle Evans