From unknown Sun Sep 21 01:07:00 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#72236 <72236@debbugs.gnu.org> To: bug#72236 <72236@debbugs.gnu.org> Subject: Status: generate programs' man pages in the source directory, per GCS Reply-To: bug#72236 <72236@debbugs.gnu.org> Date: Sun, 21 Sep 2025 08:07:00 +0000 retitle 72236 generate programs' man pages in the source directory, per GCS reassign 72236 diffutils submitter 72236 Bruno Haible severity 72236 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 21 15:24:37 2024 Received: (at submit) by debbugs.gnu.org; 21 Jul 2024 19:24:37 +0000 Received: from localhost ([127.0.0.1]:56072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVcAf-0000jZ-9i for submit@debbugs.gnu.org; Sun, 21 Jul 2024 15:24:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:42234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVcAc-0000jQ-FT for submit@debbugs.gnu.org; Sun, 21 Jul 2024 15:24:35 -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 1sVcAa-0008Ay-2E for bug-diffutils@gnu.org; Sun, 21 Jul 2024 15:24:32 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.216]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVcAX-0002U8-Pj for bug-diffutils@gnu.org; Sun, 21 Jul 2024 15:24:31 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1721589866; cv=none; d=strato.com; s=strato-dkim-0002; b=TLm9EKbhfqe+qdfaRA0lv/OVwdiDk+tDPG5Ru9gbGg4c5tk+p0wPFWKQckYw8jx0Zi g4mYPL5ykPXFe9sk9a5tcPlbyLRc/5em+3mk8RXgarfT/5MfnsQqlyXC5Y/T9LQtK8Ea COlMYqcg4gbRL6ufpRuryASKjTIl/5a1jnVj9sh6XgHGOdbUiCmau0yKbMIrVJ6/Kvn8 bFU7JwRGHx5fYMroAfGZJEsdtYGQ5CwKTWfpBQXpT2l0hY4yvLiqE0vaMfHZXj88scIG 5BUy4Qdw/2FUeSmSMxNhiDjymgb2OhVqdKl5mNKq2NpW76Ay1Ttho3r8nvurhnAQpsDR yQcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1721589866; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=VxbQg3nxFSfeIDUK7rEWD/vviwYhk3AzJZWw3t76sBg=; b=GTrPQ41msHchWE/0B+rAHLUL4tgvBAKYc+05sseViV6Y92vd+rdYH5sR8n6SnlT2Y6 JpzsKmLYy4jpdXaD6JFYlpFhp4lg85zpKHFKFm2XfYuQUxcYC2JwrIjFm9PTQAUVFmkY ubFC4dC24I6HT6v6x/ol1k+9qozao8hLqZ0k/gNsYknJZeyba/o7phNUBONSBmkJQ3ln D0wadYS6gVVpG9XnDT5twxOS+YZUj32tp4oOzQSkLp+zg+QhBbMbOlzc+prioRk4nsm0 wATh2RT9BArlCdlO8orro8BBcHDBsRvJ42LmJfVLqcTLAYgcAQ0i4BDFwT1IXiasNCB+ 366A== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1721589866; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=VxbQg3nxFSfeIDUK7rEWD/vviwYhk3AzJZWw3t76sBg=; b=l42wMmUI/6CxvKG2IrFYDCQNzyc70S+/3rtTUadhhYXt7nLtXVWoqdYgFajZCGbWP2 OTnWnnx13DXRqWMFGfMNkZa9w2zlez0OxUP694IXwwGsEdpkzjqpES0DG4JNuTK3Blle rzczLH98FycCwuwXLlpmNf4GtcfgxtetjYursRmZdCJ4Juse8c2uvzdSlKFWfZr0W4xS 7HTFTOS3XeEYd4t0oV+jsKp3+ea8oh2RmDHe/ZPyi4PTuHlRPBZWJhAgPMl53+6QNR8V MI5dFM9Oqf4Z+zoVcFog7tXAGniY+oe9xbG66QcjVyH1f2hRp3C+R931e9R3+7WUx1Xn +OFQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1721589866; s=strato-dkim-0003; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=VxbQg3nxFSfeIDUK7rEWD/vviwYhk3AzJZWw3t76sBg=; b=wmjymRl4r1yBL7tBWd+G0tK2xQGN+DtML2amGE6xmoMxiVeT8XYvLydoJ3mnHVBkMm cTLZ2wppK3OG97TMg5Ag== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOejaAQLQQQx2f230GW7tdW2kDZtw==" Received: from nimes.localnet by smtp.strato.de (RZmta 50.5.0 AUTH) with ESMTPSA id N0957e06LJOQMhb (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 21 Jul 2024 21:24:26 +0200 (CEST) From: Bruno Haible To: bug-diffutils@gnu.org Subject: generate programs' man pages in the source directory, per GCS Date: Sun, 21 Jul 2024 21:24:25 +0200 Message-ID: <2455347.rnzLaay6km@nimes> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart57389268.rZsT4p3NpQ" Content-Transfer-Encoding: 7Bit Received-SPF: none client-ip=81.169.146.216; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 (---) This is a multi-part message in MIME format. --nextPart57389268.rZsT4p3NpQ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" The files man/*.1 are included in the tarballs. By the GNU Coding Standards they should be generated in the source directory. But this is not what happens: $ ./configure; make -k maintainer-clean $ ./bootstrap $ mkdir bb $ cd bb $ ../configure $ make $ ls -l ../man/*.1 ls: cannot access '../man/*.1': No such file or directory $ ls -l man/*.1 -rw-rw-r-- 1 bruno bruno 2245 21. Jul 21:12 man/cmp.1 -rw-rw-r-- 1 bruno bruno 6469 21. Jul 21:12 man/diff.1 -rw-rw-r-- 1 bruno bruno 2858 21. Jul 21:12 man/diff3.1 -rw-rw-r-- 1 bruno bruno 2869 21. Jul 21:12 man/sdiff.1 This patch fixes it. With it, the result is: $ ls -l ../man/*.1 -rw-rw-r-- 1 bruno bruno 2245 21. Jul 21:16 ../man/cmp.1 -rw-rw-r-- 1 bruno bruno 6469 21. Jul 21:16 ../man/diff.1 -rw-rw-r-- 1 bruno bruno 2858 21. Jul 21:16 ../man/diff3.1 -rw-rw-r-- 1 bruno bruno 2869 21. Jul 21:16 ../man/sdiff.1 $ ls -l man/*.1 ls: cannot access 'man/*.1': No such file or directory --nextPart57389268.rZsT4p3NpQ Content-Disposition: attachment; filename="0001-build-Generate-programs-man-pages-in-the-source-dire.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-build-Generate-programs-man-pages-in-the-source-dire.patch" >From 70bf44033736937e9b804930e7f23721e369d6df Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 21 Jul 2024 21:22:28 +0200 Subject: [PATCH] build: Generate programs' man pages in the source directory, per GCS * man/Makefile.am ($(dist_man1_MANS)): Generate the *.1 files in $(srcdir), not in the build dir. --- man/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man/Makefile.am b/man/Makefile.am index 8b1ea20..00ba124 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -34,7 +34,8 @@ $(dist_man1_MANS): $(SRC_VERSION_C) help2man $(AM_V_GEN)base=`expr $@ : '\(.*\).1'` \ && test -x $(bin_dir)/$$base \ && (echo '[NAME]' \ - && sed 's@/\* *@@; s/-/\\-/;s/^GNU //; q' $S/$$base.c) \ + && sed 's@/\* *@@; s/-/\\-/;s/^GNU //; q' $S/$$base.c) \ | PATH="$(bin_dir)$(PATH_SEPARATOR)$$PATH" \ $(srcdir)/help2man -i - -i $(srcdir)/$$base.x \ - -S '$(PACKAGE) $(VERSION)' $$base > $@-t && mv $@-t $@ + -S '$(PACKAGE) $(VERSION)' $$base > $$base.1-t \ + && mv $$base.1-t $(srcdir)/$$base.1 -- 2.34.1 --nextPart57389268.rZsT4p3NpQ-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 22 11:00:29 2024 Received: (at 72236) by debbugs.gnu.org; 22 Jul 2024 15:00:29 +0000 Received: from localhost ([127.0.0.1]:58426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVuWa-0004oy-QL for submit@debbugs.gnu.org; Mon, 22 Jul 2024 11:00:29 -0400 Received: from mail-pj1-f44.google.com ([209.85.216.44]:53547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVuWW-0004oh-P7 for 72236@debbugs.gnu.org; Mon, 22 Jul 2024 11:00:26 -0400 Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2caff99b1c9so2081774a91.3 for <72236@debbugs.gnu.org>; Mon, 22 Jul 2024 08:00:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721660415; x=1722265215; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8i9azfrioxTWVL6ZuZYtESpX4w+YKpPkY5UUYT1BdZw=; b=bxBSd+5ounemC9heTw1Yzt7qDJvJXzQS70lvwSm1JciMwqM+1tgSs1qRgGbIcMzgzj OmXvJtMPZg4509NlUCjP/sZjsmbF7232KPWj17sDc8dr5O1cRjKwKBe0xa6i6x1ZEQb/ q/D2xKo1pWBmIPKDwlrMOa16GGLexzwq8OxuZvGjFfeESofHDIqTrq3WFXA9/7ia/Zbc kQUY/tzmJ/w+5442thhfz00pKSr+VqlD8e4k7+FfnZPaYmQsPRgNn+TtwRycTFEOn3Cb adSt0dtjHhMftpfm5pO8vts8kBuAZGSMT2NynAJmKf7i4w8sjgJyYJfVAd7L5cpVA1LN lDqQ== X-Gm-Message-State: AOJu0Yx8roTarcclaLQyU1a1qS33OY3uBvZVQmzNtIz86E4rxGqY5Par /oghm+gi/Nax8B3Lfvg2D5YS6PfSGv2jWpqPErooBji9FV6GclAsRM/OoO20YeREotixooLjPKw 3HSRLLJhpXhPTSh81Dv+NxCyoXSkLow== X-Google-Smtp-Source: AGHT+IGVKh+oQ8k4vjHsFYVkeFl2eEcvQzyDCYKXLH6pJ0ekoxw5oFWYB/hekZL+dBK41lPxhE4/BAxI4siGw2pPnqQ= X-Received: by 2002:a17:90b:37c8:b0:2c9:7e80:6bc8 with SMTP id 98e67ed59e1d1-2cd15feac17mr4530387a91.37.1721660415181; Mon, 22 Jul 2024 08:00:15 -0700 (PDT) MIME-Version: 1.0 References: <2455347.rnzLaay6km@nimes> In-Reply-To: <2455347.rnzLaay6km@nimes> From: Jim Meyering Date: Mon, 22 Jul 2024 08:00:02 -0700 Message-ID: Subject: Re: [bug-diffutils] bug#72236: generate programs' man pages in the source directory, per GCS To: Bruno Haible Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72236 Cc: 72236@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 (-) On Sun, Jul 21, 2024 at 12:25=E2=80=AFPM Bruno Haible wro= te: > The files man/*.1 are included in the tarballs. By the GNU Coding Standar= ds > > they should be generated in the source directory. > > But this is not what happens: > > $ ./configure; make -k maintainer-clean > $ ./bootstrap > $ mkdir bb > $ cd bb > $ ../configure > $ make > $ ls -l ../man/*.1 > ls: cannot access '../man/*.1': No such file or directory > $ ls -l man/*.1 > -rw-rw-r-- 1 bruno bruno 2245 21. Jul 21:12 man/cmp.1 > -rw-rw-r-- 1 bruno bruno 6469 21. Jul 21:12 man/diff.1 > -rw-rw-r-- 1 bruno bruno 2858 21. Jul 21:12 man/diff3.1 > -rw-rw-r-- 1 bruno bruno 2869 21. Jul 21:12 man/sdiff.1 > > This patch fixes it. > > With it, the result is: > > $ ls -l ../man/*.1 > -rw-rw-r-- 1 bruno bruno 2245 21. Jul 21:16 ../man/cmp.1 > -rw-rw-r-- 1 bruno bruno 6469 21. Jul 21:16 ../man/diff.1 > -rw-rw-r-- 1 bruno bruno 2858 21. Jul 21:16 ../man/diff3.1 > -rw-rw-r-- 1 bruno bruno 2869 21. Jul 21:16 ../man/sdiff.1 > $ ls -l man/*.1 > ls: cannot access 'man/*.1': No such file or directory Thank you for reporting and fixing that. I've applied your patch with one small change: replace a sequence of TAB-then-8-spaces used for Makefile indentation with TAB-TAB, to avoid "make distcheck" failure. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 22 12:07:16 2024 Received: (at 72236-done) by debbugs.gnu.org; 22 Jul 2024 16:07:16 +0000 Received: from localhost ([127.0.0.1]:58484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVvZE-0006d5-0j for submit@debbugs.gnu.org; Mon, 22 Jul 2024 12:07:16 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.221]:41489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVvZA-0006ct-Hm for 72236-done@debbugs.gnu.org; Mon, 22 Jul 2024 12:07:14 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1721664427; cv=none; d=strato.com; s=strato-dkim-0002; b=OXDcBvQJyfhyG2F7c8S+7nvP/+V4EOxOl5ZCl61GGxk+vb4Zgdp7KejP5BXosuDN1l zI4ncsTGrYJXY8k/yxnbOR0tTvc717HVzYzgKgai7htOTx6H9STtgplBNxYGp2lmySiu J16WenfPBjzlN55mGxblofEGteQLdURav3rU2VODcD21Xm3jU9R5c+5YEciokWpkf/MM UrmFxl6JfHsaO1jrmvbaGfYv4p9iLj2JDWbX7NrGQX7w4bcZS+mpEcAZMTxwQFu5OClA 6zzb+QXGKJzV93gSh4OkZLgTTiyETJCmxU8Mkw+mCXrKaxzknW9LdDsDXJeQsSTR2Jj6 Djmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1721664427; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=AvXPSTDcnHfHjqbvG6aFZZj5klHFctEqIhUPx/su100=; b=I62cC6eZ/r3xdlYRrIT9Bdieyzi1isf8ylGLwt2iSWauIfu4lIdOlHARS5ir3EbExp rpH+ohZM/plKu92BHCeX53CugjrHFysxHKCURDxT3Joi8ir0/KUm3Utd55/9nyLiPPdl m411i1jHX1LFITWXVS0EMqTofzUPadoIYY6VSDBterHfjT+lPFKA6xdjmjwUIhU7DEwq sEf99kM4QpayAZ3bdtU9eOK/PtSzg25FFcCvqzx+iCJGigiV9pyjwMI9ezul9Mkicyxs aSSsi1Ya/WZKgbxh/DC+xYcYxwUaBMYcwivZs/fyx4OUsIOZObVIeNb2E5/AE25C4XxB 5i4g== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1721664427; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=AvXPSTDcnHfHjqbvG6aFZZj5klHFctEqIhUPx/su100=; b=UEdWwHf8hf5crPFHpGxI0M9nMsLrse6W5LyrAGFIN/Q+rA1Ww9uoiWlnaW3iE619CO 12shobJo6vbi4VCuymolZrPveBWiGg2Yxt94w8cDp5aQJqhbbVqWt8DS4b8m20u+gT9f MMOlGMz8ro/A0ACEpQ+0+d2EEhIZDCjwKIn7gy+gr/Bbyk/YszE+zEVjZO6O7E68PW81 Fqb2Cc7gAiVS/YKeuWbFOc2E2LKewswWXk1CCa70iV7zJHHnGi1dGCDQ8JzHr9fA0AZg eh07EBIlDbISoV2J0SwW53FycFdw2yo7BearNjA5rgis7tQXkpHtaJkm6T6x/NMo+UPG imoQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1721664427; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=AvXPSTDcnHfHjqbvG6aFZZj5klHFctEqIhUPx/su100=; b=//6XBJpojQhwAEeLfsX871eUaWU3dEvmdXvPYEtO7D+1nYdrFJImia8abdEFqyw1jb +nrL0rnWsq40FHcyabDQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpPHiva4irmUYiG3SufsEzRuXvM=" Received: from nimes.localnet by smtp.strato.de (RZmta 51.1.0 AUTH) with ESMTPSA id Nfdff106MG760T3 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 22 Jul 2024 18:07:06 +0200 (CEST) From: Bruno Haible To: Jim Meyering Subject: Re: [bug-diffutils] bug#72236: generate programs' man pages in the source directory, per GCS Date: Mon, 22 Jul 2024 18:07:06 +0200 Message-ID: <2004875.fxN4lLDhpz@nimes> In-Reply-To: References: <2455347.rnzLaay6km@nimes> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72236-done Cc: 72236-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 (-) Jim Meyering wrote: > I've applied your patch with one small change https://git.savannah.gnu.org/gitweb/?p=diffutils.git;a=commitdiff;h=7f9bf95640db00aaf82125799429732b99c5f730 Marking as done. From unknown Sun Sep 21 01:07:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 20 Aug 2024 11:24:07 +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